Skip to content

Commit

Permalink
update node-client Dockerfile and add cloudwatch_upload_token
Browse files Browse the repository at this point in the history
  • Loading branch information
kafeikui committed May 14, 2024
1 parent d10d7a8 commit a187f24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish-eigenlayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
push: true
tags: ${{ steps.docker_tagging.outputs.docker_tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
"cloudwatch_upload_token=${{ secrets.CLOUDWATCH_UPLOAD_TOKEN }}"
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
push: true
tags: ${{ steps.docker_tagging.outputs.docker_tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
"cloudwatch_upload_token=${{ secrets.CLOUDWATCH_UPLOAD_TOKEN }}"
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
Expand Down
4 changes: 4 additions & 0 deletions docker/node-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ RUN source $HOME/.profile && cargo build --release
# Final stage
FROM docker.io/frolvlad/alpine-glibc:alpine-3.16_glibc-2.34

RUN --mount=type=secret,id=cloudwatch_upload_token \
cat /run/secrets/cloudwatch_upload_token > /etc/cloudwatch_upload_token

RUN apk add supervisor

# Create a directory for the external config.yml file
RUN mkdir -p /app/external

# Copy the built binary from the builder stage
COPY --from=builder /app/target/release/node-client /app/node-client
COPY --from=builder /app/target/release/node-config-checker /usr/local/bin/node-config-checker

# Copy supervisord configuration file
COPY docker/node-client/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
Expand Down

0 comments on commit a187f24

Please sign in to comment.