summaryrefslogtreecommitdiffstats
path: root/sms-service/bin/Dockerfile
blob: 9e9863b0f537d4f8b455060857a2502e364dba92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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"]