a74164dd31e7f369ba1a12217ac09e72efd30ea6
[policy/docker.git] / policy-db / Dockerfile
1 FROM openecomp/policy/policy-os
2
3 RUN \
4         apt-get install -y apt-transport-https && \
5         apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db && \
6         add-apt-repository 'deb [arch=amd64,i386,ppc64el] https://mirrors.evowise.com/mariadb/repo/10.1/ubuntu trusty main' && \
7         apt-get update && \
8         apt-get install -y mariadb-server && \
9         touch /var/lib/mysql/firstrun
10
11 COPY dbinit.sh do-start.sh /tmp/
12 RUN bash /tmp/dbinit.sh
13
14 # mount volumes to persist the data
15 VOLUME /etc/mysql /var/lib/mysql
16
17 CMD exec bash /tmp/do-start.sh