Skip to content

Commit

Permalink
Update to work with latest registry repo from Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
borsboom committed Aug 23, 2014
1 parent 87450b2 commit 2e2e686
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from shipyard/docker-registry
from registry
maintainer Shipyard Project "http://shipyard-project.com"
run apt-get update
run apt-get -y upgrade
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ the password at run via environment variables (see below).
# Running on S3
To run with Amazon S3 as the backing store, you will need the following environment variables:

* `AWS_ACCESS_KEY_ID`: Your AWS Access Key ID (make sure it has S3 access)
* `AWS_SECRET_KEY`: Your AWS Secret Key
* `S3_BUCKET`: Your S3 bucket to store images
* `AWS_KEY`: Your AWS Access Key ID (make sure it has S3 access)
* `AWS_SECRET`: Your AWS Secret Key
* `AWS_BUCKET`: Your S3 bucket to store images
* `SETTINGS_FLAVOR`: This must be set to `prod`
14 changes: 9 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ stopsignal=QUIT
[program:registry]
priority=10
user=root
command=gunicorn --access-logfile - --debug --max-requests 5000 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 4 wsgi:application
directory=/docker-registry
command=docker-registry
autostart=true
autorestart=true
stopsignal=QUIT
Expand Down Expand Up @@ -233,8 +232,13 @@ if [ ! -e $PASSWORD_FILE ] ; then
htpasswd -bc $PASSWORD_FILE admin $ADMIN_PASSWORD
fi

# configure registry
cd /docker-registry
bash setup-configs.sh
# Compatibility with older version's shipyard/docker-registry environment variables
export AWS_BUCKET=${AWS_BUCKET:-$S3_BUCKET}
export AWS_KEY=${AWS_KEY:-$AWS_ACCESS_KEY_ID}
export AWS_SECRET=${AWS_SECRET:-$AWS_SECRET_KEY}
export AWS_ENCRYPT=${AWS_ENCRYPT:-$S3_ENCRYPT}
export AWS_SECURE=${AWS_SECURE:-$S3_SECURE}
export OS_CONTAINER=${OS_CONTAINER:-$SWIFT_CONTAINER}

# run supervisor
supervisord -c /etc/supervisor/supervisor.conf -n

0 comments on commit 2e2e686

Please sign in to comment.