Netflix / dispatch-docker

Apache License 2.0
206 stars 87 forks source link

Building core service failing in docker-compose #123

Closed rohit-dimagi closed 2 years ago

rohit-dimagi commented 3 years ago

The follwoing error is being encountered on running docker-compose build core

Step 38/48 : RUN set -x     && echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list     && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
 ---> Running in b04f1ed0b8c5
+ echo deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main
+ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc
/bin/sh: 1: wget: not found
+ apt-key add -
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
ERROR: Service 'core' failed to build: The command '/bin/sh -c set -x     && echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list     && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -' returned a non-zero code: 255
smanikim commented 3 years ago

I guess https://github.com/Netflix/dispatch/pull/1628 fixes issue

smanikim commented 3 years ago

I had same issue and it failed when I replaced below randomly to see if I am going to correct URL

image

It was not fetching earlier as it was in cache. [+] Building 0.5s (6/13) => CACHED [internal] load git source https://github.com/Netflix/dispatch.git#latest
But I only started my testing 2 days ago, so weird for me

now it failed somewhere else but surprisingly this step passed

image

jtorvald commented 3 years ago

Did you manage to get it to work?

For me it worked after cloning the dispatch repo and add the context: ../dispatch Then I needed to make some changed here and there (which are almost all merged already thanks to the quick work of @mvilanova ) and answer Yes to the example database.

Do you have more information on the error? This doesn't really say while it fails. Seems more like a network connection not being available or something.

Fgerthoffert commented 3 years ago

Hi, got the same issue as @jtorvald, unable to get it to start "as-is" from a fresh environment and following the documentation.

jtorvald commented 3 years ago

@Fgerthoffert if you replace context: github url to context: ../dispatch/ you can get it installed. I also needed to add wget and gnupg in the apt-get in Dockerfile I believe of ../dispatch/ if you cloned master.

Fgerthoffert commented 3 years ago

@Fgerthoffert if you replace context: github url to context: ../dispatch/ you can get it installed. I also needed to add wget and gnupg in the apt-get in Dockerfile I believe of ../dispatch/ if you cloned master.

Yes, that worked, thank you.

github-actions[bot] commented 2 years ago

This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.

github-actions[bot] commented 2 years ago

This issue was closed, because it has been stalled for 5 days with no activity.