Skip to content

Commit

Permalink
make producer aggregator work with new base image
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Sep 12, 2024
1 parent 9aed2ca commit 0a4e840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/producers/aggregator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PRODUCER_AGGREGATOR_BASE_IMAGE
FROM ${PRODUCER_AGGREGATOR_BASE_IMAGE}
ARG BASE_IMAGE
FROM ${BASE_IMAGE:-scratch}

COPY ./components/producers/aggregator/aggregator-parser /app/components/producers/aggregator/tagger

Expand Down
3 changes: 1 addition & 2 deletions components/producers/aggregator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
CONTAINER_REPO=
DRACON_VERSION=
SOURCE_CODE_REPO=
PRODUCER_AGGREGATOR_BASE_IMAGE=$(shell test -e .custom_image && cat .custom_image || echo "scratch")

DOCKER=docker

container:
$(DOCKER) build --tag $(CONTAINER_REPO)/components/producers/tagger:$(DRACON_VERSION) \
--file Dockerfile \
$$([ "${SOURCE_CODE_REPO}" != "" ] && echo "--label=org.opencontainers.image.source=${SOURCE_CODE_REPO}" ) \
--build-arg PRODUCER_AGGREGATOR_BASE_IMAGE=$(PRODUCER_AGGREGATOR_BASE_IMAGE) ../../../bin 1>&2
--build-arg BASE_IMAGE=$(BASE_IMAGE) ../../../bin 1>&2

publish:
$(DOCKER) push $(CONTAINER_REPO)/components/producers/tagger:$(DRACON_VERSION) 1>&2

0 comments on commit 0a4e840

Please sign in to comment.