diff --git a/README.md b/README.md index decd71a..2af496a 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ Rocket is a CLI for running App Containers. The goal of rocket is to be composab To install the `rkt` binary, grab the release directly from GitHub: ``` -wget https://github.com/coreos/rocket/releases/download/v0.1.1/rocket-v0.1.1.tar.gz -tar xzvf rocket-v0.1.1.tar.gz -cd rocket-v0.1.1 +wget https://github.com/coreos/rocket/releases/download/v0.2.0/rocket-v0.2.0.tar.gz +tar xzvf rocket-v0.2.0.tar.gz +cd rocket-v0.2.0 ./rkt help ``` @@ -31,9 +31,16 @@ Keep in mind while running through the examples that right now `rkt` needs to be Rocket uses content addressable storage (CAS) for storing an ACI on disk. In this example, the image is downloaded and added to the CAS. +(Note that since Rocket verifies signatures by default, you will need to first [trust](https://github.com/coreos/rocket/blob/master/Documentation/signing-and-verification-guide.md#establishing-trust) the [CoreOS public key](https://coreos.com/dist/pubkeys/aci-pubkeys.gpg) used to sign the image.) + ``` -[~/rocket-v0.1.1]$ sudo ./rkt fetch https://github.com/coreos/etcd/releases/download/v0.5.0-alpha.4/etcd-v0.5.0-alpha.4-linux-amd64.aci -sha512-0c45e8c0ab2b3cdb9ec6649073d5c6c43f4f1ed9ebd97b2ebfc2290c21ee88ae +[~/rocket-v0.2.0]$ sudo ./rkt fetch https://github.com/coreos/etcd/releases/download/v2.0.0-rc.1/etcd-v2.0.0-rc.1-linux-amd64.aci +rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.0-rc.1/etcd-v2.0.0-rc.1-linux-amd64.aci +Downloading aci: [=============================== ] 2.49 MB/3.58 MB +Downloading signature from https://github.com/coreos/etcd/releases/download/v2.0.0-rc.1/etcd-v2.0.0-rc.1-linux-amd64.sig +rkt: signature verified: + CoreOS ACI Builder + sha512-fcdf12587358af6ebe69b5338a05df67 ``` These files are now written to disk: @@ -42,18 +49,18 @@ These files are now written to disk: [~]$ find /var/lib/rkt/cas/blob/ /var/lib/rkt/cas/blob/ /var/lib/rkt/cas/blob/sha512 -/var/lib/rkt/cas/blob/sha512/0c -/var/lib/rkt/cas/blob/sha512/0c/sha512-0c45e8c0ab2b3cdb9ec6649073d5c6c43f4f1ed9ebd97b2ebfc2290c21ee88ae63bff32c23690f7c96b666ffc353f38c3f2977c4f019176b12c74f9683e91141 +/var/lib/rkt/cas/blob/sha512/fc +/var/lib/rkt/cas/blob/sha512/fc/sha512-fcdf12587358af6ebe69b5338a05df673ab7c95539f4cac09b0ceb4ea9b12339 ``` Per the [App Container Specification](https://github.com/appc/spec/blob/master/SPEC.md#image-archives), the SHA-512 hash is of the tarball and can be reproduced with other tools: ``` -[~]$ wget https://github.com/coreos/etcd/releases/download/v0.5.0-alpha.4/etcd-v0.5.0-alpha.4-linux-amd64.aci +[~]$ wget https://github.com/coreos/etcd/releases/download/v2.0.0-rc.1/etcd-v2.0.0-rc.1-linux-amd64.aci ... -[~]$ gzip -dc etcd-v0.5.0-alpha.4-linux-amd64.aci > etcd-v0.5.0-alpha.4-linux-amd64.tar -[~]$ sha512sum etcd-v0.5.0-alpha.4-linux-amd64.tar -d2e68c48db4302affefd90dce8a4e74eef001cd1ea5daf91163e6f549650b2df etcd-v0.5.0-alpha.4-linux-amd64.tar +[~]$ $ gzip -dc etcd-v2.0.0-rc.1-linux-amd64.aci > etcd-v2.0.0-rc.1-linux-amd64.tar +[~]$ sha512sum etcd-v2.0.0-rc.1-linux-amd64.tar +fcdf12587358af6ebe69b5338a05df673ab7c95539f4cac09b0ceb4ea9b1233922700bdbafd5b6783e129d3f5e9d17bc7f0a07912b8a0a8c0ff7bf732a3f0acf etcd-v2.0.0-rc.1-linux-amd64.tar ``` ### Launching an ACI @@ -62,14 +69,14 @@ An ACI can be run by pointing `rkt` at either the ACI's hash or URL. ``` # Example of running via ACI hash -[~/rocket-v0.1.1]$ sudo ./rkt run sha256-6635e9cbe18c6f51e8c70c143948df111b5626db39198182fbeb9277beb606db +[~/rocket-v0.2.0]$ sudo ./rkt run sha512-fcdf12587358af6ebe69b5338a05df67 ... Press ^] three times to kill container ``` ``` # Example of running via ACI URL -[~/rocket-v0.1.1]$ sudo ./rkt run https://github.com/coreos/etcd/releases/download/v0.5.0-alpha.4/etcd-v0.5.0-alpha.4-linux-amd64.aci +[~/rocket-v0.2.0]$ sudo ./rkt run https://github.com/coreos/etcd/releases/download/v2.0.0-rc.1/etcd-v2.0.0-rc.1-linux-amd64.aci ... Press ^] three times to kill container ``` @@ -85,7 +92,7 @@ The escape character ```^]``` is generated by ```Ctrl-]``` on a US keyboard. The To validate the `rkt` with the App Container [validation ACIs][appc-readme] run: ``` -[~/rocket-v0.1.1]$ sudo ./rkt run -volume database:/tmp \ +[~/rocket-v0.2.0]$ sudo ./rkt run -volume database:/tmp \ https://github.com/appc/spec/releases/download/v0.1.1/ace-validator-main.aci \ https://github.com/appc/spec/releases/download/v0.1.1/ace-validator-sidekick.aci ``` @@ -114,7 +121,7 @@ The first step of the process, stage 0, is the actual `rkt` binary itself. This Given a run command such as: ``` -[~/rocket-v0.1.1]$ sudo ./rkt run --volume bind:/opt/tenant1/database \ +[~/rocket-v0.2.0]$ sudo ./rkt run --volume bind:/opt/tenant1/database \ sha512-8a30f14877cd8065939e3912542a17d1a5fd9b4c \ sha512-abcd29837d89389s9d0898ds908ds890df890908 ``` diff --git a/version/version.go b/version/version.go index 5f85fcc..da58c6e 100644 --- a/version/version.go +++ b/version/version.go @@ -14,4 +14,4 @@ package version -const Version = "0.1.1+git" +const Version = "0.2.0"