Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ ENV WEBWORK_ROOT=$APP_ROOT/webwork2 \

# Phase 3 - Ubuntu 20.04 base image + required packages

# Packages changes/added for ubuntu 20.04:
# libcgi-pm-perl (for CGI::Cookie), libdbd-mariadb-perl

# Do NOT include "apt-get -y upgrade"
# see: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

Expand Down Expand Up @@ -182,6 +179,7 @@ RUN apt-get update \
libjson-maybexs-perl \
libcpanel-json-xs-perl \
libyaml-libyaml-perl \
libemail-stuffer-perl \
make \
netpbm \
patch \
Expand Down
4 changes: 1 addition & 3 deletions DockerfileStage1
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ ENV DEBIAN_FRONTEND=noninteractive \

# Phase 2 - Ubuntu 20.04 base image + required packages

# Packages changes/added for ubuntu 20.04:
# libcgi-pm-perl (for CGI::Cookie), libdbd-mariadb-perl

# Do NOT include "apt-get -y upgrade"
# see: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

Expand Down Expand Up @@ -101,6 +98,7 @@ RUN apt-get update \
libjson-maybexs-perl \
libcpanel-json-xs-perl \
libyaml-libyaml-perl \
libemail-stuffer-perl \
make \
netpbm \
patch \
Expand Down
2 changes: 1 addition & 1 deletion docker-config/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if [ "$1" = 'apache2' ]; then

echo "check admin course and admin tables"
wait_for_db
ADMIN_TABLE_EXISTS=`mysql -u $WEBWORK_DB_USER -p$WEBWORK_DB_PASSWORD -B -N -h $WEBWORK_DB_HOST -e "select count(*) from information_schema.tables where table_schema='webwork' and table_name = 'admin_user';"
ADMIN_TABLE_EXISTS=`mysql -u $WEBWORK_DB_USER -p$WEBWORK_DB_PASSWORD -B -N -h $WEBWORK_DB_HOST -e "select count(*) from information_schema.tables where table_schema='webwork' and table_name = 'admin_user';"`
if [ ! -d "$APP_ROOT/courses/admin" ]; then
newgrp www-data
umask 2
Expand Down