You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding configuration for Apache2 enables easier testing of
webserver-specific features and issues.
By default, the contributor image still uses NGINX as webserver. Add an
option to use Apache2 by default, or switch back and forth between
NGINX/Apache2 with the `switch-webserver` command.
Copy file name to clipboardExpand all lines: docker-contributor/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The container includes the following:
9
9
* Set up or update the database.
10
10
* Set up the webserver.
11
11
* Create a chroot.
12
-
* PHP-FPM and nginx for running the web interface.
12
+
* PHP-FPM and apache2 or nginx for running the web interface.
13
13
* Two running judgedaemons using a chroot.
14
14
* Scripts for reading the log files of the webserver and the judgedaemons.
15
15
* A script to create a dummy DOMjudge user and submit all test submissions.
@@ -67,6 +67,7 @@ The following environment variables are supported by the container:
67
67
*`MYSQL_DATABASE` (defaults to `domjudge`): set the database to use.
68
68
*`FPM_MAX_CHILDREN` (defaults to `40`): the maximum number of PHP FPM children to spawn.
69
69
*`DJ_SKIP_MAKE` (defaults to `0`): set to `1` to skip the maintainer setup and install commands. This will speed up the startup process of the container and is useful if this is already done before.
70
+
*`DEFAULTWEBSERVER` (defaults to `nginx`): set to `apache2` to use the Apache2 httpd server as default webserver.
70
71
71
72
#### Passwords through files
72
73
@@ -97,6 +98,8 @@ If you have named your container something other than `domjudge`, be sure to cha
97
98
98
99
The following commands are available:
99
100
101
+
*`apache2-access-log`: tail the access log of apache2.
102
+
*`apache2-error-log`: tail the error log of apache2.
100
103
*`nginx-access-log`: tail the access log of nginx.
101
104
*`nginx-error-log`: tail the error log of nginx.
102
105
*`judgedaemon-log 0` and `judgedaemon-log 1`: tail the log of the first / second judgeaemon.
@@ -105,6 +108,7 @@ The following commands are available:
105
108
*`xdebug-enable`: enable Xdebug debugging. See note below
106
109
*`xdebug-disable`: disable Xdebug debugging. See note below
107
110
*`switch-php <version>`: switch to using the given PHP version.
111
+
*`switch-webserver <apache2|nginx>`: switch to using the given webserver.
108
112
109
113
Of course, you can always run `docker exec -it domjudge bash` to get a bash shell inside the container.
110
114
@@ -114,7 +118,7 @@ To restart any of the services, run the following:
0 commit comments