diff --git a/components/consumers/dependency-track/Dockerfile b/components/consumers/dependency-track/Dockerfile new file mode 100644 index 000000000..17a6cd3ae --- /dev/null +++ b/components/consumers/dependency-track/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:3.20 + +RUN apk add --no-cache ca-certificates + +COPY ./components/consumers/dependency-track/dependency-track /app/components/consumers/dependency-track/dependency-track + +ENTRYPOINT ["/app/components/consumers/dependency-track/dependency-track"] diff --git a/components/consumers/dependency-track/Makefile b/components/consumers/dependency-track/Makefile new file mode 100644 index 000000000..b160f0073 --- /dev/null +++ b/components/consumers/dependency-track/Makefile @@ -0,0 +1,17 @@ +.PHONY: container publish + +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/consumers/dependency-track:$(DRACON_VERSION) \ + --file Dockerfile \ + $$([ "${SOURCE_CODE_REPO}" != "" ] && echo "--label=org.opencontainers.image.source=${SOURCE_CODE_REPO}" ) \ + ../../../bin 1>&2 + +publish: + $(DOCKER) push $(CONTAINER_REPO)/components/consumers/dependency-track:$(DRACON_VERSION) 1>&2