I am attempting to build a docker container from a makefile using the command ‘make dev’, and it keeps giving me this error:
PS C:\Users\johns\OneDrive\documents\GitHub\sidewalkwebpage> make dev
projectsidewalk-db is up-to-date
Starting projectsidewalk-db ... done Building web
Step 1/9 : FROM openjdk:8-jdk-stretch
---> f8146facf376
Step 2/9 : RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs
---> Using cache
---> 65f47a0f2d08
Step 3/9 : RUN echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 && apt-get update
---> Running in 6a211a40458d
deb https://dl.bintray.com/sbt/debian /
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.aruCwsH8eR/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
gpg: keyserver receive failed: Server indicated a failure
ERROR: Service 'web' failed to build: The command '/bin/sh -c echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 && apt-get update' returned a non-zero code: 2
make: *** [docker-run] Error 1
I have tried a lot of fixes on my own and from Google but nothing seems to work. Any thoughts on what to do would be helpful! Here is a link to the GitHub repository which has the files being used to create the container: https://github.com/ProjectSidewalk/SidewalkWebpage
Warning: Not tested!
You don’t call a different server, but try a second or third one if the others fail. You can add the Ubuntu server to the list too, if you want.
It’s not the same, it just looks the same.
This is a bit strange because if I paste the whole command into an openjdk-8 container it works fine and gpg gives me this output:
gpg: key 99E82A75642AC823: public key "sbt build tool <scalasbt@gmail.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
PS C:\Users\johns\OneDrive\documents\GitHub\sidewalkwebpage> make dev
Starting projectsidewalk-db ... error
ERROR: for projectsidewalk-db Cannot start service db: network 1e688616f9e710bff7e65d659903f5e7d3bcbad5d7fce1c2ccf670703d727a83 not found
ERROR: for db Cannot start service db: network 1e688616f9e710bff7e65d659903f5e7d3bcbad5d7fce1c2ccf670703d727a83 not found
ERROR: Encountered errors while bringing up the project.
make: *** [docker-up-db] Error 1
It’s saying something about not being able to start service db, but I don’t know what that means.