Skip to content

.env take precedence over even vars so Debian version doesn't match KOHA_IMAGE

/h/d/d/k/koha-testing-docker ❯❯❯ type ku-21.05
ku-21.05 is an alias for cd "${KOHA_TESTING_DOCKER_HOME}"; export KOHA_IMAGE=21.05-buster; \\n  docker-compose -f docker-compose.yml -f docker-compose.mariadb_latest.yml -p \\n  koha up --force-recreate
/h/d/d/k/koha-testing-docker ❯❯❯ type ku-20.11
ku-20.11 is an alias for cd "${KOHA_TESTING_DOCKER_HOME}"; export KOHA_IMAGE=20.11-buster; \\n  docker-compose -f docker-compose.yml -f docker-compose.mariadb_d12.yml -p \\n  koha up --force-recreate

But when looking in /etc/issue I see Debian 11.

20.11.x

Maybe that is also linked with ktd that can't start on 20.11.x for me:

koha-koha-1       | Can't locate YAML/Syck.pm in @INC (you may need to install the YAML::Syck module) (@INC contains: /kohadevbox/koha /kohadevbox/koha/lib /kohadevbox/qa-test-tools /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /kohadevbox/koha/C4/Installer.pm line 24.
koha-koha-1       | BEGIN failed--compilation aborted at /kohadevbox/koha/C4/Installer.pm line 24.
koha-koha-1       | Compilation failed in require at /kohadevbox/misc4dev/populate_db.pl line 25.

Which is weird because I had the same issue before updating my images but it worked a few weeks ago, same image, same commit.

21.05.x

As for 21.05.x it starts but when loading page it crashes in loop with

Error while loading /etc/koha/sites/kohadev/plack.psgi: Can't load application from file "/kohadevbox/koha/api/v1/app.pl": Can't locate JSON/Validator/OpenAPI/Mojolicious.pm in @INC (you may need to install the JSON::Validator::OpenAPI::Mojolicious module) (@INC contains: /kohadevbox/koha /kohadevbox/koha/lib /kohadevbox/koha/installer /kohadevbox/koha/lib/installer /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl /var/lib/koha/kohadev/plugins) at /kohadevbox/koha/Koha/REST/V1.pm line 25.
BEGIN failed--compilation aborted at /kohadevbox/koha/Koha/REST/V1.pm line 25.

I don't even know what image is starting because I don't see it in the list!

~ ❯❯❯ docker image ls
REPOSITORY                                         TAG            IMAGE ID       CREATED        SIZE
koha/koha-testing                                  master         87e0199e65f9   10 hours ago   2.77GB
mariadb                                            10.5           6b39c42d09fd   8 days ago     411MB
mariadb                                            latest         ea81af801379   8 days ago     383MB
memcached                                          latest         7665ebc98caa   2 weeks ago    89.2MB
koha/elasticsearch-icu                             7.x-os         962b1fe18d0b   2 months ago   824MB
registry.gitlab.com/koha-community/release-tools   latest         72e57634ec8b   2 months ago   321MB
koha/koha-testing                                  20.11-buster   486889efd101   4 months ago   2.21GB
koha/elasticsearch-icu                             6.x            6f0b8cb2243f   6 months ago   975MB
selenium/standalone-firefox                        3              d1f4408519cd   8 months ago   977MB

Even though I downloaded several hundred MiB before starting it.

~ ❯❯❯ type ktd-update-21.05                                              ✘ 130 
ktd-update-21.05 is an alias for cd "${KOHA_TESTING_DOCKER_HOME}"; export KOHA_IMAGE=21.05-buster; \\n  time docker-compose -f docker-compose.yml -f docker-compose.mariadb_latest.yml \\n  pull

/h/d/d/k/koha-testing-docker ❯❯❯ time ktd-update-21.05
WARN[0000] The "COVERAGE" variable is not set. Defaulting to a blank string. 
WARN[0000] The "CPAN" variable is not set. Defaulting to a blank string. 
[+] Running 16/16
 ⠿ db Pulled                                                                                                                                                                                                                          1099.2s
   ⠿ 405f018f9d1d Pull complete                                                                                                                                                                                                        248.0s
   ⠿ 7a85079b8234 Pull complete                                                                                                                                                                                                        251.5s
   ⠿ 579c7ff691b1 Pull complete                                                                                                                                                                                                        251.9s
   ⠿ 4976663b5d6d Pull complete                                                                                                                                                                                                        252.5s
   ⠿ 169024b1fb13 Pull complete                                                                                                                                                                                                        252.6s
   ⠿ c0ffe8ce897f Pull complete                                                                                                                                                                                                        254.0s
   ⠿ b583c09d23c3 Pull complete                                                                                                                                                                                                        254.1s
   ⠿ 9b9f0c08d08f Pull complete                                                                                                                                                                                                        254.3s
   ⠿ 9cd51f984586 Pull complete                                                                                                                                                                                                       1074.4s
   ⠿ d9f506bb8aca Pull complete                                                                                                                                                                                                       1074.4s
   ⠿ 24d689f79ba4 Pull complete                                                                                                                                                                                                       1074.5s
 ⠿ es Pulled                                                                                                                                                                                                                            16.7s
 ⠿ koha Pulled                                                                                                                                                                                                                          11.0s
 ⠿ memcached Pulled                                                                                                                                                                                                                     16.9s
 ⠿ selenium Pulled                                                                                                                                                                                                                      17.6s
docker-compose -f docker-compose.yml -f docker-compose.mariadb_latest.yml pul  2,96s user 2,09s system 0% cpu 18:19,32 total

This is getting supernatural.

Master

Master works but I have an old image and don't dare to upgrade it for now. But it's still Debian 11 when KOHA_IMAGE=master-bookworm

Edited by Victor Grousset/tuxayo