projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modifies POL to create database if using mysql URI
[osm/POL.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index
3c00b7a
..
2ca3fc4
100644
(file)
--- a/
docker/Dockerfile
+++ b/
docker/Dockerfile
@@
-25,7
+25,7
@@
FROM ubuntu:16.04
LABEL authors="Benjamín Díaz"
RUN apt-get --yes update \
LABEL authors="Benjamín Díaz"
RUN apt-get --yes update \
- && apt-get --yes install python3 python3-pip libmysqlclient-dev git \
+ && apt-get --yes install python3 python3-pip libmysqlclient-dev git
mysql-client
\
&& pip3 install pip==9.0.3
COPY requirements.txt /policy_module/requirements.txt
&& pip3 install pip==9.0.3
COPY requirements.txt /policy_module/requirements.txt
@@
-48,3
+48,5
@@
ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
CMD osm-policy-agent
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
CMD osm-policy-agent
+
+CMD /bin/bash /policy_module/docker/scripts/start.sh
\ No newline at end of file