From 90c751c836be5f4f8962545ea08ace25b0754164 Mon Sep 17 00:00:00 2001 From: fly Date: Wed, 7 Apr 2021 11:28:54 +0200 Subject: [PATCH] Added managment container Signed-off-by: fly --- managment/Dockerfile | 20 ++++++++++++++++++++ managment/config.php | 7 +++++++ 2 files changed, 27 insertions(+) create mode 100644 managment/Dockerfile create mode 100644 managment/config.php diff --git a/managment/Dockerfile b/managment/Dockerfile new file mode 100644 index 0000000..52dbcb7 --- /dev/null +++ b/managment/Dockerfile @@ -0,0 +1,20 @@ +FROM docker.io/library/php:7.2-apache + +RUN apt-get update -y && apt-get install -y git + +RUN docker-php-ext-install -j$(nproc) mysqli + +WORKDIR / + +RUN git clone https://gitlab.com/merspieler/osm2city-scripts.git && cp /osm2city-scripts/web/index.php /var/www/html/ && rm -rf /osm2city-scripts + +WORKDIR /var/www/html/ + +COPY config.php . + +# Set default env vars +ENV SQL_HOST mysql +ENV SQL_PORT 3306 +ENV SQL_USER flightgear +ENV SQL_PASSWORD FG-is-GREAT +ENV SQL_DATABASE worldbuild diff --git a/managment/config.php b/managment/config.php new file mode 100644 index 0000000..98047ac --- /dev/null +++ b/managment/config.php @@ -0,0 +1,7 @@ +