aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_consul/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'moonv4/moon_consul/Dockerfile')
-rw-r--r--moonv4/moon_consul/Dockerfile37
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