https://github.com/alpine-docker/aws-ecr-proxy
(DRAFT) Proxy requests from your custom domain to aws elastic container registry.
https://github.com/alpine-docker/aws-ecr-proxy
Last synced: 2 months ago
JSON representation
(DRAFT) Proxy requests from your custom domain to aws elastic container registry.
- Host: GitHub
- URL: https://github.com/alpine-docker/aws-ecr-proxy
- Owner: alpine-docker
- Created: 2020-12-10T23:18:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T23:21:07.000Z (over 5 years ago)
- Last Synced: 2025-01-25T15:27:52.089Z (over 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Proxy requests from you.customdomain.com to the less-pretty ECR url like `12314141.dkr.ecr.us-west-2.amazonaws.com`.
## Example
```
docker run -p "8080:80" \
-e ECR_URL=12334456678.dkr.ecr.us-west-2.amazonaws \
-e REGISTRY_HOST=https://registry.example.com \
tozny/aws-ecr-proxy
```
## How this works
HAProxy does not support logging to STDOUT/STDIN. The `/var/log/haproxy/*` files are symlinked to PID 1's STDOUT/STDIN. All HAProxy logs are sent to `rsyslog` running on port 8514. `rsyslog` then outputs the log to the haproxy logs, which are in turn output to STDOUT/STDIN. This is picked up by `docker logs `. It's complicated because HAProxy doesn't support STDOUT logging, and [Docker haproxy build doesn't support it either](https://github.com/dockerfile/haproxy/issues/3).