Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changes/DM-54126.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change to use shared buildx builder instead of recreating for each build.
8 changes: 4 additions & 4 deletions tap-schema/build
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ do
schema_index=$((schema_index+1))
done

# Build and push docker images
docker buildx create --name tap-schema --driver docker-container \
--platform linux/amd64 --platform linux/arm64
# Build and push docker image, creating the builder if it doesn't exist
docker buildx inspect tap-schema >/dev/null 2>&1 || \
docker buildx create --name tap-schema --driver docker-container \
--platform linux/amd64 --platform linux/arm64
docker buildx build --push --builder tap-schema --progress plain \
--platform linux/amd64 --platform linux/arm64 \
--tag lsstsqre/tap-schema-$ENVIRONMENT:$GIT_TAG .
docker buildx rm tap-schema

echo "Pushed Docker image: lsstsqre/tap-schema-$ENVIRONMENT:$GIT_TAG"

Expand Down
7 changes: 7 additions & 0 deletions tap-schema/build-all
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# NB: The order of files in the ./build statements controls the TAP_SCHEMA.schemas.schema_index
# values that control the presentation order of schemas. This is respected by the Portal Aspect.
#

# Create a shared buildx builder
docker buildx create --name tap-schema --driver docker-container \
--platform linux/amd64 --platform linux/arm64

./build mock

# TAP services based on production Qserv at USDF:
Expand All @@ -29,3 +34,5 @@

FELIS_UNIQUE_KEYS=1 ./build usdf-dev-cdb ../yml/{cdb,efd}_*.yaml
FELIS_UNIQUE_KEYS=1 ./build usdf-prod-cdb ../yml/{cdb,efd}_*.yaml

docker buildx rm tap-schema