speedtest-to-influxdb icon indicating copy to clipboard operation
speedtest-to-influxdb copied to clipboard

Docker build fails

Open thetravellor opened this issue 2 years ago • 2 comments

LABEL maintainer="Aiden Gilmartin"
21.46 Setting up libcurl4:arm64 (7.64.0-4+deb10u6) ... 21.49 Setting up curl (7.64.0-4+deb10u6) ... 21.53 Setting up libcurl3-gnutls:arm64 (7.64.0-4+deb10u6) ... 21.57 Setting up gnupg1 (1.4.23-1) ... 21.60 Processing triggers for libc-bin (2.28-10+deb10u2) ... 21.90 Warning: apt-key output should not be parsed (stdout is not a terminal) 22.03 Executing: /tmp/apt-key-gpghome.hcgOV4jnNC/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61 22.04 gpg: requesting key D401AB61 from hkp server keyserver.ubuntu.com 23.82 gpg: key D401AB61: public key "Bintray (by JFrog) [email protected]" imported 23.82 gpg: Total number processed: 1 23.82 gpg: imported: 1 (RSA: 1) 23.94 gpg: key 350947F8: "Debian Archive Automatic Signing Key (12/bookworm) [email protected]" not changed 23.94 gpg: key 8783D481: no valid user IDs 23.94 gpg: this may be caused by a missing self-signature 23.94 gpg: Total number processed: 13 23.94 gpg: skipped new keys: 11 23.94 gpg: w/o user IDs: 1 23.94 gpg: unchanged: 1

WARN[0035] buildx: failed to read current commit information with git rev-parse --is-inside-work-tree failed to solve: process "/bin/sh -c apt-get update && apt-get dist-upgrade -y && apt-get -q -y install --no-install-recommends curl apt-utils gnupg1 apt-transport-https dirmngr && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61" did not complete successfully: exit code: 1

thetravellor avatar Sep 08 '23 13:09 thetravellor

I was able to get around this issue with removing "--no-install-recommends" from the Dockerfile

tazboyz16 avatar Oct 11 '23 06:10 tazboyz16

I can confirm the workaround suggested by @tazboyz16 still works. I've commited it at https://github.com/matthijskooijman/speedtest-to-influxdb/tree/fix-docker-build

To use that directly, you can use the following in your docker-compose file:

  build: https://github.com/matthijskooijman/speedtest-to-influxdb.git#fix-docker-build

matthijskooijman avatar Feb 16 '24 00:02 matthijskooijman