2016-08-11 18:17:49 +02:00
|
|
|
FROM mysql:5.5
|
|
|
|
MAINTAINER Pandora FMS Team <info@pandorafms.com>
|
|
|
|
|
|
|
|
WORKDIR /pandorafms/pandora_console
|
2016-08-12 13:02:57 +02:00
|
|
|
|
2016-08-11 18:17:49 +02:00
|
|
|
ADD pandoradb.sql /docker-entrypoint-initdb.d
|
|
|
|
ADD pandoradb_data.sql /docker-entrypoint-initdb.d
|
2018-05-04 09:55:28 +02:00
|
|
|
RUN chown mysql /docker-entrypoint-initdb.d
|
2016-08-12 13:02:57 +02:00
|
|
|
|
|
|
|
ENV MYSQL_DATABASE=pandora
|
|
|
|
|
|
|
|
RUN echo " \n\
|
|
|
|
sed -i \"1iUSE \$MYSQL_DATABASE\" /docker-entrypoint-initdb.d/pandoradb.sql \n\
|
|
|
|
sed -i \"1iUSE \$MYSQL_DATABASE\" /docker-entrypoint-initdb.d/pandoradb_data.sql \n\
|
|
|
|
" >> /docker-entrypoint-initdb.d/create_pandoradb.sh
|