mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
Use a specific tag of adferrand/snapcraft to build snaps and avoid an error on QEMU for armhf.
This commit is contained in:
parent
ebf1349b15
commit
5bf767664c
2 changed files with 8 additions and 2 deletions
|
|
@ -31,11 +31,14 @@ function cleanup() {
|
|||
|
||||
trap cleanup EXIT
|
||||
|
||||
# NB: We use ARCH-stable-save tag instead of ARCH-stable, because recent versions of snapcraft images
|
||||
# behave badly on QEMU for armhf architecture. This should be fixed either by a new version of the
|
||||
# image that does not have this problem anymore, or the migration to snapcraft remote builds.
|
||||
docker run \
|
||||
--rm \
|
||||
--net=host \
|
||||
-v "${CERTBOT_DIR}:/certbot" \
|
||||
-w "/certbot" \
|
||||
-e "PIP_EXTRA_INDEX_URL=http://localhost:8080" \
|
||||
"adferrand/snapcraft:${DOCKER_ARCH}-stable" \
|
||||
"adferrand/snapcraft:${DOCKER_ARCH}-stable-save" \
|
||||
bash -c "snapcraft clean && snapcraft"
|
||||
|
|
|
|||
|
|
@ -60,6 +60,9 @@ for DNS_PLUGIN in ${DNS_PLUGINS}; do
|
|||
done
|
||||
EOF
|
||||
|
||||
# NB: We use ARCH-stable-save tag instead of ARCH-stable, because recent versions of snapcraft images
|
||||
# behave badly on QEMU for armhf architecture. This should be fixed either by a new version of the
|
||||
# image that does not have this problem anymore, or the migration to snapcraft remote builds.
|
||||
docker run \
|
||||
--rm \
|
||||
--net=host \
|
||||
|
|
@ -69,5 +72,5 @@ docker run \
|
|||
-w "/certbot" \
|
||||
-e "DNS_PLUGINS=${DNS_PLUGINS}" \
|
||||
-e "PIP_EXTRA_INDEX_URL=http://localhost:8080" \
|
||||
"adferrand/snapcraft:${DOCKER_ARCH}-stable" \
|
||||
"adferrand/snapcraft:${DOCKER_ARCH}-stable-save" \
|
||||
/script.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue