From 801177d16ccc9eeb14d9ccc3278420b90e207639 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 11 Aug 2017 13:19:12 +0200 Subject: o Initial import of configuration for knot. --- knot/ssp/Dockerfile | 24 ++++ knot/ssp/build | 7 + knot/ssp/conf/000-default.conf | 19 +++ knot/ssp/conf/config.inc.php | 285 +++++++++++++++++++++++++++++++++++++++++ knot/ssp/launch | 9 ++ knot/ssp/self-service-password | 1 + 6 files changed, 345 insertions(+) create mode 100644 knot/ssp/Dockerfile create mode 100755 knot/ssp/build create mode 100644 knot/ssp/conf/000-default.conf create mode 100644 knot/ssp/conf/config.inc.php create mode 100755 knot/ssp/launch create mode 160000 knot/ssp/self-service-password (limited to 'knot/ssp') diff --git a/knot/ssp/Dockerfile b/knot/ssp/Dockerfile new file mode 100644 index 0000000..6f19b9d --- /dev/null +++ b/knot/ssp/Dockerfile @@ -0,0 +1,24 @@ +FROM debian:stretch-slim + +MAINTAINER Trygve Laugstøl + +VOLUME /local + +ARG DEBIAN_FRONTEND=noninteractive +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + apache2 \ + aptitude \ + apt-utils \ + git \ + git \ + libapache2-mod-php \ + php-ldap \ + php-mbstring \ + php-xml + +COPY self-service-password /srv/self-service-password +COPY conf/000-default.conf /etc/apache2/sites-available/000-default.conf +COPY conf/config.inc.php /srv/self-service-password/conf/config.inc.php +CMD [] +ENTRYPOINT ["apachectl", "-DFOREGROUND"] diff --git a/knot/ssp/build b/knot/ssp/build new file mode 100755 index 0000000..2c2e62d --- /dev/null +++ b/knot/ssp/build @@ -0,0 +1,7 @@ +#!/bin/bash +set -x +set -e +name=trygvis-ssp +basedir=$(dirname $0) +cd $basedir +exec sudo docker build -t "$name" . diff --git a/knot/ssp/conf/000-default.conf b/knot/ssp/conf/000-default.conf new file mode 100644 index 0000000..7bccb8b --- /dev/null +++ b/knot/ssp/conf/000-default.conf @@ -0,0 +1,19 @@ + + ServerAdmin webmaster@trygvis.io + ServerName auth.trygvis.io + DocumentRoot /srv/self-service-password + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + + DirectoryIndex index.php + AddDefaultCharset UTF-8 + + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + + + +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet diff --git a/knot/ssp/conf/config.inc.php b/knot/ssp/conf/config.inc.php new file mode 100644 index 0000000..90f0779 --- /dev/null +++ b/knot/ssp/conf/config.inc.php @@ -0,0 +1,285 @@ + diff --git a/knot/ssp/launch b/knot/ssp/launch new file mode 100755 index 0000000..9b2066b --- /dev/null +++ b/knot/ssp/launch @@ -0,0 +1,9 @@ +#!/bin/bash +set -x +sudo docker run -d \ + --net trygvis-net \ + --ip 172.90.0.10 \ + --hostname t-ssp \ + --name t-ssp \ + --link trygvis-openldap \ + trygvis-ssp diff --git a/knot/ssp/self-service-password b/knot/ssp/self-service-password new file mode 160000 index 0000000..6ddbc1b --- /dev/null +++ b/knot/ssp/self-service-password @@ -0,0 +1 @@ +Subproject commit 6ddbc1bd54e8511b2be95c9c66a1c304764300dd -- cgit v1.2.3