Skip to content

Commit dd8790a

Browse files
committed
Update the docker build.
1 parent 5911a98 commit dd8790a

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ RUN apt-get update \
174174
texlive-xetex \
175175
tzdata \
176176
zip $ADDITIONAL_BASE_IMAGE_PACKAGES \
177-
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
177+
&& curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
178178
&& apt-get install -y --no-install-recommends --no-install-suggests nodejs \
179179
&& apt-get clean \
180180
&& rm -fr /var/lib/apt/lists/* /tmp/*
@@ -185,7 +185,7 @@ RUN apt-get update \
185185
RUN cpanm install -n \
186186
Statistics::R::IO \
187187
DBD::MariaDB \
188-
Perl::Tidy@20220613 \
188+
Perl::Tidy@20240903 \
189189
Archive::Zip::SimpleZip \
190190
Net::SAML2 \
191191
&& rm -fr ./cpanm /root/.cpanm /tmp/*
@@ -219,18 +219,18 @@ COPY docker-config/pgfsys-dvisvmg-bbox-fix.patch /tmp
219219
RUN echo "PATH=$PATH:$APP_ROOT/webwork2/bin" >> /root/.bashrc \
220220
&& mkdir /run/webwork2 /etc/ssl/local \
221221
&& cd $APP_ROOT/webwork2/ \
222-
&& chown www-data DATA ../courses logs tmp /etc/ssl/local /run/webwork2 \
223-
&& chmod -R u+w DATA ../courses logs tmp /run/webwork2 /etc/ssl/local \
222+
&& chown www-data DATA ../courses logs tmp /etc/ssl/local /run/webwork2 \
223+
&& chmod -R u+w DATA ../courses logs tmp /run/webwork2 /etc/ssl/local \
224224
&& echo "en_US ISO-8859-1\nen_US.UTF-8 UTF-8" > /etc/locale.gen \
225-
&& /usr/sbin/locale-gen \
226-
&& echo "locales locales/default_environment_locale select en_US.UTF-8\ndebconf debconf/frontend select Noninteractive" > /tmp/preseed.txt \
227-
&& debconf-set-selections /tmp/preseed.txt \
225+
&& /usr/sbin/locale-gen \
226+
&& echo "locales locales/default_environment_locale select en_US.UTF-8\ndebconf debconf/frontend select Noninteractive" > /tmp/preseed.txt \
227+
&& debconf-set-selections /tmp/preseed.txt \
228228
&& rm /etc/localtime /etc/timezone && echo "Etc/UTC" > /etc/timezone \
229-
&& dpkg-reconfigure -f noninteractive tzdata \
229+
&& dpkg-reconfigure -f noninteractive tzdata \
230230
&& cd $WEBWORK_ROOT/htdocs \
231-
&& npm install \
231+
&& npm install \
232232
&& cd $PG_ROOT/htdocs \
233-
&& npm install \
233+
&& npm install \
234234
&& patch -p1 -d / < /tmp/pgfsys-dvisvmg-bbox-fix.patch \
235235
&& rm /tmp/pgfsys-dvisvmg-bbox-fix.patch
236236

DockerfileStage1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ RUN apt-get update \
136136
texlive-xetex \
137137
tzdata \
138138
zip $ADDITIONAL_BASE_IMAGE_PACKAGES \
139-
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
139+
&& curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
140140
&& apt-get install -y --no-install-recommends --no-install-suggests nodejs \
141141
&& apt-get clean \
142142
&& rm -fr /var/lib/apt/lists/* /tmp/*
@@ -147,7 +147,7 @@ RUN apt-get update \
147147
RUN cpanm install -n \
148148
Statistics::R::IO \
149149
DBD::MariaDB \
150-
Perl::Tidy@20220613 \
150+
Perl::Tidy@20240903 \
151151
Archive::Zip::SimpleZip \
152152
Net::SAML2 \
153153
&& rm -fr ./cpanm /root/.cpanm /tmp/*

docker-config/docker-compose.dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
db:
3-
image: mariadb:10.4
3+
image: mariadb:10.11
44

55
# Set a fixed container name, so it does not depend on the directory name
66
container_name: webwork2_db_1

docker-config/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if [ ! -d "$APP_ROOT/courses/admin" ]; then
102102
umask 2
103103
cd $APP_ROOT/courses
104104
wait_for_db
105-
$WEBWORK_ROOT/bin/addcourse admin --db-layout=sql_single --users=$WEBWORK_ROOT/courses.dist/adminClasslist.lst --professors=admin
105+
$WEBWORK_ROOT/bin/addcourse admin --users=$WEBWORK_ROOT/courses.dist/adminClasslist.lst --professors=admin
106106
chown www-data:www-data -R $APP_ROOT/courses
107107
echo "Admin course is created."
108108
echo "user: admin password: admin added to course admin and tables upgraded"

0 commit comments

Comments
 (0)