summaryrefslogtreecommitdiffstats
path: root/bootstrap/Dockerfile-template
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-11 20:11:29 +0000
committerLusheng Ji <lji@research.att.com>2017-09-11 20:11:44 +0000
commitc38ca2f40aa0eee42fb7b2c61be4ba6e4f9aa56a (patch)
tree09d8462e1a8838b9fd575e5f9b6fcbb6af94c8e1 /bootstrap/Dockerfile-template
parent55f488022631ce6ab14b440e747b2e9d7648b49c (diff)
Add bootstrap
Issue-Id: DCAEGEN2-75 Change-Id: I0158762c1c3e29612381734a608fa821e903e92e Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'bootstrap/Dockerfile-template')
-rw-r--r--bootstrap/Dockerfile-template19
1 files changed, 19 insertions, 0 deletions
diff --git a/bootstrap/Dockerfile-template b/bootstrap/Dockerfile-template
new file mode 100644
index 0000000..f15261b
--- /dev/null
+++ b/bootstrap/Dockerfile-template
@@ -0,0 +1,19 @@
+FROM ubuntu:16.04
+MAINTAINER maintainer
+ENV INSROOT /opt/app
+ENV APPUSER installer
+RUN apt-get update\
+ && apt-get install -y wget python-virtualenv python-pip ssh ed curl\
+ && apt-get clean\
+ && pip install --upgrade pip\
+ && mkdir -p ${INSROOT}/${APPUSER}/blueprints\
+ && useradd -d ${INSROOT}/${APPUSER} ${APPUSER}
+COPY installer-docker.sh ${INSROOT}/${APPUSER}/installer
+# 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
+USER ${APPUSER}
+ENTRYPOINT exec "${INSROOT}/${APPUSER}/installer"
+