diff options
author | Ruan HE <ruan.he@orange.com> | 2017-07-20 06:42:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-20 06:42:31 +0000 |
commit | b7c121536061d823b6e2b5063db891405672b259 (patch) | |
tree | ff9b1f0f11449c77cad92516c58566917039e387 /moonv4/moon_consul/Dockerfile | |
parent | 6a59009e64f727bcf3c67a8ae45a02e4137bfb99 (diff) | |
parent | a512f3efc3b72ccd0d4d7ccda97833d816836f8d (diff) |
Merge "First version of the Consul component"
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 |