-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
25 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
ARG SV_IMAGE="692859926955.dkr.ecr.ap-northeast-1.amazonaws.com/stg/benchmarker:supervisor" | ||
ARG SV_IMAGE="703671906592.dkr.ecr.ap-northeast-1.amazonaws.com/prod/benchmarker:supervisor" | ||
FROM ${SV_IMAGE} AS supervisor | ||
|
||
FROM public.ecr.aws/docker/library/golang:bookworm AS builder | ||
|
||
FROM public.ecr.aws/docker/library/golang:1.23 AS builder | ||
WORKDIR /app | ||
COPY . . | ||
RUN go build -o /app/bench -ldflags "-s -w" . | ||
|
||
FROM ${SV_IMAGE} AS supervisor | ||
RUN go build -o /app/bench -ldflags "-s -w" -trimpath . | ||
|
||
FROM public.ecr.aws/docker/library/debian:bookworm-slim | ||
RUN apt-get update && apt install -y ca-certificates openssl curl unzip jq | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
./aws/install && \ | ||
rm -rf awscliv2.zip ./aws/ | ||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
|
||
RUN apt-get update | ||
RUN apt install -y ca-certificates openssl curl | ||
RUN bash -c "curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v3.1.0/aqua-installer | bash" | ||
ENV PATH=/root/.local/share/aquaproj-aqua/bin:$PATH | ||
ENV AQUA_GLOBAL_CONFIG=/etc/aqua/aqua.yaml | ||
COPY aqua.yaml /etc/aqua/ | ||
RUN aqua i -a | ||
WORKDIR /app | ||
COPY --from=builder /app/bench /app/bench | ||
COPY --from=supervisor /usr/local/bin/isuxportal-supervisor /app/supervisor | ||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
CMD ["/app/supervisor", "/app/bench", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
registries: | ||
- type: standard | ||
ref: v4.275.0 | ||
packages: | ||
- name: aws/[email protected] | ||
- name: jqlang/[email protected] |