From 3ff31d134b1662653a964d87b3a5f4cd3ef36f31 Mon Sep 17 00:00:00 2001 From: Michele Chilanti Date: Fri, 2 Aug 2019 16:13:15 -0500 Subject: [PATCH] Kabanero fix (#8) * Initial code drop * Added readme and .travis.yml * Made docker org an env var. * added a deploy phase * Adjusted deploy phase * Added env var for git-source --- RELEASE.md | 2 +- setupAndRunExtract.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index d92aa97..eed2317 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -14,5 +14,5 @@ This asset uses the Ubuntu (Debian) installer package of the Appsody CLI, which If significant changes to the `appsody extract` command are introduced by a CLI release, this asset should be rebuilt referencing a newer version of the CLI in `Dockerfile`. +However, the [Tekton example](https://github.com/appsody/tekton-example) relies on the Docker image that is created by the release process of this asset. Therefore, whenever this asset gets released, it is reasonable to expect that a new release of the Tekton example also gets initiated. -However, the [Tekton example](https://github.com/appsody/tekton-example) relies on the Docker image that is created by the release process of this asset. Therefore, whenever this asset gets released, it is reasonable to expect that a new release of the Tekton example also gets initiated. \ No newline at end of file diff --git a/setupAndRunExtract.sh b/setupAndRunExtract.sh index b9fff05..7c98dc0 100755 --- a/setupAndRunExtract.sh +++ b/setupAndRunExtract.sh @@ -29,18 +29,18 @@ else source="${source%\"}" source="${source#\"}" fi -# Appending appsody-source - postfix="/appsody-source" - source=$source$postfix +# Appending git-source - assumes this is called with an env var set + postfix=$gitsource + source=$source/$postfix export APPSODY_MOUNT_PROJECT=${source} echo APPSODY_MOUNT_PROJECT=${APPSODY_MOUNT_PROJECT} # Create the /extracted sub-dir mkdir /workspace/extracted # Run appsody extract -v from the source directory -cd /workspace/appsody-source +cd /workspace/$postfix ls -latr appsody extract -v # Copy the extracted contents to /workspace/extracted -cp -rf /builder/home/.appsody/extract/appsody-source/* /workspace/extracted/ +cp -rf /builder/home/.appsody/extract/$postfix/* /workspace/extracted/ ls -latr /workspace/extracted