Workaround "Cannot assign requested address" for key fetch
authorAaron Spettl <redacted>
Sat, 23 Feb 2019 12:07:53 +0000 (13:07 +0100)
committerAaron Spettl <redacted>
Sat, 23 Feb 2019 12:12:28 +0000 (13:12 +0100)
php-apache/Dockerfile
php-fpm/Dockerfile

index 6bfb3a226350fcf907e8e70d73f8e7722829b977..422a9d0303ff5a42115c68f7da947a9cefee41a5 100644 (file)
@@ -66,6 +66,8 @@ RUN set -ex; \
        curl -o roundcubemail.tar.gz -SL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
        curl -o roundcubemail.tar.gz.asc -SL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz.asc; \
        export GNUPGHOME="$(mktemp -d)"; \
+       # workaround for "Cannot assign requested address", see e.g. https://github.com/inversepath/usbarmory-debian-base_image/issues/9
+       echo "disable-ipv6" > "$GNUPGHOME/dirmngr.conf"; \
        # ha.pool.sks-keyservers.net seems to be unreliable, use pgp.mit.edu as fallback
        gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys F3E4C04BB3DB5D4215C45F7F5AB2BAA141C4F7D5 || gpg --no-tty --keyserver pgp.mit.edu --recv-keys F3E4C04BB3DB5D4215C45F7F5AB2BAA141C4F7D5; \
        gpg --batch --verify roundcubemail.tar.gz.asc roundcubemail.tar.gz; \
index 19f5a804964ef61abe1c7fd72a8a645f45d433c0..9786f1d9b8ef4df38fa5cea355a9d04867683d61 100644 (file)
@@ -63,6 +63,8 @@ RUN set -ex; \
        curl -o roundcubemail.tar.gz -SL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
        curl -o roundcubemail.tar.gz.asc -SL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz.asc; \
        export GNUPGHOME="$(mktemp -d)"; \
+       # workaround for "Cannot assign requested address", see e.g. https://github.com/inversepath/usbarmory-debian-base_image/issues/9
+       echo "disable-ipv6" > "$GNUPGHOME/dirmngr.conf"; \
        # ha.pool.sks-keyservers.net seems to be unreliable, use pgp.mit.edu as fallback
        gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys F3E4C04BB3DB5D4215C45F7F5AB2BAA141C4F7D5 || gpg --no-tty --keyserver pgp.mit.edu --recv-keys F3E4C04BB3DB5D4215C45F7F5AB2BAA141C4F7D5; \
        gpg --batch --verify roundcubemail.tar.gz.asc roundcubemail.tar.gz; \
git clone https://git.99rst.org/PROJECT