Skip to content

Commit

Permalink
Remove build_goreleaser folder (#3918)
Browse files Browse the repository at this point in the history
* wip

Signed-off-by: Chris Martin <chris@cmartinit.co.uk>

* modify goreleaser

Signed-off-by: Chris Martin <chris@cmartinit.co.uk>

* add missing files

Signed-off-by: Chris Martin <chris@cmartinit.co.uk>

* fix imag location

Signed-off-by: Chris Martin <chris@cmartinit.co.uk>

---------

Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
  • Loading branch information
d80tb7 committed Sep 9, 2024
1 parent 9fa77a0 commit 49ddb5c
Show file tree
Hide file tree
Showing 27 changed files with 110 additions and 249 deletions.
30 changes: 15 additions & 15 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -422,7 +422,7 @@ dockers:
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- armadactl
dockerfile: ./build_goreleaser/armadactl/Dockerfile
dockerfile: ./build/armadactl/Dockerfile

changelog:
use:
Expand Down
13 changes: 0 additions & 13 deletions build/armada/Dockerfile

This file was deleted.

10 changes: 7 additions & 3 deletions build/armadactl/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 7 additions & 5 deletions build/binoculars/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions build/eventingester/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
13 changes: 8 additions & 5 deletions build/executor/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 7 additions & 5 deletions build/fakeexecutor/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
File renamed without changes.
13 changes: 8 additions & 5 deletions build/lookoutingesterv2/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
31 changes: 24 additions & 7 deletions build/lookoutv2/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
16 changes: 8 additions & 8 deletions build/scheduler/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
16 changes: 8 additions & 8 deletions build/scheduleringester/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 49ddb5c

Please sign in to comment.