Skip to content

Commit

Permalink
chore: limit docker log size (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkah authored Aug 5, 2024
1 parent eb2f00a commit a418576
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/devnet_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
mask-password: "true"

- name: Solver build, tag, and push image to Amazon ECR
id: build-image
Expand Down Expand Up @@ -61,6 +61,7 @@ jobs:
-d \
--restart always \
--name solver \
--log-opt max-size=100m \
-e DOPPLER_TOKEN=$DEVNET_DOPPLER_TOKEN_SOLVER \
$ECR_REGISTRY/$ECR_REPOSITORY_SOLVER:latest
Expand All @@ -84,7 +85,7 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
mask-password: "true"

- name: Job creator build, tag, and push image to Amazon ECR
id: build-image
Expand Down Expand Up @@ -122,5 +123,6 @@ jobs:
-d \
--restart always \
--name job-creator \
--log-opt max-size=100m \
-e DOPPLER_TOKEN=$DEVNET_DOPPLER_TOKEN_JOB_CREATOR \
$ECR_REGISTRY/$ECR_REPOSITORY_JOB_CREATOR:latest
11 changes: 7 additions & 4 deletions .github/workflows/testnet_deploy_services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Testnet services
on:
push:
tags:
- 'v*'
- "v*"

jobs:
solver-build-deploy:
Expand All @@ -25,7 +25,7 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
mask-password: "true"

- name: Solver build, tag, and push image to Amazon ECR
id: build-image
Expand Down Expand Up @@ -64,6 +64,7 @@ jobs:
-d \
--restart always \
--name solver \
--log-opt max-size=100m \
-e DOPPLER_TOKEN=$TESTNET_DOPPLER_TOKEN_SOLVER \
$ECR_REGISTRY/$ECR_REPOSITORY_SOLVER:latest
Expand All @@ -87,7 +88,7 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
mask-password: "true"

- name: Job creator build, tag, and push image to Amazon ECR
id: build-image
Expand Down Expand Up @@ -125,6 +126,7 @@ jobs:
-d \
--restart always \
--name job-creator \
--log-opt max-size=100m \
-e DOPPLER_TOKEN=$TESTNET_DOPPLER_TOKEN_JOB_CREATOR \
$ECR_REGISTRY/$ECR_REPOSITORY_JOB_CREATOR:latest
Expand All @@ -147,7 +149,7 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
mask-password: "true"

- name: Resource provider build, tag, and push image to Amazon ECR
id: build-image
Expand Down Expand Up @@ -187,6 +189,7 @@ jobs:
--privileged \
--restart always \
--name resource-provider \
--log-opt max-size=100m \
-e OFFER_GPU=0 \
-e BACALHAU_API_HOST="DO_NOT_SET" \
-e LOG_LEVEL=debug \
Expand Down

0 comments on commit a418576

Please sign in to comment.