diff options
author | 2018-03-08 08:06:20 +0000 | |
---|---|---|
committer | 2018-03-08 22:11:06 +0000 | |
commit | 4df18682f5ce81cee1b4c2bfd90f0eb2e8800ae0 (patch) | |
tree | c1c48b19cd80fa789d1e304d865f2e57f3172acf /sms-service | |
parent | 9ea48c660db693c12407786152cbb9f217891591 (diff) |
Dockerfile for SMS containerization
Building Dockerfile for SMS containerization - implemented review comments Issue-ID: AAF-147
Change-Id: I85030f461d6242d0bd4358dce7ac3b6d86edfd22
Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
Diffstat (limited to 'sms-service')
-rw-r--r-- | sms-service/bin/Dockerfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sms-service/bin/Dockerfile b/sms-service/bin/Dockerfile new file mode 100644 index 0000000..9e9863b --- /dev/null +++ b/sms-service/bin/Dockerfile @@ -0,0 +1,33 @@ +FROM alpine:3.7 +MAINTAINER onap-aaf-sms + +ENV VAULT_VERSION 0.9.4 +ENV CONSUL_VERSION 1.0.1 + +LABEL name="sms-vault-consul" +LABEL version=0.0.1 +LABEL maintainer="vamshi krishna <vn00480215@techmahindra.com>" + + + ADD https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip /tmp/vault.zip + RUN unzip -d /bin /tmp/vault.zip && \ + chmod 755 /bin/vault && \ + rm /tmp/vault.zip + + ADD https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip /tmp/consul.zip + RUN unzip -d /bin /tmp/consul.zip && \ + chmod 755 /bin/consul && \ + rm /tmp/consul.zip + + +EXPOSE 8200 +VOLUME "/config" +ADD ./config /config/ + +ENTRYPOINT ["/bin/consul"] +CMD ["agent", "-config-file", "config/consul.json"] + + +ENTRYPOINT ["/bin/vault"] +CMD ["server", "-config", "config/vault.hcl"] + |