From 8ad4f6db9865a9a9fb9076c9ce9e07e91a1519ea Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Tue, 4 Dec 2018 15:02:06 -0500 Subject: Add persistent storage for CM state information Issue-ID: DCAEGEN2-990 Change-Id: I122e541d6ea0fa6bca06157d6ae7a330048d2ed7 Signed-off-by: Jack Lucas --- cm-container/Dockerfile-template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cm-container/Dockerfile-template') diff --git a/cm-container/Dockerfile-template b/cm-container/Dockerfile-template index 5c052a0..9462ff5 100644 --- a/cm-container/Dockerfile-template +++ b/cm-container/Dockerfile-template @@ -25,13 +25,16 @@ ENV CCSDK_REPO {{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releas # Store type files locally RUN mkdir scripts -COPY get-type-files.sh dcae-cleanup.sh scripts/ +COPY get-type-files.sh dcae-cleanup.sh start-persistent.sh setup-secret.sh scripts/ # Load our type files and the Cloudify 3.4 type files +# Setup rc.local to set up k8s credentials for CM RUN scripts/get-type-files.sh ${TYPE_REPO} ${CCSDK_REPO}\ && mkdir /opt/manager/resources/spec/cloudify/3.4\ && curl -Ss https://cloudify.co/spec/cloudify/3.4/types.yaml > /opt/manager/resources/spec/cloudify/3.4/types.yaml\ && chown -R cfyuser:cfyuser /opt/manager/resources/spec/cloudify/3.4\ - && chmod +x scripts/*.sh + && chmod +x scripts/*.sh\ + && echo "/scripts/setup-secret.sh" >> /etc/rc.d/rc.local\ + && chmod +x /etc/rc.d/rc.local # Create mount point for CM config file RUN mkdir -p /opt/onap && chown cfyuser:cfyuser /opt/onap @@ -48,3 +51,5 @@ RUN pip install --upgrade pip==9.0.3 \ && virtualenv cfy42 \ && source cfy42/bin/activate \ && pip install cloudify==4.2 + +CMD ["/scripts/start-persistent.sh"] -- cgit 1.2.3-korg