{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-registry/issues/890","labels_url":"https://api.github.com/repos/docker/docker-registry/issues/890/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-registry/issues/890/comments","events_url":"https://api.github.com/repos/docker/docker-registry/issues/890/events","html_url":"https://github.com/docker/docker-registry/issues/890","id":53666687,"number":890,"title":"building Dockerfile behind proxy / corporate firewall fails ","user":{"login":"wenlock","id":1907138,"avatar_url":"https://avatars.githubusercontent.com/u/1907138?v=3","gravatar_id":"","url":"https://api.github.com/users/wenlock","html_url":"https://github.com/wenlock","followers_url":"https://api.github.com/users/wenlock/followers","following_url":"https://api.github.com/users/wenlock/following{/other_user}","gists_url":"https://api.github.com/users/wenlock/gists{/gist_id}","starred_url":"https://api.github.com/users/wenlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenlock/subscriptions","organizations_url":"https://api.github.com/users/wenlock/orgs","repos_url":"https://api.github.com/users/wenlock/repos","events_url":"https://api.github.com/users/wenlock/events{/privacy}","received_events_url":"https://api.github.com/users/wenlock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-07T18:49:02Z","updated_at":"2015-01-07T19:17:26Z","closed_at":null,"body":"When trying to run the command:\r\n```docker build --rm -t privatename/docker:registry .```\r\n\r\ndocker fails to run the commands in the Dockerfile.   This is mostly because the build is happening behind a proxy/firewall.\r\n\r\nI'd like to be able to build the image, not just pull a pre-built image, for testing/experiments and hacking.\r\n\r\nAny suggestions?  I'm thinking of forking and making some changes to be able to support that."},"comment":{"url":"https://api.github.com/repos/docker/docker-registry/issues/comments/69075055","html_url":"https://github.com/docker/docker-registry/issues/890#issuecomment-69075055","issue_url":"https://api.github.com/repos/docker/docker-registry/issues/890","id":69075055,"user":{"login":"wenlock","id":1907138,"avatar_url":"https://avatars.githubusercontent.com/u/1907138?v=3","gravatar_id":"","url":"https://api.github.com/users/wenlock","html_url":"https://github.com/wenlock","followers_url":"https://api.github.com/users/wenlock/followers","following_url":"https://api.github.com/users/wenlock/following{/other_user}","gists_url":"https://api.github.com/users/wenlock/gists{/gist_id}","starred_url":"https://api.github.com/users/wenlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenlock/subscriptions","organizations_url":"https://api.github.com/users/wenlock/orgs","repos_url":"https://api.github.com/users/wenlock/repos","events_url":"https://api.github.com/users/wenlock/events{/privacy}","received_events_url":"https://api.github.com/users/wenlock/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T19:17:26Z","updated_at":"2015-01-07T19:17:26Z","body":"@dmp42 this commit on my forked repo makes it much further now, https://github.com/wenlock/docker-registry/commit/81ca0f2b4567ba2cb81ed29895cab7baf8229bc7\r\n\r\nUnfortunately, I'm still having a hickup on Step 8, it's complaining about being able to download Werkzeug.  Wondering if you've seen this one.\r\n\r\n```\r\n.... <log output removed>....\r\nStep 8 : RUN . /opt/contrib/pip_options.sh     && pip install $PIP_OPTIONS file:///docker-registry#egg=docker-registry[bugsnag,newrelic,cors]\r\n ---> Running in fde2e9548adb\r\nUnpacking /docker-registry\r\n  Running setup.py (path:/tmp/pip_build_root/docker-registry/setup.py) egg_info for package docker-registry\r\n    \r\n  Installing extra requirements: 'bugsnag,newrelic,cors'\r\nRequirement already satisfied (use --upgrade to upgrade): docker-registry-core>=2,<3 in /usr/local/lib/python2.7/dist-packages (from docker-registry[bugsnag,newrelic,cors])\r\nDownloading/unpacking backports.lzma==0.0.3,!=0.0.4 (from docker-registry[bugsnag,newrelic,cors])\r\n  Downloading backports.lzma-0.0.3.tar.gz\r\n  Running setup.py (path:/tmp/pip_build_root/backports.lzma/setup.py) egg_info for package backports.lzma\r\n    This is backports.lzma version 0.0.3\r\n    \r\nDownloading/unpacking blinker==1.3 (from docker-registry[bugsnag,newrelic,cors])\r\n  Running setup.py (path:/tmp/pip_build_root/blinker/setup.py) egg_info for package blinker\r\n    \r\nDownloading/unpacking Flask==0.10.1 (from docker-registry[bugsnag,newrelic,cors])\r\n  Running setup.py (path:/tmp/pip_build_root/Flask/setup.py) egg_info for package Flask\r\n    \r\n    warning: no files found matching '*' under directory 'tests'\r\n    warning: no previously-included files matching '*.pyc' found under directory 'docs'\r\n    warning: no previously-included files matching '*.pyo' found under directory 'docs'\r\n    warning: no previously-included files matching '*.pyc' found under directory 'tests'\r\n    warning: no previously-included files matching '*.pyo' found under directory 'tests'\r\n    warning: no previously-included files matching '*.pyc' found under directory 'examples'\r\n    warning: no previously-included files matching '*.pyo' found under directory 'examples'\r\n    no previously-included directories found matching 'docs/_build'\r\n    no previously-included directories found matching 'docs/_themes/.git'\r\nDownloading/unpacking gevent==1.0.1 (from docker-registry[bugsnag,newrelic,cors])\r\n  Running setup.py (path:/tmp/pip_build_root/gevent/setup.py) egg_info for package gevent\r\n    \r\nDownloading/unpacking gunicorn==19.1 (from docker-registry[bugsnag,newrelic,cors])\r\nDownloading/unpacking PyYAML==3.11 (from docker-registry[bugsnag,newrelic,cors])\r\n  Running setup.py (path:/tmp/pip_build_root/PyYAML/setup.py) egg_info for package PyYAML\r\n    \r\nDownloading/unpacking requests==2.3.0 (from docker-registry[bugsnag,newrelic,cors])\r\nDownloading/unpacking M2Crypto==0.22.3 (from docker-registry[bugsnag,newrelic,cors])\r\n  Running setup.py (path:/tmp/pip_build_root/M2Crypto/setup.py) egg_info for package M2Crypto\r\n    \r\nDownloading/unpacking sqlalchemy==0.9.4 (from docker-registry[bugsnag,newrelic,cors])\r\n  Running setup.py (path:/tmp/pip_build_root/sqlalchemy/setup.py) egg_info for package sqlalchemy\r\n    \r\n    warning: no files found matching '*.jpg' under directory 'doc'\r\n    warning: no files found matching 'distribute_setup.py'\r\n    warning: no files found matching 'sa2to3.py'\r\n    warning: no files found matching 'ez_setup.py'\r\n    no previously-included directories found matching 'doc/build/output'\r\nRequirement already satisfied (use --upgrade to upgrade): setuptools==5.8 in /usr/local/lib/python2.7/dist-packages (from docker-registry[bugsnag,newrelic,cors])\r\nDownloading/unpacking bugsnag>=2.0,<2.1 (from docker-registry[bugsnag,newrelic,cors])\r\n  Downloading bugsnag-2.0.2.tar.gz\r\n  Running setup.py (path:/tmp/pip_build_root/bugsnag/setup.py) egg_info for package bugsnag\r\n    \r\nDownloading/unpacking Flask-cors>=1.8,<2.0 (from docker-registry[bugsnag,newrelic,cors])\r\n  Downloading Flask_Cors-1.10.2-py2-none-any.whl\r\nDownloading/unpacking newrelic>=2.22,<2.23 (from docker-registry[bugsnag,newrelic,cors])\r\n  Running setup.py (path:/tmp/pip_build_root/newrelic/setup.py) egg_info for package newrelic\r\n    \r\nRequirement already satisfied (use --upgrade to upgrade): boto==2.34.0 in /usr/local/lib/python2.7/dist-packages (from docker-registry-core>=2,<3->docker-registry[bugsnag,newrelic,cors])\r\nRequirement already satisfied (use --upgrade to upgrade): redis==2.10.3 in /usr/local/lib/python2.7/dist-packages (from docker-registry-core>=2,<3->docker-registry[bugsnag,newrelic,cors])\r\nRequirement already satisfied (use --upgrade to upgrade): simplejson==3.6.2 in /usr/local/lib/python2.7/dist-packages (from docker-registry-core>=2,<3->docker-registry[bugsnag,newrelic,cors])\r\n```\r\n```\r\nDownloading/unpacking Werkzeug>=0.7 (from Flask==0.10.1->docker-registry[bugsnag,newrelic,cors])\r\n  Real name of requirement Werkzeug is werkzeug\r\n  Could not find any downloads that satisfy the requirement Werkzeug>=0.7 (from Flask==0.10.1->docker-registry[bugsnag,newrelic,cors])\r\n  Some externally hosted files were ignored (use --allow-external Werkzeug to allow).\r\nCleaning up...\r\nNo distributions at all found for Werkzeug>=0.7 (from Flask==0.10.1->docker-registry[bugsnag,newrelic,cors])\r\nStoring debug log for failure in /root/.pip/pip.log\r\nINFO[0181] The command [/bin/sh -c . /opt/contrib/pip_options.sh     && pip install $PIP_OPTIONS file:///docker-registry#egg=docker-registry[bugsnag,newrelic,cors]] returned a non-zero code: 1 \r\n```"}}