blob: 002313cd09ddfbd201a07acc65e4784cdbb80e63 [file] [log] [blame]
Pamela Dragosh9bd4bf62017-03-30 12:46:08 -04001FROM onap/policy/policy-os
Pamela Dragoshd1728dc2017-02-14 19:57:17 -05002
3RUN \
Pamela Dragosh6d4e15f2017-03-08 13:58:22 -05004 apt-get clean && \
Pamela Dragoshd1728dc2017-02-14 19:57:17 -05005 apt-get install -y apt-transport-https && \
6 apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db && \
Pamela Dragoshd30ceee2017-03-08 21:14:47 -05007 add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu trusty main' && \
Pamela Dragosh6d4e15f2017-03-08 13:58:22 -05008 apt-get clean && \
Pamela Dragoshd1728dc2017-02-14 19:57:17 -05009 apt-get update && \
10 apt-get install -y mariadb-server && \
11 touch /var/lib/mysql/firstrun
12
13COPY dbinit.sh do-start.sh /tmp/
14RUN bash /tmp/dbinit.sh
15
16# mount volumes to persist the data
17VOLUME /etc/mysql /var/lib/mysql
18
19CMD exec bash /tmp/do-start.sh