Changes between Version 3 and Version 4 of jazz/15-02-23


Ignore:
Timestamp:
Feb 23, 2015, 9:52:27 PM (10 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/15-02-23

    v3 v4  
    1616jazz@Workshop:~$ sed -i 's#/tmp/docker-registry.db#/var/docker-registry/docker-registry.db#g' /usr/local/lib/python2.7/dist-packages/config/config.yml
    1717jazz@Workshop:~$ sudo sed -i 's#/tmp/registry#/var/docker-registry/registry#g' /usr/local/lib/python2.7/dist-packages/config/config.yml
    18 jazz@Workshop:~$ sudo gunicorn --access-logfile - --debug -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wsgi:application   
     18jazz@Workshop:~$ sudo mkdir -p /var/log/docker-registry
     19jazz@Workshop:~$ cat > docker-registry.conf << EOF
     20description "Docker Registry"
     21
     22start on runlevel [2345]
     23stop on runlevel [016]
     24
     25respawn
     26respawn limit 10 5
     27
     28script
     29exec gunicorn --access-logfile /var/log/docker-registry/access.log --error-logfile /var/log/docker-registry/server.log -k gevent --max-requests 100 --graceful-timeout 3600 -t 3600 -b localhost:5000 -w 8 docker_registry.wsgi:application
     30end script
     31EOF
     32jazz@Workshop:~$ sudo mv docker-registry.conf /etc/init/
     33jazz@Workshop:~$ sudo service docker-registry start
    1934}}}