summaryrefslogtreecommitdiffstats
path: root/bootstrap/Dockerfile-template
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/Dockerfile-template')
-rw-r--r--bootstrap/Dockerfile-template3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap/Dockerfile-template b/bootstrap/Dockerfile-template
index 921f90c..935e77b 100644
--- a/bootstrap/Dockerfile-template
+++ b/bootstrap/Dockerfile-template
@@ -9,11 +9,12 @@ RUN apt-get update\
&& mkdir -p ${INSROOT}/${APPUSER}/blueprints\
&& useradd -d ${INSROOT}/${APPUSER} ${APPUSER}
COPY installer-docker.sh ${INSROOT}/${APPUSER}/installer
+COPY teardown.sh ${INSROOT}/${APPUSER}/teardown
# COPY *.yaml ${INSROOT}/${APPUSER}/blueprints/
RUN wget -P ${INSROOT}/${APPUSER}/blueprints/ {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_blueprints_releases }}/blueprints/centos_vm.yaml
RUN wget -P ${INSROOT}/${APPUSER}/blueprints/ {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_blueprints_releases }}/blueprints/consul_cluster.yaml
WORKDIR ${INSROOT}/${APPUSER}
-RUN chown -R ${APPUSER}:${APPUSER} ${INSROOT}/${APPUSER} && chmod +x ${INSROOT}/${APPUSER}/installer
+RUN chown -R ${APPUSER}:${APPUSER} ${INSROOT}/${APPUSER} && chmod +x ${INSROOT}/${APPUSER}/installer && chmod +x ${INSROOT}/${APPUSER}/teardown
USER ${APPUSER}
ENTRYPOINT exec "${INSROOT}/${APPUSER}/installer"