Skip to content

Commit 6b09d0a

Browse files
authored
Build each service image individually (#1858)
Fixes #1847
1 parent dbb89bf commit 6b09d0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/build-docker-images.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ echo ""
44
# Build any service that provides the image sentry-self-hosted-local first,
55
# as it is used as the base image for sentry-cleanup-self-hosted-local.
66
$dc build --build-arg "http_proxy=${http_proxy:-}" --build-arg "https_proxy=${https_proxy:-}" --build-arg "no_proxy=${no_proxy:-}" --force-rm web
7-
$dc build --build-arg "http_proxy=${http_proxy:-}" --build-arg "https_proxy=${https_proxy:-}" --build-arg "no_proxy=${no_proxy:-}" --force-rm
7+
for service in "$($dc config --services)"; do
8+
$dc build --build-arg "http_proxy=${http_proxy:-}" --build-arg "https_proxy=${https_proxy:-}" --build-arg "no_proxy=${no_proxy:-}" --force-rm $service
9+
done
810
# Used in error-handling.sh for error envelope payloads
911
docker build -t sentry-self-hosted-jq-local --platform=$DOCKER_PLATFORM $basedir/jq
1012
echo ""

0 commit comments

Comments
 (0)