{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/atomic/issues/861","repository_url":"https://api.github.com/repos/projectatomic/atomic","labels_url":"https://api.github.com/repos/projectatomic/atomic/issues/861/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/atomic/issues/861/comments","events_url":"https://api.github.com/repos/projectatomic/atomic/issues/861/events","html_url":"https://github.com/projectatomic/atomic/pull/861","id":204744322,"number":861,"title":"Detect and install systemcontainer images","user":{"login":"baude","id":8824535,"avatar_url":"https://avatars.githubusercontent.com/u/8824535?v=3","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-02T00:06:29Z","updated_at":"2017-02-02T09:21:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/projectatomic/atomic/pulls/861","html_url":"https://github.com/projectatomic/atomic/pull/861","diff_url":"https://github.com/projectatomic/atomic/pull/861.diff","patch_url":"https://github.com/projectatomic/atomic/pull/861.patch"},"body":"If an image from a registry has a label like:\r\n\r\n    atomic.type=system\r\n\r\nthe Atomic CLI will now detect that prior to pulling\r\nthe image.  It will then switch the backend storage\r\nto ostree.  In the case of install, it will both\r\npull to ostree and install it.\r\n\r\nIf the backend is switched, a message informing the user\r\nas such will be shown.\r\n\r\nThe detection and switch of the backend can be overriden\r\n with the --storage option.\r\n\r\nThe following is an example of install:\r\n```\r\n$ sudo atomic install atomic-registry.usersys.redhat.com:5000/brentbaude/helloworld:latest\r\n\r\nNote: Switching from the 'docker' backend to the 'ostree' backend based on the 'atomic.type' label in the image.  You can use --storage to override this behaviour.\r\n\r\nExtracting to /var/lib/containers/atomic/helloworld.0\r\nsystemctl daemon-reload\r\nsystemctl enable helloworld\r\n\r\n$ sudo ./atomic images list\r\n   REPOSITORY                                                      TAG      IMAGE ID       CREATED            VIRTUAL SIZE   TYPE\r\n   atomic-registry.usersys.redhat.com:5000/brentbaude/helloworld   latest   0056366e4ebd   2017-02-01 18:04                  ostree\r\n\r\n$ sudo ./atomic containers list -a\r\n   CONTAINER ID IMAGE                COMMAND              CREATED          STATE     BACKEND    RUNTIME\r\n   helloworld   atomic-registry.user /usr/bin/run.sh      2017-02-01 18:04 failed    ostree     runc\r\n```"},"comment":{"url":"https://api.github.com/repos/projectatomic/atomic/issues/comments/276906426","html_url":"https://github.com/projectatomic/atomic/pull/861#issuecomment-276906426","issue_url":"https://api.github.com/repos/projectatomic/atomic/issues/861","id":276906426,"user":{"login":"giuseppe","id":67430,"avatar_url":"https://avatars.githubusercontent.com/u/67430?v=3","gravatar_id":"","url":"https://api.github.com/users/giuseppe","html_url":"https://github.com/giuseppe","followers_url":"https://api.github.com/users/giuseppe/followers","following_url":"https://api.github.com/users/giuseppe/following{/other_user}","gists_url":"https://api.github.com/users/giuseppe/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppe/subscriptions","organizations_url":"https://api.github.com/users/giuseppe/orgs","repos_url":"https://api.github.com/users/giuseppe/repos","events_url":"https://api.github.com/users/giuseppe/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppe/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T09:21:31Z","updated_at":"2017-02-02T09:21:31Z","body":"what if install FOO, first looks if there is an image FOO in the Docker storage and if it is not found, tries to find it in other storages (like ostree)?\r\nIf we are going to add more storages, we will probably need something like `--storage=` for install and run (we can probably leave `--system` to be an alias of `--storage=ostree` , so that the command would fail if the image is not of the specified type.  If the type is not specified, we can use the first image we find in a storage.\r\n\r\nWhat do you think?\r\nWhat do you think?"}}
{"actor":{"display_login":"giuseppe"}}