1 FROM openecomp/policy/policy-os
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' && \
8 apt-get install -y mariadb-server && \
9 touch /var/lib/mysql/firstrun
11 COPY dbinit.sh do-start.sh /tmp/
12 RUN bash /tmp/dbinit.sh
14 # mount volumes to persist the data
15 VOLUME /etc/mysql /var/lib/mysql
17 CMD exec bash /tmp/do-start.sh