diff options
author | asteroide <thomas.duval@orange.com> | 2017-07-19 17:11:16 +0200 |
---|---|---|
committer | asteroide <thomas.duval@orange.com> | 2017-07-19 17:11:16 +0200 |
commit | a512f3efc3b72ccd0d4d7ccda97833d816836f8d (patch) | |
tree | 3c5d138f68d9d6c90ad9e5b110f6f341f96decd2 /moonv4/moon_consul/Dockerfile | |
parent | ffd694ebadb1d3b4e140104f9f0a81837c0e7258 (diff) |
First version of the Consul component
Change-Id: I32487faa7a68caaf2d40d0a6938e6fc1537680a0
Diffstat (limited to 'moonv4/moon_consul/Dockerfile')
-rw-r--r-- | moonv4/moon_consul/Dockerfile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/moonv4/moon_consul/Dockerfile b/moonv4/moon_consul/Dockerfile new file mode 100644 index 00000000..1d3c7108 --- /dev/null +++ b/moonv4/moon_consul/Dockerfile @@ -0,0 +1,37 @@ +# Pull base image. +FROM ubuntu:latest + +ENV DB_URL="mysql+pymysql://moon:p4sswOrd1@db/moon" +ENV DB_DRIVER=sql +ENV TRANSPORT_URL="rabbit://moon:p4sswOrd1@messenger:5672/moon" +ENV DOCKER_URL="unix://var/run/docker.sock" +ENV SLAVE_NAME= +ENV MASTER_URL= +ENV MASTER_LOGIN= +ENV MASTER_PASSWORD= +ENV INTERFACE_PORT=8080 +ENV CONSUL_HOST="172.88.88.88" +ENV CONSUL_PORT=88 +ENV KEYSTONE_URL="http://keystone:5000/v3" +ENV KEYSTONE_USER=admin +ENV KEYSTONE_PASSWORD=p4ssw0rd +ENV KEYSTONE_DOMAIN=default +ENV KEYSTONE_PROJECT=admin +ENV KEYSTONE_CHECK_TOKEN=False +ENV KEYSTONE_SERVER_CRT=False +ENV PLUGIN_CONTAINERS="asteroide/authz:latest,asteroide/session:latest" +ENV COMPONENTS_PORT_START=38001 + +RUN apt-get update && apt-get install python3.5 python3-pip -y + +RUN pip3 install pip --upgrade +#RUN pip3 install moon_db + +ADD . /root + +WORKDIR /root/ +RUN pip3 install -r requirements.txt +RUN pip3 install . +EXPOSE ${CONSUL_PORT} + +CMD ["python3", "-m", "moon_consul"]
\ No newline at end of file |