-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working version of pull through registries
- Loading branch information
1 parent
8905e6e
commit ce48867
Showing
4 changed files
with
114 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: '3' | ||
services: | ||
registry-docker: ®istry-base | ||
image: registry:2 | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
volumes: | ||
- ${IMAGE_DIR:?You must set IMAGE_DIR environmental variable!}:/var/lib/registry | ||
restart: always | ||
ports: | ||
- "5000:5000" | ||
environment: | ||
REGISTRY_PROXY_REMOTEURL: https://registry-1.docker.io | ||
registry-quay: | ||
<<: *registry-base | ||
ports: | ||
- "5001:5000" | ||
environment: | ||
REGISTRY_PROXY_REMOTEURL: https://quay.io | ||
registry-ghcr: | ||
<<: *registry-base | ||
ports: | ||
- "5002:5000" | ||
environment: | ||
REGISTRY_PROXY_REMOTEURL: https://ghcr.io | ||
registry-gcr: | ||
<<: *registry-base | ||
ports: | ||
- "5003:5000" | ||
environment: | ||
REGISTRY_PROXY_REMOTEURL: https://gcr.io | ||
registry-aws: | ||
<<: *registry-base | ||
ports: | ||
- "5004:5000" | ||
environment: | ||
REGISTRY_PROXY_REMOTEURL: https://public.ecr.aws | ||
registry-mcr: | ||
<<: *registry-base | ||
ports: | ||
- "5005:5000" | ||
environment: | ||
REGISTRY_PROXY_REMOTEURL: https://mcr.microsoft.com | ||
registry-gitlab: | ||
<<: *registry-base | ||
ports: | ||
- "5006:5000" | ||
environment: | ||
REGISTRY_PROXY_REMOTEURL: https://registry.gitlab.com | ||
|
||
|
||
#https://distribution.github.io/distribution/recipes/mirror/ | ||
#https://distribution.github.io/distribution/recipes/mirror/#configure-the-cache | ||
#https://distribution.github.io/distribution/about/deploying/#customize-the-storage-location |
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,50 @@ | ||
# See: https://k3d.io/v5.4.6/usage/registries/#creating-a-registry-proxy-pull-through-registry | ||
apiVersion: k3d.io/v1alpha5 | ||
kind: Simple | ||
metadata: | ||
name: k3d-config | ||
# proxies for pull-through cache | ||
registries: | ||
config: | | ||
mirrors: | ||
"docker.io": | ||
endpoint: | ||
- http://host.docker.internal:5000 | ||
"quay.io": | ||
endpoint: | ||
- http://host.docker.internal:5001 | ||
"ghcr.io": | ||
endpoint: | ||
- http://host.docker.internal:5002 | ||
"gcr.io": | ||
endpoint: | ||
- http://host.docker.internal:5003 | ||
"public.ecr.aws": | ||
endpoint: | ||
- http://host.docker.internal:5004 | ||
"mcr.microsoft.com": | ||
endpoint: | ||
- http://host.docker.internal:5005 | ||
"registry.gitlab.com": | ||
endpoint: | ||
- http://host.docker.internal:5006 | ||
options: | ||
k3s: | ||
extraArgs: | ||
- arg: --disable=cloud-controller | ||
nodeFilters: | ||
- server:* | ||
- arg: --disable=helm-controller | ||
nodeFilters: | ||
- server:* | ||
- arg: --disable=traefik | ||
nodeFilters: | ||
- server:* | ||
- arg: --disable=servicelb | ||
nodeFilters: | ||
- server:* | ||
ports: | ||
# same as `--port '80:80@loadbalancer'` | ||
- port: 80:80 | ||
nodeFilters: | ||
- loadbalancer |
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