{"action":"created","issue":{"url":"https://api.github.com/repos/quintilesims/layer0/issues/11","repository_url":"https://api.github.com/repos/quintilesims/layer0","labels_url":"https://api.github.com/repos/quintilesims/layer0/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/quintilesims/layer0/issues/11/comments","events_url":"https://api.github.com/repos/quintilesims/layer0/issues/11/events","html_url":"https://github.com/quintilesims/layer0/issues/11","id":195125870,"number":11,"title":"l0-setup apply overwrites user-provided dockercfg file with empty creds ","user":{"login":"jonathanstallings","id":10945369,"avatar_url":"https://avatars.githubusercontent.com/u/10945369?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanstallings","html_url":"https://github.com/jonathanstallings","followers_url":"https://api.github.com/users/jonathanstallings/followers","following_url":"https://api.github.com/users/jonathanstallings/following{/other_user}","gists_url":"https://api.github.com/users/jonathanstallings/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanstallings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanstallings/subscriptions","organizations_url":"https://api.github.com/users/jonathanstallings/orgs","repos_url":"https://api.github.com/users/jonathanstallings/repos","events_url":"https://api.github.com/users/jonathanstallings/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanstallings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-13T00:23:41Z","updated_at":"2016-12-13T18:19:16Z","closed_at":null,"body":"l0-setup Version: `v0.8.4_darwin`\r\n\r\nDescription: `l0-setup apply` overwrites user-provided `dockercfg` file with empty creds `{}`.\r\n\r\nSteps to Reproduce: \r\n1) Run `l0-setup apply <prefix>` without an existing `layer0/instances/<prefix>` directory.\r\n2) Enter the requested AWS credentials.\r\n3) When the prompt stops and advises you to add a valid `dockercfg` file to the `layer0/instances/<prefix>`, do so.\r\n4) Enter `yes` to continue.\r\n5) The `layer0/instances/<prefix>/dockercfg` file will be replaced with contents: `{}`.\r\n\r\n\r\nRelevant docs:\r\nhttp://docs.xfra.ims.io/setup/install/#optional-part-3-configure-the-dockercfg-file-to-use-a-private-docker-registry"},"comment":{"url":"https://api.github.com/repos/quintilesims/layer0/issues/comments/266817957","html_url":"https://github.com/quintilesims/layer0/issues/11#issuecomment-266817957","issue_url":"https://api.github.com/repos/quintilesims/layer0/issues/11","id":266817957,"user":{"login":"jonathanstallings","id":10945369,"avatar_url":"https://avatars.githubusercontent.com/u/10945369?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanstallings","html_url":"https://github.com/jonathanstallings","followers_url":"https://api.github.com/users/jonathanstallings/followers","following_url":"https://api.github.com/users/jonathanstallings/following{/other_user}","gists_url":"https://api.github.com/users/jonathanstallings/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanstallings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanstallings/subscriptions","organizations_url":"https://api.github.com/users/jonathanstallings/orgs","repos_url":"https://api.github.com/users/jonathanstallings/repos","events_url":"https://api.github.com/users/jonathanstallings/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanstallings/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T18:19:16Z","updated_at":"2016-12-13T18:19:16Z","body":"Could we, perhaps, change to the `l0-setup apply` command to accept a path to a valid `dockercfg` file, which would then be copied to the instance directory after validation?\r\n\r\nThen the private docker registry user would only have to run `l0-setup apply` once.\r\n\r\nIn the other case, if users pass an empty path to dockercfg prompt, l0-setup will create an empty dockercfg file, as is the current behavior."}}
{"actor":{"display_login":"jonathanstallings"}}