{"action":"created","issue":{"url":"https://api.github.com/repos/flynn/flynn/issues/2301","labels_url":"https://api.github.com/repos/flynn/flynn/issues/2301/labels{/name}","comments_url":"https://api.github.com/repos/flynn/flynn/issues/2301/comments","events_url":"https://api.github.com/repos/flynn/flynn/issues/2301/events","html_url":"https://github.com/flynn/flynn/pull/2301","id":122401352,"number":2301,"title":"script: Support booting clusters using released versions","user":{"login":"lmars","id":488515,"avatar_url":"https://avatars.githubusercontent.com/u/488515?v=3","gravatar_id":"","url":"https://api.github.com/users/lmars","html_url":"https://github.com/lmars","followers_url":"https://api.github.com/users/lmars/followers","following_url":"https://api.github.com/users/lmars/following{/other_user}","gists_url":"https://api.github.com/users/lmars/gists{/gist_id}","starred_url":"https://api.github.com/users/lmars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmars/subscriptions","organizations_url":"https://api.github.com/users/lmars/orgs","repos_url":"https://api.github.com/users/lmars/repos","events_url":"https://api.github.com/users/lmars/events{/privacy}","received_events_url":"https://api.github.com/users/lmars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-16T00:43:35Z","updated_at":"2015-12-16T01:17:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/flynn/flynn/pulls/2301","html_url":"https://github.com/flynn/flynn/pull/2301","diff_url":"https://github.com/flynn/flynn/pull/2301.diff","patch_url":"https://github.com/flynn/flynn/pull/2301.patch"},"body":"This adds a `--version` argument to `script/bootstrap-flynn` so you can boot a released version of Flynn:\r\n\r\n```\r\n$ script/bootstrap-flynn --version v20151104.1\r\n===> 00:20:49.408 downloading v20151104.1 into /home/ubuntu/go/src/github.com/flynn/flynn/tmp/v20151104.1\r\nINFO[12-16|00:20:49] initializing TUF client \r\nINFO[12-16|00:20:50] downloading components with version v20151104.1 \r\nINFO[12-16|00:20:50] downloading images \r\nflynn/router image 8c39bc6460719e982ec9d43a2f274c0f3fc8255661bcd6eee8343cb1217ab894 exists\r\nflynn/slugbuilder image 9f0e2d019b848ab6cf2d9f82a5c8fc5b0a5ad323305f41bd30d1068e9be1ae3c exists\r\nflynn/slugrunner image 0d5e9340854252b197f3ffcf24879fe25884bc103e3d0192441fe37b8b97c431 exists\r\nflynn/flannel image f855ca6aabc6dcd7529d9547d92d338e723292198b333d0145e0956c0740dc98 exists\r\nflynn/postgresql image 66ae63030fc631c8287a7f29c8db21b3c5f67ad731d801bf82f62aa4133e88cb exists\r\nflynn/gitreceive image f3e0d4602d2c144e7f8521dc9cd37d11560935320207feea814efcde98300a0d exists\r\nflynn/dashboard image 8bfa3633add18c6228d57010cef81f92938a222f0172069a33ce0d04a07917e0 exists\r\nflynn/logaggregator image 98d56452f8e8c58359d4eb2443b181c79703e5034cf5717a784edc14719b2685 exists\r\nflynn/controller image e4118f25ad7f0908fa8805e47893ff4c4a12813fa3d29a6d0a05304f28d0beb7 exists\r\nflynn/taffy image eedf52e1afb7141f147fee552b19019dcfbf38182957b2aba28756dfad8fa619 exists\r\nflynn/status image 6b6f5821e49b73a6cc659e48d9a8afa7d8b8fc5a96526fc713c11e7cf295c716 exists\r\nflynn/discoverd image 32da0beafea68a19a701d0485446459ba953ff259a3b99dfa577f1f1ab82a133 exists\r\nflynn/blobstore image c583ef46844ec90361556b08e79c54bb20dd45ce17dfb76e4e492d12c4ea6fa9 exists\r\nflynn/updater image 08ed88b190eac6746fa196d9a52d1e61b23642c848418e45f7e7f5057faad353 exists\r\nINFO[12-16|00:20:50] downloading config to /home/ubuntu/go/src/github.com/flynn/flynn/tmp/v20151104.1 \r\nINFO[12-16|00:20:50] downloading binaries to /home/ubuntu/go/src/github.com/flynn/flynn/tmp/v20151104.1 \r\nINFO[12-16|00:21:02] download complete \r\n===> 00:21:02.460 killing running flynn-host, if any\r\nerror: command 'destroy' requires <domain> option\r\n===> 00:21:12.893 done!\r\n===> 00:21:12.894 starting single node cluster\r\n...\r\n```\r\n\r\nI've also added `script/update` which will create a release with the latest image from `version.json` for an app.\r\n\r\nThis means you can boot a stable version of Flynn and then test what happens when you release an app from code you have changed:\r\n\r\n```\r\n$ script/bootstrap-flynn --version \"v20151104.1\"\r\n$ make\r\n...\r\n$ script/update controller\r\nCreated release 52585121-de13-4148-8116-ca5f5f7bcc27.\r\n```"},"comment":{"url":"https://api.github.com/repos/flynn/flynn/issues/comments/164952575","html_url":"https://github.com/flynn/flynn/pull/2301#issuecomment-164952575","issue_url":"https://api.github.com/repos/flynn/flynn/issues/2301","id":164952575,"user":{"login":"titanous","id":13026,"avatar_url":"https://avatars.githubusercontent.com/u/13026?v=3","gravatar_id":"","url":"https://api.github.com/users/titanous","html_url":"https://github.com/titanous","followers_url":"https://api.github.com/users/titanous/followers","following_url":"https://api.github.com/users/titanous/following{/other_user}","gists_url":"https://api.github.com/users/titanous/gists{/gist_id}","starred_url":"https://api.github.com/users/titanous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titanous/subscriptions","organizations_url":"https://api.github.com/users/titanous/orgs","repos_url":"https://api.github.com/users/titanous/repos","events_url":"https://api.github.com/users/titanous/events{/privacy}","received_events_url":"https://api.github.com/users/titanous/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T01:17:17Z","updated_at":"2015-12-16T01:17:17Z","body":"LGTM. `script/update` is neat!"}}