aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPhilipp Le <philipp-le-prviat@freenet.de>2021-02-21 01:52:03 +0100
committerPhilipp Le <philipp-le-prviat@freenet.de>2021-02-21 01:54:53 +0100
commitc922797429e6c078a2c659a6a79284e498244533 (patch)
tree6a3788eeb4049a1d315c092d71b4dfe155a2903a /bin
parentb67c617476b0e20973f1fa2001709bc53592da83 (diff)
downloadbaikal-docker-c922797429e6c078a2c659a6a79284e498244533.zip
baikal-docker-c922797429e6c078a2c659a6a79284e498244533.tar.gz
baikal-docker-c922797429e6c078a2c659a6a79284e498244533.tar.bz2
fix: Build image on our own from Debian 9
Some packages were missing in the older approach. So we have set up the image from a plain Debian 9 Slim image and installed PHP7 and all required packages on owr own.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runapache233
1 files changed, 33 insertions, 0 deletions
diff --git a/bin/runapache2 b/bin/runapache2
new file mode 100755
index 0000000..f1aaa84
--- /dev/null
+++ b/bin/runapache2
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+# Copyright (c) 2016 by CIME Software Ltd. All rights reserved.
+
+# See: LICENSE.txt for complete licensing information.
+
+
+if [[ -n "$CONTAINER_DOMAIN_NAME" ]]
+then
+ DOMAIN_NAME="$CONTAINER_DOMAIN_NAME"
+else
+ DOMAIN_NAME="example.org"
+fi
+
+if [[ -n "$CONTAINER_HOST_NAME" ]]
+then
+ HOST_NAME="$CONTAINER_HOST_NAME"
+else
+ HOST_NAME="calendar"
+fi
+
+hostname "$HOST_NAME.$DOMAIN_NAME"
+domainname "$DOMAIN_NAME"
+
+source /etc/apache2/envvars
+
+mkdir -p "$APACHE_LOCK_DIR"
+mkdir -p "$APACHE_RUN_DIR"
+
+service rsyslog start
+
+/usr/sbin/apache2 -DFOREGROUND
+