NaturalHistoryMuseum / scratchpads2

Scratchpads 2.0
http://scratchpads.org
GNU General Public License v2.0
199 stars 83 forks source link

Solr + mysql docker container failed to download #6650

Open licensechef opened 1 year ago

licensechef commented 1 year ago

Solr & Mysql container not downloading after running make up

make up
Starting containers
WARN[0000] The "APACHE_SCRATCHPADS_TAVERNA_AUTH_TOKEN" variable is not set. Defaulting to a blank string. 
[+] Running 2/2
 ! varnish Warning                                                                                                                                                        0.3s 
 ! mysql Warning                                                                                                                                                          0.3s 
[+] Building 8.7s (6/6)                                                                                                                                                        
 => [solr internal] load build definition from Dockerfile                                                                                                                 0.0s
 => => transferring dockerfile: 1.19kB                                                                                                                                    0.0s
 => [solr internal] load .dockerignore                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                           0.0s
 => [mysql internal] load build definition from Dockerfile                                                                                                                0.0s
 => => transferring dockerfile: 95B                                                                                                                                       0.0s
 => [mysql internal] load .dockerignore                                                                                                                                   0.0s
 => => transferring context: 2B                                                                                                                                           0.0s
 => ERROR [solr internal] load metadata for docker.io/library/java:7-jre                                                                                                  0.1s
 => CANCELED [mysql internal] load metadata for docker.io/library/mysql:5.6                                                                                               0.1s

To Reproduce Followed the steps on https://scratchpads.readthedocs.io/en/latest/hosting/docker.html to prep the server for docker. At the make up step, it'll return the result above

Tried this on a Ubuntu 20 and AlmaLinux 8 server

Tried this with docker logged in and without logged in

Impact It doesn't start scratchpads at all

benscott commented 1 year ago

Please could you try building the solr image with the command:

docker build -t naturalhistorymuseum/scratchpad-solr -t naturalhistorymuseum/scratchpad-solr:1 docker/solr

And post the output here

licensechef commented 1 year ago
docker build -t naturalhistorymuseum/scratchpad-solr -t naturalhistorymuseum/scratchpad-solr:1 docker/solr
[+] Building 0.3s (4/4) FINISHED                                                                                                                                               
 => [internal] load build definition from Dockerfile                                                                                                                      0.0s
 => => transferring dockerfile: 1.19kB                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                           0.0s
 => ERROR [internal] load metadata for docker.io/library/java:7-jre                                                                                                       0.2s
 => [auth] library/java:pull token for registry-1.docker.io                                                                                                               0.0s
------
 > [internal] load metadata for docker.io/library/java:7-jre:
------
Dockerfile:1
--------------------
   1 | >>> FROM java:7-jre
   2 |     
   3 |     ARG SOLR_UNDERTOW_DIRECTORY='/usr/local/share/solr-undertow'
--------------------
ERROR: failed to solve: java:7-jre: docker.io/library/java:7-jre: not found