{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/2617","labels_url":"https://api.github.com/repos/openshift/origin/issues/2617/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/2617/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/2617/events","html_url":"https://github.com/openshift/origin/issues/2617","id":82978076,"number":2617,"title":"New app doesn't work with local directory and Dockehub STI PHP image","user":{"login":"thesteve0","id":1404099,"avatar_url":"https://avatars.githubusercontent.com/u/1404099?v=3","gravatar_id":"","url":"https://api.github.com/users/thesteve0","html_url":"https://github.com/thesteve0","followers_url":"https://api.github.com/users/thesteve0/followers","following_url":"https://api.github.com/users/thesteve0/following{/other_user}","gists_url":"https://api.github.com/users/thesteve0/gists{/gist_id}","starred_url":"https://api.github.com/users/thesteve0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesteve0/subscriptions","organizations_url":"https://api.github.com/users/thesteve0/orgs","repos_url":"https://api.github.com/users/thesteve0/repos","events_url":"https://api.github.com/users/thesteve0/events{/privacy}","received_events_url":"https://api.github.com/users/thesteve0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-31T03:00:17Z","updated_at":"2015-06-01T11:33:23Z","closed_at":null,"body":"spousty@localhost sampleapp$ osc version\r\nosc v0.5.3\r\nkubernetes v0.17.1-804-g496be63\r\n\r\nTrying to demonstrate a simple flow. I copied the test app from the PHP STI image repo onto my local machine. \r\n\r\nspousty@localhost sampleapp$ ls\r\ncomposer.json  index.php\r\n\r\n\r\nI then try a bazillion different ways to start this with the PHP STI builder image\r\nhttps://registry.hub.docker.com/u/openshift/php-55-centos7/\r\n\r\nAll of them keep telling me it can't pull from a remote registry but I am not specifying a remote registry. Why doesn't this work with a local file?\r\n\r\n------------------------------------------------------------------------------------------\r\nI am copying directly from the example in the help\r\n```\r\nExamples:\r\n  // Create an application based on the source code in the current directory and a Docker image\r\n  $ osc new-app . --docker-image=repo/langimage\r\n\r\n\r\n----------------------------------------------------------------------------------\r\nspousty@localhost cakefest$ osc new-app openshift/php-55-centos7~sampleapp --build=source\r\nerror: can't build \"openshift/php-55-centos7\": cannot obtain remote URL for repository at sampleapp\r\n\r\nspousty@localhost cakefest$ osc new-app openshift/php-55-centos7 --code=sampleapp --build=source\r\nI0530 19:42:28.157492   24458 newapp.go:187] Image \"openshift/php-55-centos7\" is a builder, so a repository will be expected unless you also specify --build=docker\r\nI0530 19:42:28.157546   24458 newapp.go:230] Using \"sampleapp\" as the source for build\r\nerror: can't build \"openshift/php-55-centos7\": cannot obtain remote URL for repository at sampleapp\r\n\r\nspousty@localhost cakefest$ osc new-app --docker-image=openshift/php-55-centos7 --code=sampleapp --build=source\r\nI0530 19:43:00.185242   24708 newapp.go:187] Image \"openshift/php-55-centos7\" is a builder, so a repository will be expected unless you also specify --build=docker\r\nI0530 19:43:00.185303   24708 newapp.go:230] Using \"sampleapp\" as the source for build\r\nerror: can't build \"openshift/php-55-centos7\": cannot obtain remote URL for repository at sampleapp\r\n\r\nspousty@localhost cakefest$ osc new-app sampleapp --docker-image=openshift/php-55-centos7\r\nI0530 19:47:41.499623   26720 newapp.go:187] Image \"openshift/php-55-centos7\" is a builder, so a repository will be expected unless you also specify --build=docker\r\nerror: no image or template matched \"sampleapp\"\r\n\r\nspousty@localhost sampleapp$ osc new-app . --docker-image=openshift/php-55-centos7\r\nI0530 19:48:08.957664   26911 newapp.go:187] Image \"openshift/php-55-centos7\" is a builder, so a repository will be expected unless you also specify --build=docker\r\nI0530 19:48:08.957723   26911 newapp.go:230] Using \".\" as the source for build\r\nerror: can't build \"openshift/php-55-centos7\": cannot obtain remote URL for repository at .\r\n\r\nspousty@localhost sampleapp$ osc new-app --code=. --docker-image=openshift/php-55-centos7\r\nI0530 19:50:53.824848   28107 newapp.go:187] Image \"openshift/php-55-centos7\" is a builder, so a repository will be expected unless you also specify --build=docker\r\nI0530 19:50:53.824936   28107 newapp.go:230] Using \".\" as the source for build\r\nerror: can't build \"openshift/php-55-centos7\": cannot obtain remote URL for repository at .\r\n\r\nspousty@localhost sampleapp$ osc new-app --code=~/cakefest/sampleapp --docker-image=openshift/php-55-centos7\r\nI0530 19:51:26.845363   28358 newapp.go:187] Image \"openshift/php-55-centos7\" is a builder, so a repository will be expected unless you also specify --build=docker\r\nI0530 19:51:26.845420   28358 newapp.go:230] Using \"~/cakefest/sampleapp\" as the source for build\r\nerror: can't build \"openshift/php-55-centos7\": cannot obtain remote URL for repository at ~/cakefest/sampleapp\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/107408386","html_url":"https://github.com/openshift/origin/issues/2617#issuecomment-107408386","issue_url":"https://api.github.com/repos/openshift/origin/issues/2617","id":107408386,"user":{"login":"thesteve0","id":1404099,"avatar_url":"https://avatars.githubusercontent.com/u/1404099?v=3","gravatar_id":"","url":"https://api.github.com/users/thesteve0","html_url":"https://github.com/thesteve0","followers_url":"https://api.github.com/users/thesteve0/followers","following_url":"https://api.github.com/users/thesteve0/following{/other_user}","gists_url":"https://api.github.com/users/thesteve0/gists{/gist_id}","starred_url":"https://api.github.com/users/thesteve0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesteve0/subscriptions","organizations_url":"https://api.github.com/users/thesteve0/orgs","repos_url":"https://api.github.com/users/thesteve0/repos","events_url":"https://api.github.com/users/thesteve0/events{/privacy}","received_events_url":"https://api.github.com/users/thesteve0/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T11:33:23Z","updated_at":"2015-06-01T11:33:23Z","body":"The real problem in this narrow case is that the doc shows using a local\nexample but then doesn't work.\n\nThe larger problem is that there is a requirement for my source to be in a\ngit repo. Why can't I just use a local source folder?\n\nOn Mon, Jun 1, 2015 at 1:57 AM, Michal Fojtik <notifications@github.com>\nwrote:\n\n> @jhadvig <https://github.com/jhadvig> PTAL (improving the error message)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/openshift/origin/issues/2617#issuecomment-107372889>.\n>\n"}}