Created
November 27, 2015 21:49
-
-
Save rikur/e6ece63d7b29a44782a1 to your computer and use it in GitHub Desktop.
docker-registry on flynn
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
config.json: | |
{ | |
"env":{ | |
"DOCKER_REGISTRY_CONFIG": "/docker-registry/config/config_sample.yml" | |
}, | |
"processes": { | |
"server": { | |
"cmd": ["/usr/local/bin/docker-registry"], | |
"data": true, | |
"ports": [{ | |
"port": 5000, | |
"proto": "tcp", | |
"service": { | |
"name": "registry", | |
"create": true, | |
"check": { "type": "tcp" } | |
} | |
}] | |
} | |
} | |
} | |
start_registry.sh: | |
#!/bin/sh | |
flynn create --remote "" docker-registry | |
flynn -a docker-registry release add -f config_registry.json "https://registry.hub.docker.com?name=registry&id=42aa141a5f5128366da4110b2ad41733263f7fd5341dacd8402bca3d137f2db4" | |
flynn -a docker-registry scale server=1 | |
flynn -a docker-registry route add tcp -s registry -p 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment