Skip to content

Commit 5c0fe41

Browse files
author
Qasim Sarfraz
authored
Merge pull request #2 from eSailors/limit-cache-size
Make cache limit configurable via ansible
2 parents 739e275 + b6b2ef7 commit 5c0fe41

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

roles/docker-registry-proxy/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
docker_proxy_clear_cache: false
2+
docker_proxy_cache_limit: 75g
23
docker_proxy_cache_path: /registry/local-storage/cache
34
docker_proxy_version: latest
45
docker_proxy_backend: "XXXXXXXX.dkr.ecr.eu-central-1.amazonaws.com"

roles/docker-registry-proxy/tasks/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
-e RESOLVER={{ docker_proxy_backend_resolver }}
3434
-e PORT=5000
3535
-e UPSTREAM={{ docker_proxy_backend_schema }}://{{ docker_proxy_backend }}
36+
-e CACHE_MAX_SIZE={{ docker_proxy_cache_limit }}
3637
-e AWS_ACCESS_KEY_ID={{ docker_proxy_ecr_access_id }}
3738
-e AWS_SECRET_ACCESS_KEY={{ docker_proxy_ecr_secret_key }}
3839
-e AWS_REGION={{ docker_proxy_ecr_region }}

0 commit comments

Comments
 (0)