Add 'laughing-octo/' from commit 'ee815e9ccc
'
git-subtree-dir: laughing-octo git-subtree-mainline:264531c268
git-subtree-split:ee815e9ccc
This commit is contained in:
commit
d59b1af998
17 changed files with 1433 additions and 0 deletions
10
laughing-octo/fedora-docker-registry/Dockerfile
Normal file
10
laughing-octo/fedora-docker-registry/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM fedora
|
||||
|
||||
RUN yum install -y --setopt=override_install_langs=en --setopt=tsflags=nodocs docker-registry && rm -rf /var/cache/yum
|
||||
ADD run.sh /srv/run.sh
|
||||
|
||||
VOLUME ["/var/lib/docker-registry"]
|
||||
|
||||
EXPOSE 5000
|
||||
CMD ["/srv/run.sh"]
|
||||
|
24
laughing-octo/fedora-docker-registry/run.sh
Executable file
24
laughing-octo/fedora-docker-registry/run.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -z "$GUNICORN_WORKERS" ]] ; then
|
||||
GUNICORN_WORKERS=4
|
||||
fi
|
||||
|
||||
if [[ -z "$REGISTRY_ADDRESS" ]] ; then
|
||||
REGISTRY_ADDRESS=0.0.0.0
|
||||
fi
|
||||
|
||||
if [[ -z "$REGISTRY_PORT" ]] ; then
|
||||
REGISTRY_PORT=5000
|
||||
fi
|
||||
|
||||
if [[ -z "$DOCKER_REGISTRY_CONFIG" ]] ; then
|
||||
export DOCKER_REGISTRY_CONFIG=/etc/docker-registry.yml
|
||||
fi
|
||||
|
||||
if [[ -z "$SETTINGS_FLAVOR" ]] ; then
|
||||
export SETTINGS_FLAVOR=local
|
||||
fi
|
||||
|
||||
cd /usr/lib/python2.7/site-packages/docker-registry
|
||||
/usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b ${REGISTRY_ADDRESS}:${REGISTRY_PORT} -w $GUNICORN_WORKERS wsgi:application
|
Loading…
Add table
Add a link
Reference in a new issue