diff --git a/components/consumers/jira/Dockerfile b/components/consumers/jira/Dockerfile new file mode 100644 index 000000000..003b59928 --- /dev/null +++ b/components/consumers/jira/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:3.20 + +RUN apk add --no-cache ca-certificates + +COPY ./components/consumers/jira/jira /app/components/consumers/jira/jira + +ENTRYPOINT ["/app/components/consumers/jira/jira"] diff --git a/components/consumers/jira/Makefile b/components/consumers/jira/Makefile new file mode 100644 index 000000000..bb2408a88 --- /dev/null +++ b/components/consumers/jira/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/jira:$(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/jira:$(DRACON_VERSION) 1>&2