From dab0be7327dffdbfe220c96e265706dc919f6374 Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Thu, 23 May 2019 18:21:17 -0400 Subject: Pull DCAE plugins from Nexus Change-Id: Ifca0978cca90e00f0ad59702b2024d0970df8ec9 Issue-ID: DCAEGEN2-1520 Signed-off-by: Jack Lucas --- k8s-bootstrap-container/README.md | 7 +++---- k8s-bootstrap-container/build-plugins.sh | 15 +++++++-------- k8s-bootstrap-container/pom.xml | 2 +- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/k8s-bootstrap-container/README.md b/k8s-bootstrap-container/README.md index 614669b..0e8f88d 100644 --- a/k8s-bootstrap-container/README.md +++ b/k8s-bootstrap-container/README.md @@ -2,9 +2,8 @@ This container is responsible for loading plugins and wagons onto the DCAE Cloudify Manager instance and for launching DCAE components. -The script builds plugins and loads blueprints for the DCAE components -to be deployed into the container image -at image build time. At run time, the main script in the container +The Docker image build process loads plugins and blueprints into the +image's file system. At run time, the main script in the container (`bootstrap.sh`) uploads the plugins to Cloudify Manager, then installs components using the blueprints. @@ -15,6 +14,6 @@ The container expects to be started with two environment variables: The container expects input files to use when deploying the blueprints. It expects to find them in /inputs. The normal method for launching the container is via a Helm Chart launched by OOM. That chart creates -a Kubernetes ConfigMap containing the input files. The ConfigMap is +a Kubernetes ConfigMap containing the input files. The ConfigMap is mounted as a volume at /inputs. diff --git a/k8s-bootstrap-container/build-plugins.sh b/k8s-bootstrap-container/build-plugins.sh index e331c66..786d58e 100755 --- a/k8s-bootstrap-container/build-plugins.sh +++ b/k8s-bootstrap-container/build-plugins.sh @@ -28,15 +28,13 @@ set -x DEST=wagons -# For DCAE, we get zips of the archives and build wagons -# 2 versions of k8s plugin to ease transition +# For DCAE, starting in R5, we pull down wagons directly DCAEPLUGINFILES=\ "\ -k8splugin/1.4.5/k8splugin-1.4.5.tgz -k8splugin/1.4.13/k8splugin-1.4.13.tgz -relationshipplugin/1.0.0/relationshipplugin-1.0.0.tgz -clamppolicyplugin/1.0.0/clamppolicyplugin-1.0.0.tgz -dcaepolicyplugin/2.3.0/dcaepolicyplugin-2.3.0.tgz \ +k8splugin/1.4.13/k8splugin-1.4.13-py27-none-linux_x86_64.wgn +relationshipplugin/1.0.0/relationshipplugin-1.0.0-py27-none-any.wgn +clamppolicyplugin/1.0.0/clamppolicyplugin-1.0.0-py27-none-any.wgn +dcaepolicyplugin/2.3.0/dcaepolicyplugin-2.3.0-py27-none-any.wgn \ " # For CCSDK, we pull down the wagon files directly @@ -48,6 +46,7 @@ plugins/sshkeyshare-1.0.0-py27-none-any.wgn plugins/helm-4.0.0-py27-none-linux_x86_64.wgn " +# Not needed in R5 # Build a set of wagon files from archives in a repo # $1 -- repo base URL # $2 -- list of paths to archive files in the repo @@ -77,5 +76,5 @@ function get_wagons { } mkdir ${DEST} -build $1 "${DCAEPLUGINFILES}" +get_wagons $1 "${DCAEPLUGINFILES}" get_wagons $2 "${CCSDKPLUGINFILES}" diff --git a/k8s-bootstrap-container/pom.xml b/k8s-bootstrap-container/pom.xml index 34120e1..04af8c7 100644 --- a/k8s-bootstrap-container/pom.xml +++ b/k8s-bootstrap-container/pom.xml @@ -27,7 +27,7 @@ limitations under the License. org.onap.dcaegen2.deployments k8s-bootstrap-container dcaegen2-deployments-k8s-bootstrap-container - 1.5.0 + 1.5.1 http://maven.apache.org UTF-8 -- cgit 1.2.3-korg