-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt at shibboleth docker file
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM debian:10 | ||
|
||
RUN apt update | ||
RUN apt install -y apache2 gnupg curl ntp | ||
RUN cd /tmp | ||
RUN curl --fail --remote-name https://pkg.switch.ch/switchaai/debian/dists/buster/main/binary-all/misc/switchaai-apt-source_1.0.0_all.deb | ||
RUN apt install ./switchaai-apt-source_1.0.0_all.deb | ||
RUN rm ./switchaai-apt-source_1.0.0_all.deb | ||
RUN apt update | ||
RUN apt install --install-recommends shibboleth | ||
RUN apt install libapache2-mod-xsendfile libapache2-mod-shib | ||
RUN a2enmod proxy proxy_http proxy_html xsendfile shib | ||
|
||
RUN rm /etc/apache2/sites-enabled/* | ||
|
||
COPY configs/puzzlehunt_apache.conf /etc/apache2/sites-available/puzzlehunt.conf | ||
COPY configs/certs/sp-cert.pem /etc/shibboleth/sp-cert.pem | ||
COPY configs/certs/sp-key.pem /etc/shibboleth/sp-key.pem | ||
COPY configs/shibboleth2.xml /etc/shibboleth/shibboleth2.xml | ||
|
||
RUN a2ensite puzzlehunt | ||
|
||
RUN mkdir -p /static | ||
RUN mkdir -p /media | ||
|
||
ENTRYPOINT ["/usr/sbin/apache2ctl"] | ||
CMD ["-D", "FOREGROUND"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Put sp-key.pem and sp-cert.pem in this directory when deploying |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3' | ||
|
||
services: | ||
db: | ||
image: mariadb | ||
environment: | ||
MYSQL_DATABASE: puzzlehunt_db | ||
MYSQL_USER: ${DB_USER} | ||
MYSQL_PASSWORD: ${DB_PASSWORD} | ||
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} | ||
|
||
app: | ||
environment: | ||
- DATABASE_URL=mysql://${DB_USER}:${DB_PASSWORD}@db/puzzlehunt_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
web: | ||
build: | ||
dockerfile: apacheShibDockerfile |