From efa91053862af648c28cdccc470f2ae68022bf55 Mon Sep 17 00:00:00 2001 From: axl89 Date: Thu, 11 Aug 2016 18:17:49 +0200 Subject: [PATCH] Added new Dockerfile for pandorafms-mysql image --- pandora_console/DB_Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pandora_console/DB_Dockerfile diff --git a/pandora_console/DB_Dockerfile b/pandora_console/DB_Dockerfile new file mode 100644 index 0000000000..bfe01639c2 --- /dev/null +++ b/pandora_console/DB_Dockerfile @@ -0,0 +1,9 @@ +FROM mysql:5.5 +MAINTAINER Pandora FMS Team + +WORKDIR /pandorafms/pandora_console +ADD pandoradb.sql /docker-entrypoint-initdb.d +ADD pandoradb_data.sql /docker-entrypoint-initdb.d +RUN /bin/bash -c 'echo "CREATE DATABASE pandora" > /docker-entrypoint-initdb.d/create_pandoradb.sql' +RUN /bin/bash -c 'sed -i "1iUSE pandora" /docker-entrypoint-initdb.d/pandoradb.sql' +RUN /bin/bash -c 'sed -i "1iUSE pandora" /docker-entrypoint-initdb.d/pandoradb_data.sql'