Issue with docker and pack install

Hello,

I try to bujild a docker image based on swipl:stable

Other then the documentation says prosqlite seems not to be preinstalled and when I try to
install it I get an HTTP-500

% Contacting server at http://www.swi-prolog.org/pack/query ...
ERROR: -g pack_install(prosqlite,[interactive(false)]),halt: url `'https://www.swi-prolog.org/pack/query'' does not exist (status(500,Internal Server Error))

What could I do to fix this?

Thanks,
Wolfram.

Did you pull swipl:stable? This problem was fixed in 8.0.3, which is AFAIK, the current stable at DockerHub.

After docker pull swipl:stable the issue with prosqlite seems to be gone, but can’t install googleclient package now:

% Contacting server at https://www.swi-prolog.org/pack/query ... ok
% Pack `prosqlite' is already installed @1.5
Removing intermediate container 0723b11956d0
 ---> 312ee4db3c94
Step 18/29 : RUN swipl -g "pack_install(googleclient,[interactive(false)]),halt" -t "halt(1)"
 ---> Running in f05a35fdc8be
% Contacting server at https://www.swi-prolog.org/pack/query ... ok
% Contacting server at https://www.swi-prolog.org/pack/query ...
ERROR: Server reported the following error:
ERROR: No permission to register pack(googleclient) `'https://api.github.com/repos/JanWielemaker/googleclient/zipball/V0.5.2''

But it seems to be installed despite the error message, so I can live with the current situation:

$ swipl 
Welcome to SWI-Prolog (threaded, 64 bits, version 8.0.3)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit http://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

?- pack_install(googleclient).
% Contacting server at https://www.swi-prolog.org/pack/query ... ok
% Pack `googleclient' is already installed @0.5.2
true.

It is just updating the download location and count that fails. That is still something to work out. Github provides too many different places to download .zip file and they do not seem to be exactly the same over time, making the pack installer confused.

Here is the official Dockerfile for SWI-Prolog which installs some add-ons.