From 3666f35e0e884068437fe520dbd5f087bea4d946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 21 Apr 2017 11:49:23 +0200 Subject: Use alpine for the docker image, and simplify the config + run stuff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using env variable directly used by the process, it’s easier than calling sed on the configuration file before we start the process. Also we don’t need to start as root anymore, and it’s a lot cleaner. --- docker/biboumi/entrypoint.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 docker/biboumi/entrypoint.sh (limited to 'docker/biboumi/entrypoint.sh') diff --git a/docker/biboumi/entrypoint.sh b/docker/biboumi/entrypoint.sh deleted file mode 100644 index af61260..0000000 --- a/docker/biboumi/entrypoint.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -sed -i s/BIBOUMI_XMPP_SERVER_IP/${BIBOUMI_XMPP_SERVER_IP:-xmpp}/ /etc/biboumi/biboumi.cfg -sed -i s/BIBOUMI_HOSTNAME/${BIBOUMI_HOSTNAME:-biboumi.localhost}/ /etc/biboumi/biboumi.cfg -sed -i s/BIBOUMI_ADMIN/${BIBOUMI_ADMIN:-}/ /etc/biboumi/biboumi.cfg -sed -i s/BIBOUMI_PASSWORD/${BIBOUMI_PASSWORD:-missing_password}/ /etc/biboumi/biboumi.cfg - -chown -R biboumi:biboumi /var/lib/biboumi - -echo "Running biboumi with the following conf: " -cat /etc/biboumi/biboumi.cfg - -exec runuser -u biboumi /usr/bin/biboumi /etc/biboumi/biboumi.cfg -- cgit v1.2.3