{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/2159","labels_url":"https://api.github.com/repos/openshift/origin/issues/2159/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/2159/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/2159/events","html_url":"https://github.com/openshift/origin/issues/2159","id":75172683,"number":2159,"title":"STI and push image and proxy","user":{"login":"roberto-gomez","id":6680209,"avatar_url":"https://avatars.githubusercontent.com/u/6680209?v=3","gravatar_id":"","url":"https://api.github.com/users/roberto-gomez","html_url":"https://github.com/roberto-gomez","followers_url":"https://api.github.com/users/roberto-gomez/followers","following_url":"https://api.github.com/users/roberto-gomez/following{/other_user}","gists_url":"https://api.github.com/users/roberto-gomez/gists{/gist_id}","starred_url":"https://api.github.com/users/roberto-gomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberto-gomez/subscriptions","organizations_url":"https://api.github.com/users/roberto-gomez/orgs","repos_url":"https://api.github.com/users/roberto-gomez/repos","events_url":"https://api.github.com/users/roberto-gomez/events{/privacy}","received_events_url":"https://api.github.com/users/roberto-gomez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/build","name":"component/build","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P1","name":"priority/P1","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-11T10:29:12Z","updated_at":"2015-05-11T14:18:25Z","closed_at":null,"body":"Hello.\r\n\r\nI am testing OpenShift beta3. I have a problem with the training, STI and the sinatra example. (https://github.com/openshift/training/blob/master/beta-3-setup.md#a-simple-code-example)\r\n\r\nWhen I launch the build with **osc start-build simple-openshift-sinatra-sti** I set the proxy variables to install the ruby gems that the image need. For that I use the file .sti/environment inside the source project. The probleam appears when the container try to push the new image to the local registry. The variable no_proxy doesn't works.\r\n\r\n- The builder log:\r\n```\r\n2015-05-11T09:45:35.219704693Z E0511 05:45:35.218190       1 cfg.go:50] /root/.dockercfg: stat /root/.dockercfg: no such file or directory\r\n2015-05-11T09:45:35.220186010Z I0511 05:45:35.219616       1 sti.go:54] Creating a new STI builder with build request: &api.Request{BaseImage:\"openshift3_beta/ruby-20-rhel7\", DockerSocket:\"unix:///var/run/docker.sock\", PreserveWorkingDir:false, Source:\"http://180.205.37.147/openshift-v3/simple-openshift-sinatra-sti.git\", Ref:\"\", Tag:\"172.30.17.251:5000/sinatra/simple-openshift-sinatra-sti\", Incremental:false, RemovePreviousImage:false, Environment:map[string]string{\"OPENSHIFT_BUILD_NAME\":\"simple-openshift-sinatra-sti-4\", \"OPENSHIFT_BUILD_NAMESPACE\":\"sinatra\", \"OPENSHIFT_BUILD_SOURCE\":\"http://180.205.37.147/openshift-v3/simple-openshift-sinatra-sti.git\"}, CallbackURL:\"\", ScriptsURL:\"\", Location:\"\", ForcePull:false, WorkingDir:\"\", LayeredBuild:false, InstallDestination:\"\", Quiet:false, ContextDir:\"\"}\r\n2015-05-11T09:45:35.230389173Z I0511 05:45:35.230118       1 docker.go:157] Image openshift3_beta/ruby-20-rhel7 available locally\r\n2015-05-11T09:45:35.240623500Z I0511 05:45:35.239852       1 sti.go:111] Building 172.30.17.251:5000/sinatra/simple-openshift-sinatra-sti\r\n2015-05-11T09:45:35.244023389Z I0511 05:45:35.240543       1 clone.go:26] Cloning into /tmp/sti136828429/upload/src\r\n2015-05-11T09:45:35.457908565Z I0511 05:45:35.457811       1 docker.go:157] Image openshift3_beta/ruby-20-rhel7 available locally\r\n2015-05-11T09:45:35.457946225Z I0511 05:45:35.457845       1 docker.go:205] Image contains STI_SCRIPTS_URL set to 'image:///usr/local/sti'\r\n2015-05-11T09:45:35.458140047Z I0511 05:45:35.457874       1 download.go:55] Using image internal scripts from: image:///usr/local/sti/assemble\r\n2015-05-11T09:45:35.458156123Z I0511 05:45:35.457883       1 download.go:55] Using image internal scripts from: image:///usr/local/sti/run\r\n2015-05-11T09:45:35.469922426Z I0511 05:45:35.469869       1 docker.go:157] Image openshift3_beta/ruby-20-rhel7 available locally\r\n2015-05-11T09:45:35.469968764Z I0511 05:45:35.469892       1 docker.go:205] Image contains STI_SCRIPTS_URL set to 'image:///usr/local/sti'\r\n2015-05-11T09:45:35.469975533Z I0511 05:45:35.469908       1 download.go:55] Using image internal scripts from: image:///usr/local/sti/save-artifacts\r\n2015-05-11T09:45:35.469988055Z I0511 05:45:35.469919       1 sti.go:181] Using assemble from image:///usr/local/sti\r\n2015-05-11T09:45:35.469992666Z I0511 05:45:35.469926       1 sti.go:181] Using run from image:///usr/local/sti\r\n2015-05-11T09:45:35.469996623Z I0511 05:45:35.469930       1 sti.go:181] Using save-artifacts from image:///usr/local/sti\r\n2015-05-11T09:45:35.470000552Z I0511 05:45:35.469952       1 sti.go:119] Clean build will be performed\r\n2015-05-11T09:45:35.470004232Z I0511 05:45:35.469957       1 sti.go:122] Performing source build from http://180.205.37.147/openshift-v3/simple-openshift-sinatra-sti.git\r\n2015-05-11T09:45:35.470008247Z I0511 05:45:35.469962       1 sti.go:130] Building 172.30.17.251:5000/sinatra/simple-openshift-sinatra-sti\r\n2015-05-11T09:45:35.470038213Z I0511 05:45:35.469966       1 sti.go:309] Using image name openshift3_beta/ruby-20-rhel7\r\n2015-05-11T09:45:35.470051835Z I0511 05:45:35.470017       1 environment.go:52] Setting 'HTTP_PROXY' to 'http://180.133.135.87'\r\n2015-05-11T09:45:35.470200162Z I0511 05:45:35.470036       1 environment.go:52] Setting 'HTTPS_PROXY' to 'http://180.133.135.87'\r\n2015-05-11T09:45:35.470214247Z I0511 05:45:35.470042       1 environment.go:52] Setting 'no_proxy' to ''172.30.17.251''\r\n2015-05-11T09:45:35.472143584Z I0511 05:45:35.471978       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/.gitignore as src/.gitignore\r\n2015-05-11T09:45:35.472194725Z I0511 05:45:35.472106       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/.sti/environment as src/.sti/environment\r\n2015-05-11T09:45:35.472264959Z I0511 05:45:35.472171       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/Gemfile as src/Gemfile\r\n2015-05-11T09:45:35.472320580Z I0511 05:45:35.472240       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/Gemfile.lock as src/Gemfile.lock\r\n2015-05-11T09:45:35.472403629Z I0511 05:45:35.472301       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/app.rb as src/app.rb\r\n2015-05-11T09:45:35.472580826Z I0511 05:45:35.472366       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/config.ru as src/config.ru\r\n2015-05-11T09:45:35.480237007Z I0511 05:45:35.480148       1 docker.go:251] Base directory for STI scripts is '/usr/local/sti'. Untarring destination is '/tmp'.\r\n2015-05-11T09:45:35.470008247Z I0511 05:45:35.469962       1 sti.go:130] Building 172.30.17.251:5000/sinatra/simple-openshift-sinatra-sti\r\n2015-05-11T09:45:35.470038213Z I0511 05:45:35.469966       1 sti.go:309] Using image name openshift3_beta/ruby-20-rhel7\r\n2015-05-11T09:45:35.470051835Z I0511 05:45:35.470017       1 environment.go:52] Setting 'HTTP_PROXY' to 'http://180.133.135.87'\r\n2015-05-11T09:45:35.470200162Z I0511 05:45:35.470036       1 environment.go:52] Setting 'HTTPS_PROXY' to 'http://180.133.135.87'\r\n2015-05-11T09:45:35.470214247Z I0511 05:45:35.470042       1 environment.go:52] Setting 'no_proxy' to ''172.30.17.251''\r\n2015-05-11T09:45:35.472143584Z I0511 05:45:35.471978       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/.gitignore as src/.gitignore\r\n2015-05-11T09:45:35.472194725Z I0511 05:45:35.472106       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/.sti/environment as src/.sti/environment\r\n2015-05-11T09:45:35.472264959Z I0511 05:45:35.472171       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/Gemfile as src/Gemfile\r\n2015-05-11T09:45:35.472320580Z I0511 05:45:35.472240       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/Gemfile.lock as src/Gemfile.lock\r\n2015-05-11T09:45:35.472403629Z I0511 05:45:35.472301       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/app.rb as src/app.rb\r\n2015-05-11T09:45:35.472580826Z I0511 05:45:35.472366       1 tar.go:133] Adding to tar: /tmp/sti136828429/upload/src/config.ru as src/config.ru\r\n2015-05-11T09:45:35.480237007Z I0511 05:45:35.480148       1 docker.go:251] Base directory for STI scripts is '/usr/local/sti'. Untarring destination is '/tmp'.\r\n2015-05-11T09:45:35.480741260Z I0511 05:45:35.480173       1 docker.go:277] Creating container using config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:true AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[HTTP_PROXY=http://180.133.135.87 HTTPS_PROXY=http://180.133.135.87 no_proxy='172.30.17.251' OPENSHIFT_BUILD_NAME=simple-openshift-sinatra-sti-4 OPENSHIFT_BUILD_NAMESPACE=sinatra OPENSHIFT_BUILD_SOURCE=http://180.205.37.147/openshift-v3/simple-openshift-sinatra-sti.git] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/local/sti/assemble] DNS:[] Image:openshift3_beta/ruby-20-rhel7 Volumes:map[] VolumesFrom: WorkingDir: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Labels:map[]}\r\n2015-05-11T09:45:35.922600755Z I0511 05:45:35.922189       1 docker.go:284] Attaching to container\r\n2015-05-11T09:45:35.931856874Z I0511 05:45:35.931525       1 docker.go:332] Starting container\r\n2015-05-11T09:45:36.055403004Z I0511 05:45:36.051862       1 docker.go:342] Waiting for container\r\n2015-05-11T09:45:36.163522238Z I0511 05:45:36.163207       1 sti.go:371] ---> Installing application source\r\n2015-05-11T09:45:36.166444920Z I0511 05:45:36.166166       1 sti.go:371] ---> Building your Ruby application from source\r\n2015-05-11T09:45:36.166465225Z I0511 05:45:36.166211       1 sti.go:371] ---> Running 'bundle install --deployment'\r\n2015-05-11T09:45:41.722112115Z I0511 05:45:41.722027       1 sti.go:371] Fetching gem metadata from https://rubygems.org/..........\r\n2015-05-11T09:45:44.489501804Z I0511 05:45:44.489456       1 sti.go:371] Installing rack (1.5.2) \r\n2015-05-11T09:45:44.804209468Z I0511 05:45:44.804108       1 sti.go:371] Installing rack-protection (1.5.3) \r\n2015-05-11T09:45:45.166120208Z I0511 05:45:45.165978       1 sti.go:371] Installing tilt (1.4.1) \r\n2015-05-11T09:45:45.858531907Z I0511 05:45:45.858477       1 sti.go:371] Installing sinatra (1.4.5) \r\n2015-05-11T09:45:45.859206266Z I0511 05:45:45.859179       1 sti.go:371] Using bundler (1.3.5) \r\n2015-05-11T09:45:45.860784862Z I0511 05:45:45.860705       1 sti.go:371] Your bundle is complete!\r\n2015-05-11T09:45:45.861233788Z I0511 05:45:45.861206       1 sti.go:371] It was installed into ./bundle\r\n2015-05-11T09:45:45.888105477Z I0511 05:45:45.888076       1 sti.go:371] ---> Cleaning up unused ruby gems\r\n2015-05-11T09:45:46.349469868Z I0511 05:45:46.349103       1 docker.go:348] Container exited\r\n2015-05-11T09:45:46.349469868Z I0511 05:45:46.349126       1 docker.go:354] Invoking postExecution function\r\n2015-05-11T09:45:46.349469868Z I0511 05:45:46.349183       1 environment.go:52] Setting 'HTTP_PROXY' to 'http://180.133.135.87'\r\n2015-05-11T09:45:46.349469868Z I0511 05:45:46.349196       1 environment.go:52] Setting 'HTTPS_PROXY' to 'http://180.133.135.87'\r\n2015-05-11T09:45:46.349469868Z I0511 05:45:46.349202       1 environment.go:52] Setting 'no_proxy' to ''172.30.17.251''\r\n2015-05-11T09:45:46.349469868Z I0511 05:45:46.349234       1 docker.go:386] Committing container with config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:false AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[HTTP_PROXY=http://180.133.135.87 HTTPS_PROXY=http://180.133.135.87 no_proxy='172.30.17.251' OPENSHIFT_BUILD_NAME=simple-openshift-sinatra-sti-4 OPENSHIFT_BUILD_NAMESPACE=sinatra OPENSHIFT_BUILD_SOURCE=http://180.205.37.147/openshift-v3/simple-openshift-sinatra-sti.git] Cmd:[/usr/local/sti/run] DNS:[] Image: Volumes:map[] VolumesFrom: WorkingDir: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Labels:map[]}\r\n2015-05-11T09:45:49.142161477Z I0511 05:45:49.141841       1 sti.go:235] Successfully built 172.30.17.251:5000/sinatra/simple-openshift-sinatra-sti\r\n2015-05-11T09:45:49.142161477Z I0511 05:45:49.141881       1 sti.go:236] Tagged cca0b165c65c3d2d6d66e8e22db29d64cf3d25b3e36d3b002e6a6e69c055bf0b as 172.30.17.251:5000/sinatra/simple-openshift-sinatra-sti\r\n2015-05-11T09:45:50.361235723Z I0511 05:45:50.360944       1 cleanup.go:24] Removing temporary directory /tmp/sti136828429\r\n2015-05-11T09:45:50.361235723Z I0511 05:45:50.360980       1 fs.go:99] Removing directory '/tmp/sti136828429'\r\n2015-05-11T09:45:50.366724658Z E0511 05:45:50.365455       1 cfg.go:50] /root/.dockercfg: stat /root/.dockercfg: no such file or directory\r\n2015-05-11T09:45:50.366724658Z I0511 05:45:50.365485       1 sti.go:78] Pushing 172.30.17.251:5000/sinatra/simple-openshift-sinatra-sti image ...\r\n2015-05-11T09:46:10.422017351Z E0511 05:46:10.421783       1 sti.go:80] Failed to push image: API error (500):  v1 ping attempt failed with error: Get http://172.30.17.251:5000/v1/_ping: read tcp 180.133.135.87:80: i/o timeout\r\n```\r\n\r\n- The local registry ip is 172.30.17.251  \r\n\r\n- The .sti/environment content is:\r\n```\r\nHTTP_PROXY=http://180.133.135.87\r\nHTTPS_PROXY=http://180.133.135.87\r\nno_proxy='172.30.17.251'\r\n```\r\n\r\nThanks!!\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/100922724","html_url":"https://github.com/openshift/origin/issues/2159#issuecomment-100922724","issue_url":"https://api.github.com/repos/openshift/origin/issues/2159","id":100922724,"user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T14:18:25Z","updated_at":"2015-05-11T14:18:25Z","body":"@bparees you can still bypass this as a user if you export your proxy IP inside container, right? Or you just hardcode the values into assemble script."}}