Skip to content

Update the docker build.#2958

Open
drgrice1 wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:docker-build-update
Open

Update the docker build.#2958
drgrice1 wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:docker-build-update

Conversation

@drgrice1
Copy link
Copy Markdown
Member

@drgrice1 drgrice1 commented Apr 22, 2026

Update to node 24 in the build instead of node 20.

Update the Perl::Tidy version to the version currently used in development.

Don't install the Statistics::R::IO module. That is not used anymore.

Update to the mariadb 10.11 docker image for the database volume. That should have been done before when I updated the docker build to Ubuntu 24. That matches the version of mariadb in Ubuntu 24.

Remove the --db-layout option that was passed to the addcourse script. That is not valid for the script anymore.

Note that this depends on #2957, since the docker build will fail without the bug in the addcourse script fixed.

@drgrice1 drgrice1 force-pushed the docker-build-update branch from 08227b7 to 1297ba3 Compare April 28, 2026 21:28
@drgrice1 drgrice1 force-pushed the docker-build-update branch 2 times, most recently from 521a58d to 0d6df31 Compare May 19, 2026 00:47
Update to node 24 in the build instead of node 20.

Update the Perl::Tidy version to the version currently used in
development.

Don't install the `Statistics::R::IO` module.  That is not used anymore.

Update to the mariadb 10.11 docker image for the database volume. That
should have been done before when I updated the docker build to Ubuntu
24.  That matches the version of mariadb in Ubuntu 24.

Remove the `--db-layout` option that was passed to the `addcourse`
script.  That is not valid for the script anymore.

Note that this depends on openwebwork#2957, since the docker build will fail
without the bug in the `addcourse` script fixed.
@drgrice1 drgrice1 force-pushed the docker-build-update branch from 0d6df31 to 0abaf1a Compare May 19, 2026 21:22
Copy link
Copy Markdown
Contributor

@Alex-Jordan Alex-Jordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not test by actually running docker, but these changes are easy enough to just read in the code diff and they all look good.

@taniwallach
Copy link
Copy Markdown
Member

I would recommend also moving to use Ubuntu 26.04.

On a recent install of WW 2.20 on Ubuntu 26.04:
sudo cpanm --notest Archive::Zip::SimpleZip ran into problems due to older versions of some packages, so I suspect it will also make trouble in the Docker context.

tani@ip-10-0-22-248:~$ sudo cpanm --notest Archive::Zip::SimpleZip

[sudo: authenticate] Password:
--> Working on Archive::Zip::SimpleZip
Fetching http://www.cpan.org/authors/id/P/PM/PMQS/Archive-Zip-SimpleZip-1.002.tar.gz ... OK
Configuring Archive-Zip-SimpleZip-1.002 ... OK
==> Found dependencies: IO::Compress::RawDeflate, IO::Uncompress::Base, IO::Compress::Zip, IO::Uncompress::RawInflate, IO::Compress::Base, IO::Compress::Bzip2, IO::Uncompress::Unzip


...

==> Found dependencies: Compress::Raw::Bzip2, Compress::Raw::Zlib
--> Working on Compress::Raw::Bzip2
Fetching http://www.cpan.org/authors/id/P/PM/PMQS/Compress-Raw-Bzip2-2.218.tar.gz ... OK
Configuring Compress-Raw-Bzip2-2.218 ... OK
Building Compress-Raw-Bzip2-2.218 ... FAIL
! Installing Compress::Raw::Bzip2 failed. See /root/.cpanm/work/1777892014.12693/build.log for details. Retry with --force to force install it.
--> Working on Compress::Raw::Zlib
Fetching http://www.cpan.org/authors/id/P/PM/PMQS/Compress-Raw-Zlib-2.222.tar.gz ... OK
Configuring Compress-Raw-Zlib-2.222 ... OK
Building Compress-Raw-Zlib-2.222 ... FAIL
! Installing Compress::Raw::Zlib failed. See /root/.cpanm/work/1777892014.12693/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Installed version (2.212) of Compress::Raw::Bzip2 is not in range '2.218', Installed version (2.212) of Compress::Raw::Zlib is not in range '2.218'
! Bailing out the installation for IO-Compress-2.219.
! Installing the dependencies failed: Installed version (2.212) of IO::Compress::Base is not in range '2.213', Installed version (2.212) of IO::Uncompress::RawInflate is not in range '2.213', Installed version (2.212) of IO::Compress::Bzip2 is not in range '2.213', Installed version (2.212) of IO::Uncompress::Unzip is not in range '2.213', Installed version (2.212) of IO::Compress::RawDeflate is not in range '2.213', Installed version (2.212) of IO::Compress::Zip is not in range '2.213', Installed version (2.212) of IO::Uncompress::Base is not in range '2.213'
! Bailing out the installation for Archive-Zip-SimpleZip-1.002.

I needed libcrypt-dev added to the apt install list to get cpanm to install the "bunch" of packages below, so I suspect that needs to be added to the package list in the Dockerfiles.

sudo cpanm IO::Compress::Bzip2 Compress::Raw::Zlib IO::Compress::Zip IO::Uncompress::RawInflate  IO::Uncompress::Base IO::Uncompress::Unzip
sudo cpanm --notest Archive::Zip::SimpleZip

seemed to get it all done, but maybe there is a better approach.

@drgrice1
Copy link
Copy Markdown
Member Author

The package to fix that is libio-compress-perl (if I am remembering the package name correctly of the top of my head). I am running Ubuntu 26 on all my machines now.

I could upgrade the docker build to Ubuntu 26. I was thinking I would wait until the next release and Ubuntu 26.04.1 (i.e. the first point release), but I am okay with doing it now. The server install of Ubuntu 26 seems pretty stable. Not so much the desktop install though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants