Skip to content

Commit

Permalink
imageに入れるawscliをaquaでインストールするようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
kaz committed Dec 13, 2024
1 parent 39130ec commit 1fe3111
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
14 changes: 8 additions & 6 deletions bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ 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"]
7 changes: 7 additions & 0 deletions bench/aqua.yaml
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]

0 comments on commit 1fe3111

Please sign in to comment.