blob: 1d3c7108ac8269b2361710baeb4a401b3db1d9cd (
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
34
35
36
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"]
|