Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build fails - #147

Open
simonjcarr opened this issue Dec 31, 2021 · 4 comments
Open

docker build fails - #147

simonjcarr opened this issue Dec 31, 2021 · 4 comments

Comments

@simonjcarr
Copy link

I am running a docker build in a GitLab CI pipeline, but the script fails as shown below.

The GitLab runner is running Ubuntu 18.04

$ docker build -t $CI_REGISTRY_IMAGE:latest .
Step 1/1 : FROM jshimko/meteor-launchpad:latest
latest: Pulling from jshimko/meteor-launchpad
068d4584d7e4: Pulling fs layer
d8b8b8c2f496: Pulling fs layer
4bf8776bd8a8: Pulling fs layer
c846fa7ac8bb: Pulling fs layer
9bd7f3071604: Pulling fs layer
c846fa7ac8bb: Waiting
9bd7f3071604: Waiting
4bf8776bd8a8: Verifying Checksum
4bf8776bd8a8: Download complete
d8b8b8c2f496: Verifying Checksum
d8b8b8c2f496: Download complete
c846fa7ac8bb: Download complete
9bd7f3071604: Verifying Checksum
9bd7f3071604: Download complete
068d4584d7e4: Verifying Checksum
068d4584d7e4: Download complete
068d4584d7e4: Pull complete
d8b8b8c2f496: Pull complete
4bf8776bd8a8: Pull complete
c846fa7ac8bb: Pull complete
9bd7f3071604: Pull complete
Digest: sha256:7f9c695c8fed91e9b68a7201f55d832945586ba71aa42fc606250cb2e79d0f49
Status: Downloaded newer image for jshimko/meteor-launchpad:latest
# Executing 17 build triggers
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 62570566a1f2
Removing intermediate container 62570566a1f2
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in a8193f4b2166
Removing intermediate container a8193f4b2166
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 55ef235cd7b1
Removing intermediate container 55ef235cd7b1
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 1c3b74f57acd
Removing intermediate container 1c3b74f57acd
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 265e177aed83
Removing intermediate container 265e177aed83
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in f911aa9f447b
Removing intermediate container f911aa9f447b
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in d8e4e39e5d93
Removing intermediate container d8e4e39e5d93
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 70748f065e27
Removing intermediate container 70748f065e27
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in af182f6e6c39
Removing intermediate container af182f6e6c39
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 32d3c0e83a55
Removing intermediate container 32d3c0e83a55
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 38926a1bed7f
Removing intermediate container 38926a1bed7f
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 0818720b35c0
Removing intermediate container 0818720b35c0
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 237b18dba7eb
Removing intermediate container 237b18dba7eb
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 64440e8db12b
Removing intermediate container 64440e8db12b
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 21846c7f9a8f
standard_init_linux.go:228: exec user process caused: exec format error
The command '/bin/sh -c if [ "$APT_GET_INSTALL" ]; then apt-get update && apt-get install -y $APT_GET_INSTALL; fi' returned a non-zero code: 1
@simonjcarr
Copy link
Author

OK, so I realised that the latest tag on docker hub has only been built to support Raspberry Pi's.

I change the image to V2.4.0 which is amd/64 and I get further, but the build still fails with the following errors.

[-] Installing base OS dependencies...

Get:1 http://deb.debian.org/debian stable InRelease [116 kB]
Ign:2 http://security.debian.org/debian-security stable/updates InRelease
Get:3 http://deb.debian.org/debian stable-updates InRelease [39.4 kB]
Err:4 http://security.debian.org/debian-security stable/updates Release
  404  Not Found [IP: 151.101.2.132 80]
Get:5 http://deb.debian.org/debian stable/main amd64 Packages [8183 kB]
Get:6 http://deb.debian.org/debian stable-updates/main amd64 Packages [2592 B]
Reading package lists...
E: The repository 'http://security.debian.org/debian-security stable/updates Release' does not have a Release file.
The command '/bin/sh -c cd $APP_SOURCE_DIR &&   $BUILD_SCRIPTS_DIR/install-deps.sh &&   $BUILD_SCRIPTS_DIR/install-node.sh &&   $BUILD_SCRIPTS_DIR/install-phantom.sh &&   $BUILD_SCRIPTS_DIR/install-graphicsmagick.sh &&   $BUILD_SCRIPTS_DIR/install-mongo.sh &&   $BUILD_SCRIPTS_DIR/install-meteor.sh &&   $BUILD_SCRIPTS_DIR/build-meteor.sh &&   $BUILD_SCRIPTS_DIR/post-build-cleanup.sh' returned a non-zero code: 100

@inteldon
Copy link

inteldon commented Jan 7, 2022

I'm having the exact same error. Waiting for this to resolve. In my case it's happening on ubuntu 20.04

@diavrank
Copy link

I have the same error, I'm using Ubuntu 16.04

@ashenwolf
Copy link

Same problem when using Mac. Maybe someone has found a quick workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants