Skip to content

Commit f380c98

Browse files
committed
build: pull from quay.io by default use localhost/ registry
localhost/ is generated with podman builds.
1 parent 08fb181 commit f380c98

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

docs/development/hacking_itk_wasm.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ To prevent Git repository bloat, we add testing data through [CMake content link
6767

6868
## Build environment Docker images
6969

70-
Builds of the [wasm build environment Docker images](../introduction/parts.md#docker) or WebAssembly modules require [Podman (recommended)](https://podman.io/docs/installation) or [Docker](https://docs.docker.com/install/).
71-
72-
* On Linux, make sure you can run [`podman` or `docker` without `sudo`](https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo).
73-
* On Windows, we highly recommend [Podman](https://podman.io/docs/installation).
70+
Builds of the [wasm build environment Docker images](../introduction/parts.md#docker) or WebAssembly modules require [Podman](https://podman.io/docs/installation).
7471

7572
To pull the `latest` the build environment Docker images,
7673

src/docker/pull.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ exe=$(ociExe)
66

77
set -eo pipefail
88

9-
$exe pull itkwasm/emscripten:latest
10-
$exe pull itkwasm/emscripten:latest-debug
9+
$exe pull quay.io/itkwasm/emscripten:latest
10+
$exe pull quay.io/itkwasm/emscripten:latest-debug
1111

12-
$exe pull itkwasm/wasi:latest
13-
$exe pull itkwasm/wasi:latest-debug
12+
$exe pull quay.io/itkwasm/wasi:latest
13+
$exe pull quay.io/itkwasm/wasi:latest-debug

src/docker/push.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ function push_image() {
2626
local image=$1
2727
local tag=$2
2828
local debug=$3
29-
$exe push ${image}:${tag}
30-
$exe tag ${image}:${tag} quay.io/${image}:${tag}
29+
$exe tag localhost/${image}:${tag} docker.io/${image}:${tag}
30+
$exe push docker.io/${image}:${tag}
31+
$exe tag localhost/${image}:${tag} quay.io/${image}:${tag}
3132
$exe push quay.io/${image}:${tag}
3233
if $debug; then
33-
$exe push ${image}:${tag}-debug
34-
$exe tag ${image}:${tag}-debug quay.io/${image}:${tag}-debug
34+
$exe tag localhost/${image}:${tag}-debug docker.io/${image}:${tag}-debug
35+
$exe push docker.io/${image}:${tag}-debug
36+
$exe tag localhost/${image}:${tag}-debug quay.io/${image}:${tag}-debug
3537
$exe push quay.io/${image}:${tag}-debug
3638
fi
3739
}

0 commit comments

Comments
 (0)