diff --git a/.goreleaser.yml b/.goreleaser.yml index a11f4c8fa1a..4ec1e6beefc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -203,7 +203,7 @@ dockers: - config/eventingester/config.yaml - config/scheduler/config.yaml - config/scheduleringester/config.yaml - dockerfile: ./build_goreleaser/bundles/armada/Dockerfile + dockerfile: ./build/bundles/armada/Dockerfile - id: lookout-bundle use: buildx @@ -222,7 +222,7 @@ dockers: - internal/lookout/ui - pkg/api/api.swagger.json - pkg/api/binoculars/api.swagger.json - dockerfile: ./build_goreleaser/bundles/lookout/Dockerfile + dockerfile: ./build/bundles/lookout/Dockerfile - id: full-bundle use: buildx @@ -255,7 +255,7 @@ dockers: - internal/lookout/ui - pkg/api/api.swagger.json - pkg/api/binoculars/api.swagger.json - dockerfile: ./build_goreleaser/bundles/full/Dockerfile + dockerfile: ./build/bundles/full/Dockerfile - id: server use: buildx @@ -269,7 +269,7 @@ dockers: - server extra_files: - config/armada/config.yaml - dockerfile: ./build_goreleaser/server/Dockerfile + dockerfile: ./build/server/Dockerfile - id: executor use: buildx @@ -283,7 +283,7 @@ dockers: - executor extra_files: - config/executor/config.yaml - dockerfile: ./build_goreleaser/executor/Dockerfile + dockerfile: ./build/executor/Dockerfile - id: fakeexecutor use: buildx @@ -297,7 +297,7 @@ dockers: - fakeexecutor extra_files: - config/executor/config.yaml - dockerfile: ./build_goreleaser/fakeexecutor/Dockerfile + dockerfile: ./build/fakeexecutor/Dockerfile - id: armadaloadtester use: buildx @@ -309,7 +309,7 @@ dockers: build_flag_templates: *BUILD_FLAG_TEMPLATES ids: - armadaloadtester - dockerfile: ./build_goreleaser/loadtester/Dockerfile + dockerfile: ./build/loadtester/Dockerfile - id: testsuite use: buildx @@ -321,7 +321,7 @@ dockers: build_flag_templates: *BUILD_FLAG_TEMPLATES ids: - testsuite - dockerfile: ./build_goreleaser/testsuite/Dockerfile + dockerfile: ./build/testsuite/Dockerfile - id: lookoutingesterv2 use: buildx @@ -335,7 +335,7 @@ dockers: - lookoutingesterv2 extra_files: - config/lookoutingesterv2/config.yaml - dockerfile: ./build_goreleaser/lookoutingesterv2/Dockerfile + dockerfile: ./build/lookoutingesterv2/Dockerfile - id: lookoutv2 use: buildx @@ -354,7 +354,7 @@ dockers: - pkg/api/binoculars/api.swagger.json - config/lookoutv2/config.yaml - config/lookoutingesterv2/config.yaml - dockerfile: ./build_goreleaser/lookoutv2/Dockerfile + dockerfile: ./build/lookoutv2/Dockerfile - id: eventingester use: buildx @@ -368,7 +368,7 @@ dockers: - eventingester extra_files: - config/eventingester/config.yaml - dockerfile: ./build_goreleaser/eventingester/Dockerfile + dockerfile: ./build/eventingester/Dockerfile - id: scheduler use: buildx @@ -382,7 +382,7 @@ dockers: - scheduler extra_files: - config/scheduler/config.yaml - dockerfile: ./build_goreleaser/scheduler/Dockerfile + dockerfile: ./build/scheduler/Dockerfile - id: scheduleringester use: buildx @@ -396,7 +396,7 @@ dockers: - scheduleringester extra_files: - config/scheduleringester/config.yaml - dockerfile: ./build_goreleaser/scheduleringester/Dockerfile + dockerfile: ./build/scheduleringester/Dockerfile - id: binoculars use: buildx @@ -410,7 +410,7 @@ dockers: - binoculars extra_files: - config/binoculars/config.yaml - dockerfile: ./build_goreleaser/binoculars/Dockerfile + dockerfile: ./build/binoculars/Dockerfile - id: armadactl use: buildx @@ -422,7 +422,7 @@ dockers: build_flag_templates: *BUILD_FLAG_TEMPLATES ids: - armadactl - dockerfile: ./build_goreleaser/armadactl/Dockerfile + dockerfile: ./build/armadactl/Dockerfile changelog: use: diff --git a/build/armada/Dockerfile b/build/armada/Dockerfile deleted file mode 100644 index 485f4139a78..00000000000 --- a/build/armada/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM alpine:3.20.2 - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada - -USER armada - -COPY ./server /app/ - -COPY ./config/ /app/config/armada - -WORKDIR /app - -ENTRYPOINT ["./server"] diff --git a/build/armadactl/Dockerfile b/build/armadactl/Dockerfile index e8ef1cf826c..cb311def91c 100644 --- a/build/armadactl/Dockerfile +++ b/build/armadactl/Dockerfile @@ -1,10 +1,14 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 +FROM ${BASE_IMAGE} -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +LABEL org.opencontainers.image.title=armadactl +LABEL org.opencontainers.image.description="ArmadaCTL" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/armadactl +RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada -COPY ./armadactl /app/ +COPY armadactl /app/ WORKDIR /app diff --git a/build/binoculars/Dockerfile b/build/binoculars/Dockerfile index fbb6ac94635..daa192ca565 100644 --- a/build/binoculars/Dockerfile +++ b/build/binoculars/Dockerfile @@ -1,12 +1,14 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=binoculars +LABEL org.opencontainers.image.description="binoculars" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/binoculars RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada - USER armada -COPY ./binoculars /app/ - -COPY /config/ /app/config/binoculars +COPY binoculars /app/ +COPY config/binoculars/config.yaml /app/config/binoculars/config.yaml WORKDIR /app diff --git a/build_goreleaser/bundles/armada/Dockerfile b/build/bundles/armada/Dockerfile similarity index 98% rename from build_goreleaser/bundles/armada/Dockerfile rename to build/bundles/armada/Dockerfile index cd910f6a021..559451c184b 100644 --- a/build_goreleaser/bundles/armada/Dockerfile +++ b/build/bundles/armada/Dockerfile @@ -2,7 +2,7 @@ ARG BASE_IMAGE=alpine:3.20.2 FROM ${BASE_IMAGE} LABEL org.opencontainers.image.title=armada LABEL org.opencontainers.image.description="Armada Bundle" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/armada +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/armada RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada diff --git a/build_goreleaser/bundles/full/Dockerfile b/build/bundles/full/Dockerfile similarity index 97% rename from build_goreleaser/bundles/full/Dockerfile rename to build/bundles/full/Dockerfile index 96cb170c9bf..5d638659de0 100644 --- a/build_goreleaser/bundles/full/Dockerfile +++ b/build/bundles/full/Dockerfile @@ -5,7 +5,7 @@ ARG BASE_IMAGE=alpine:3.20.2 FROM ${OPENAPI_BUILD_IMAGE} AS OPENAPI LABEL org.opencontainers.image.title=armada-full-bundle LABEL org.opencontainers.image.description="Armada Full Bundle" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/armada-full-bundle +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/armada-full-bundle COPY internal/lookout/ui /project/internal/lookout/ui COPY pkg/api/*.swagger.json /project/pkg/api/ COPY pkg/api/binoculars/*.swagger.json /project/pkg/api/binoculars/ diff --git a/build_goreleaser/bundles/lookout/Dockerfile b/build/bundles/lookout/Dockerfile similarity index 94% rename from build_goreleaser/bundles/lookout/Dockerfile rename to build/bundles/lookout/Dockerfile index 4d194524c81..e4695696c14 100644 --- a/build_goreleaser/bundles/lookout/Dockerfile +++ b/build/bundles/lookout/Dockerfile @@ -3,7 +3,7 @@ ARG BASE_IMAGE=alpine:3.20.2 FROM ${BASE_IMAGE} LABEL org.opencontainers.image.title=armada-lookout-bundle LABEL org.opencontainers.image.description="Armada Lookout Bundle" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/armada-lookout-bundle +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/armada-lookout-bundle RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada diff --git a/build/eventingester/Dockerfile b/build/eventingester/Dockerfile index 79bc11c369d..f17a0556d24 100644 --- a/build/eventingester/Dockerfile +++ b/build/eventingester/Dockerfile @@ -1,13 +1,13 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=eventingester +LABEL org.opencontainers.image.description="Event Ingester" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/eventingester +RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada - -COPY ./eventingester /app/ - -COPY ./config/ /app/config/eventingester - +COPY eventingester /app/ +COPY config/eventingester/config.yaml /app/config/eventingester/config.yaml WORKDIR /app - ENTRYPOINT ["./eventingester"] diff --git a/build/executor/Dockerfile b/build/executor/Dockerfile index 1b4c628f3f9..ef3cacccfc8 100644 --- a/build/executor/Dockerfile +++ b/build/executor/Dockerfile @@ -1,12 +1,15 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=executor +LABEL org.opencontainers.image.description="Executor" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/executor +RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada -COPY ./executor /app/ - -COPY /config/ /app/config/executor +COPY executor /app/ +COPY config/executor/config.yaml /app/config/executor/config.yaml WORKDIR /app diff --git a/build/fakeexecutor/Dockerfile b/build/fakeexecutor/Dockerfile index dfdb139854e..e55b4e05ba8 100644 --- a/build/fakeexecutor/Dockerfile +++ b/build/fakeexecutor/Dockerfile @@ -1,12 +1,14 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=fakeexecutor +LABEL org.opencontainers.image.description="Fake Executor" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/armada-fakeexecutor RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada - USER armada -COPY ./fakeexecutor /app/ - -COPY /config/ /app/config/executor +COPY fakeexecutor /app/ +COPY config/executor/config.yaml /app/config/executor/config.yaml WORKDIR /app diff --git a/build_goreleaser/loadtester/Dockerfile b/build/loadtester/Dockerfile similarity index 100% rename from build_goreleaser/loadtester/Dockerfile rename to build/loadtester/Dockerfile diff --git a/build/lookoutingesterv2/Dockerfile b/build/lookoutingesterv2/Dockerfile index 30b1c4bfbae..5c8104a1b17 100644 --- a/build/lookoutingesterv2/Dockerfile +++ b/build/lookoutingesterv2/Dockerfile @@ -1,12 +1,15 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=lookoutingesterv2 +LABEL org.opencontainers.image.description="Lookout Ingester V2" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/lookoutingesterv2 +RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada -COPY ./lookoutingesterv2 /app/ - -COPY ./config/ /app/config/lookoutingesterv2 +COPY lookoutingesterv2 /app/ +COPY config/lookoutingesterv2/config.yaml /app/config/lookoutingesterv2/config.yaml WORKDIR /app diff --git a/build/lookoutv2/Dockerfile b/build/lookoutv2/Dockerfile index b5a73b1a80e..6ba72bb7629 100644 --- a/build/lookoutv2/Dockerfile +++ b/build/lookoutv2/Dockerfile @@ -1,13 +1,30 @@ -FROM alpine:3.20.2 +ARG NODE_BUILD_IMAGE=node:16.14-buster +ARG OPENAPI_BUILD_IMAGE=openapitools/openapi-generator-cli:v5.4.0 +ARG BASE_IMAGE=alpine:3.20.2 -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +FROM ${OPENAPI_BUILD_IMAGE} AS OPENAPI -USER armada +COPY internal/lookout/ui /project/internal/lookout/ui +COPY pkg/api/*.swagger.json /project/pkg/api/ +COPY pkg/api/binoculars/*.swagger.json /project/pkg/api/binoculars/ +RUN ./project/internal/lookout/ui/openapi.sh -COPY ./lookoutv2 /app/ -COPY ./internal/lookout/ui/build/ /app/internal/lookout/ui/build -COPY ./config/ /app/config/lookoutv2 +FROM ${NODE_BUILD_IMAGE} AS NODE +COPY --from=OPENAPI /project/internal/lookout/ui /ui/ +WORKDIR /ui +RUN yarn install --immutable +RUN yarn run build +FROM ${BASE_IMAGE} +RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +LABEL org.opencontainers.image.title=lookoutv2 +LABEL org.opencontainers.image.description="Lookout V2" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/lookoutv2 +USER armada +COPY --from=NODE /ui/build/ /app/internal/lookout/ui/build +COPY lookoutv2 /app/ +COPY config/lookoutv2/config.yaml /app/config/lookoutv2/config.yaml +COPY lookoutingesterv2 /app/ +COPY config/lookoutingesterv2/ /app/config/lookoutingesterv2 WORKDIR /app - ENTRYPOINT ["./lookoutv2"] diff --git a/build/scheduler/Dockerfile b/build/scheduler/Dockerfile index af81977ae29..6c84fb53fb3 100644 --- a/build/scheduler/Dockerfile +++ b/build/scheduler/Dockerfile @@ -1,13 +1,13 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=scheduler +LABEL org.opencontainers.image.description="Scheduler" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/scheduler +RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada - -COPY ./scheduler /app/ - -COPY ./config/ /app/config/scheduler - +COPY scheduler /app/ +COPY config/scheduler/config.yaml /app/config/scheduler/config.yaml WORKDIR /app - ENTRYPOINT ["./scheduler"] diff --git a/build/scheduleringester/Dockerfile b/build/scheduleringester/Dockerfile index efcce6a4e77..75adac040e8 100644 --- a/build/scheduleringester/Dockerfile +++ b/build/scheduleringester/Dockerfile @@ -1,13 +1,13 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=scheduleringester +LABEL org.opencontainers.image.description="Scheduler Ingester" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/scheduleringester +RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada - -COPY ./scheduleringester /app/ - -COPY ./config/ /app/config/scheduleringester - +COPY scheduleringester /app/ +COPY config/scheduleringester/config.yaml /app/config/scheduleringester/config.yaml WORKDIR /app - ENTRYPOINT ["./scheduleringester"] diff --git a/build_goreleaser/server/Dockerfile b/build/server/Dockerfile similarity index 94% rename from build_goreleaser/server/Dockerfile rename to build/server/Dockerfile index 85103dae78e..1effc7b8d77 100644 --- a/build_goreleaser/server/Dockerfile +++ b/build/server/Dockerfile @@ -3,7 +3,7 @@ ARG BASE_IMAGE=alpine:3.20.2 FROM ${BASE_IMAGE} LABEL org.opencontainers.image.title=armada-server LABEL org.opencontainers.image.description="Armada Server" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/armada-server +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/armada-server RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada diff --git a/build/testsuite/Dockerfile b/build/testsuite/Dockerfile index 498726edef6..2951011ae6a 100644 --- a/build/testsuite/Dockerfile +++ b/build/testsuite/Dockerfile @@ -1,10 +1,13 @@ -FROM alpine:3.20.2 +ARG BASE_IMAGE=alpine:3.20.2 +FROM ${BASE_IMAGE} +LABEL org.opencontainers.image.title=testsuite +LABEL org.opencontainers.image.description="Test Suite" +LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/testsuite RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada - USER armada -COPY ./testsuite /app/ +COPY testsuite /app/ WORKDIR /app diff --git a/build_goreleaser/armadactl/Dockerfile b/build_goreleaser/armadactl/Dockerfile deleted file mode 100644 index f6206348fa6..00000000000 --- a/build_goreleaser/armadactl/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 -FROM ${BASE_IMAGE} - -LABEL org.opencontainers.image.title=armadactl -LABEL org.opencontainers.image.description="ArmadaCTL" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/armadactl - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada - -COPY armadactl /app/ - -WORKDIR /app - -ENTRYPOINT ["./armadactl"] diff --git a/build_goreleaser/binoculars/Dockerfile b/build_goreleaser/binoculars/Dockerfile deleted file mode 100644 index 58807ae72d4..00000000000 --- a/build_goreleaser/binoculars/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=binoculars -LABEL org.opencontainers.image.description="binoculars" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/binoculars - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada - -COPY binoculars /app/ -COPY config/binoculars/config.yaml /app/config/binoculars/config.yaml - -WORKDIR /app - -ENTRYPOINT ["./binoculars"] diff --git a/build_goreleaser/eventingester/Dockerfile b/build_goreleaser/eventingester/Dockerfile deleted file mode 100644 index 3a59ff815b3..00000000000 --- a/build_goreleaser/eventingester/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 - -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=eventingester -LABEL org.opencontainers.image.description="Event Ingester" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/eventingester - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada -COPY eventingester /app/ -COPY config/eventingester/config.yaml /app/config/eventingester/config.yaml -WORKDIR /app -ENTRYPOINT ["./eventingester"] diff --git a/build_goreleaser/executor/Dockerfile b/build_goreleaser/executor/Dockerfile deleted file mode 100644 index 275a32a8dd3..00000000000 --- a/build_goreleaser/executor/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 - -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=executor -LABEL org.opencontainers.image.description="Executor" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/executor - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada - -COPY executor /app/ -COPY config/executor/config.yaml /app/config/executor/config.yaml - -WORKDIR /app - -ENTRYPOINT ["./executor"] diff --git a/build_goreleaser/fakeexecutor/Dockerfile b/build_goreleaser/fakeexecutor/Dockerfile deleted file mode 100644 index e55b4e05ba8..00000000000 --- a/build_goreleaser/fakeexecutor/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=fakeexecutor -LABEL org.opencontainers.image.description="Fake Executor" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearch/armada-fakeexecutor - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada - -COPY fakeexecutor /app/ -COPY config/executor/config.yaml /app/config/executor/config.yaml - -WORKDIR /app - -ENTRYPOINT ["./fakeexecutor"] diff --git a/build_goreleaser/lookoutingesterv2/Dockerfile b/build_goreleaser/lookoutingesterv2/Dockerfile deleted file mode 100644 index fe8be0fefb7..00000000000 --- a/build_goreleaser/lookoutingesterv2/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 - -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=lookoutingesterv2 -LABEL org.opencontainers.image.description="Lookout Ingester V2" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/lookoutingesterv2 - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada - -COPY lookoutingesterv2 /app/ -COPY config/lookoutingesterv2/config.yaml /app/config/lookoutingesterv2/config.yaml - -WORKDIR /app - -ENTRYPOINT ["./lookoutingesterv2"] diff --git a/build_goreleaser/lookoutv2/Dockerfile b/build_goreleaser/lookoutv2/Dockerfile deleted file mode 100644 index 891315aa549..00000000000 --- a/build_goreleaser/lookoutv2/Dockerfile +++ /dev/null @@ -1,30 +0,0 @@ -ARG NODE_BUILD_IMAGE=node:16.14-buster -ARG OPENAPI_BUILD_IMAGE=openapitools/openapi-generator-cli:v5.4.0 -ARG BASE_IMAGE=alpine:3.20.2 - -FROM ${OPENAPI_BUILD_IMAGE} AS OPENAPI - -COPY internal/lookout/ui /project/internal/lookout/ui -COPY pkg/api/*.swagger.json /project/pkg/api/ -COPY pkg/api/binoculars/*.swagger.json /project/pkg/api/binoculars/ -RUN ./project/internal/lookout/ui/openapi.sh - -FROM ${NODE_BUILD_IMAGE} AS NODE -COPY --from=OPENAPI /project/internal/lookout/ui /ui/ -WORKDIR /ui -RUN yarn install --immutable -RUN yarn run build - -FROM ${BASE_IMAGE} -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -LABEL org.opencontainers.image.title=lookoutv2 -LABEL org.opencontainers.image.description="Lookout V2" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/lookoutv2 -USER armada -COPY --from=NODE /ui/build/ /app/internal/lookout/ui/build -COPY lookoutv2 /app/ -COPY config/lookoutv2/config.yaml /app/config/lookoutv2/config.yaml -COPY lookoutingesterv2 /app/ -COPY config/lookoutingesterv2/ /app/config/lookoutingesterv2 -WORKDIR /app -ENTRYPOINT ["./lookoutv2"] diff --git a/build_goreleaser/scheduler/Dockerfile b/build_goreleaser/scheduler/Dockerfile deleted file mode 100644 index 43796447fb5..00000000000 --- a/build_goreleaser/scheduler/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 - -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=scheduler -LABEL org.opencontainers.image.description="Scheduler" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/scheduler - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada -COPY scheduler /app/ -COPY config/scheduler/config.yaml /app/config/scheduler/config.yaml -WORKDIR /app -ENTRYPOINT ["./scheduler"] diff --git a/build_goreleaser/scheduleringester/Dockerfile b/build_goreleaser/scheduleringester/Dockerfile deleted file mode 100644 index ee9e3fa2bff..00000000000 --- a/build_goreleaser/scheduleringester/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 - -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=scheduleringester -LABEL org.opencontainers.image.description="Scheduler Ingester" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/scheduleringester - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada -COPY scheduleringester /app/ -COPY config/scheduleringester/config.yaml /app/config/scheduleringester/config.yaml -WORKDIR /app -ENTRYPOINT ["./scheduleringester"] diff --git a/build_goreleaser/testsuite/Dockerfile b/build_goreleaser/testsuite/Dockerfile deleted file mode 100644 index 9571bd56220..00000000000 --- a/build_goreleaser/testsuite/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -ARG BASE_IMAGE=alpine:3.20.2 -FROM ${BASE_IMAGE} -LABEL org.opencontainers.image.title=testsuite -LABEL org.opencontainers.image.description="Test Suite" -LABEL org.opencontainers.image.url=https://hub.docker.com/r/gresearchdev/testsuite - -RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada -USER armada - -COPY testsuite /app/ - -WORKDIR /app - -ENTRYPOINT ["./testsuite"]