This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu
2
2
3
- RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && apt-get update
3
+ RUN sed -i 's/main$/main universe/' /etc/apt/sources.list && apt-get update
4
4
RUN apt-get install -y git-core python-pip build-essential python-dev libevent1-dev -y
5
5
ADD . /docker-registry
6
6
7
7
RUN cd /docker-registry && pip install -r requirements.txt
8
8
RUN cp --no-clobber /docker-registry/config_sample.yml /docker-registry/config.yml
9
+ RUN sed "s/ secret_key: REPLACEME/ secret_key: $(< /dev/urandom tr -dc A-Za-z0-9 | head -c 32)/" /docker-registry/config.yml
9
10
10
11
EXPOSE 5000
11
12
12
- CMD cd /docker-registry && ./setup-configs.sh && gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 2 wsgi:application
13
+ CMD cd /docker-registry && ./setup-configs.sh && gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b 0.0.0.0:5000 -w 4 wsgi:application
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [[ -z " $GUNICORN_WORKERS " ]] ; then
4
- GUNICORN_WORKERS=2
4
+ GUNICORN_WORKERS=4
5
5
fi
6
6
7
7
if [ " $SETTINGS_FLAVOR " = " prod" ] ; then
You can’t perform that action at this time.
0 commit comments