You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/testing/dbtest/pgtap-docker/Makefile

22 lines
611 B

REGISTRY_NAME ?= docker.io/hashicorpboundary
TEST_IMAGE_NAME = pgtap
PG_VERSION ?= 13
# Before running this target a builder instance needs to be setup, ie:
# docker buildx create --driver docker-container --use
.PHONY: docker-build
docker-build:
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t $(REGISTRY_NAME)/$(TEST_IMAGE_NAME):$(PG_VERSION) \
--build-arg PG_VERSION=$(PG_VERSION) \
-f Dockerfile .
.PHONY: docker-load
docker-load:
docker buildx build \
--load \
-t $(REGISTRY_NAME)/$(TEST_IMAGE_NAME):$(PG_VERSION) \
--build-arg PG_VERSION=$(PG_VERSION) \
-f Dockerfile .