Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## v1.3.0

This release includes a number of new features and bugfixes like the long-awaited propagation of apps' exit status.

#### New features and UX changes

- Propagate exit status from apps inside the pod to rkt ([#2308](https://github.com/coreos/rkt/pull/2308)). Previously, if an app exited with a non-zero exit status, rkt's exit status would still be 0. Now, if an app fails, its exit status will be propagated to the outside. While this was partially implemented in some stage1 flavors since rkt v1.1.0, it now works in the default coreos flavor.
- Check signatures for stage1 images by default, especially useful when stage1 images are downloaded from the Internet ([#2336](https://github.com/coreos/rkt/pull/2336)).
This doesn't affect the following cases:
- The stage1 image is already in the store
- The stage1 image is in the default directory configured at build time
- The stage1 image is the default one and it is in the same directory as the rkt binary
- Allow downloading of insecure public keys with the `pubkey` insecure option ([#2278](https://github.com/coreos/rkt/pull/2278)).
- Implement Docker volume semantics ([#2315](https://github.com/coreos/rkt/pull/2315)). Docker volumes are initialized with the files in the image if they exist, unless a host directory is mounted there. Implement that behavior in rkt when it runs a Docker converted image.

#### API service

- Return the cgroup when getting information about running pods and add a new cgroup filter ([#2331](https://github.com/coreos/rkt/pull/2331)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all self documented in the API stuff..?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There're comments about it...


#### Bug fixes

- Avoid configuring more CPUs than the host has in the kvm flavor ([#2321](https://github.com/coreos/rkt/pull/2321)).
- Fix a bug where the proxy configuration wasn't forwarded to docker2aci ([docker2aci#147](https://github.com/appc/docker2aci/pull/147)).

#### Notes

- This release drops support for go1.4.

## v1.2.1

This release fixes a couple of bugs we missed in 1.2.0.
Expand Down
6 changes: 3 additions & 3 deletions Documentation/getting-started-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ vagrant up --provider virtualbox
vagrant ssh
sudo -s

wget https://github.com/coreos/rkt/releases/download/v1.2.1/rkt-v1.2.1.tar.gz
tar xzvf rkt-v1.2.1.tar.gz
cd rkt-v1.2.1
wget https://github.com/coreos/rkt/releases/download/v1.3.0/rkt-v1.3.0.tar.gz
tar xzvf rkt-v1.3.0.tar.gz
cd rkt-v1.3.0
./rkt help
```

Expand Down
4 changes: 2 additions & 2 deletions Documentation/running-fly-stage1.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ $ ./autogen.sh && ./configure --with-stage1-flavors=fly && make
```

For more details about configure parameters, see the [configure script parameters documentation](build-configure.md).
This will build the rkt binary and the stage1-fly.aci in `build-rkt-1.2.1+git/bin/`.
This will build the rkt binary and the stage1-fly.aci in `build-rkt-1.3.0+git/bin/`.

### Selecting stage1 at runtime

Here is a quick example of how to use a container with the official fly stage1:

```
# rkt run --stage1-name=coreos.com/rkt/stage1-fly:1.2.1 coreos.com/etcd:v2.2.5
# rkt run --stage1-name=coreos.com/rkt/stage1-fly:1.3.0 coreos.com/etcd:v2.2.5
```

If the image is not in the store, `--stage1-name` will perform discovery and fetch the image.
Expand Down
4 changes: 2 additions & 2 deletions Documentation/running-lkvm-stage1.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $ ./autogen.sh && ./configure --with-stage1-flavors=kvm && make
```

For more details about configure parameters, see [configure script parameters documentation](build-configure.md).
This will build the rkt binary and the LKVM stage1-kvm.aci in `build-rkt-1.2.1+git/bin/`.
This will build the rkt binary and the LKVM stage1-kvm.aci in `build-rkt-1.3.0+git/bin/`.

Provided you have hardware virtualization support and the [kernel KVM module](http://www.linux-kvm.org/page/Getting_the_kvm_kernel_modules) loaded (refer to your distribution for instructions), you can then run an image like you would normally do with rkt:

Expand Down Expand Up @@ -84,7 +84,7 @@ If you want to run software that requires hypervisor isolation along with truste
For example, to use the official lkvm stage1:

```
# rkt run --stage1-name=coreos.com/rkt/stage1-kvm:1.2.1 coreos.com/etcd:v2.0.9
# rkt run --stage1-name=coreos.com/rkt/stage1-kvm:1.3.0 coreos.com/etcd:v2.0.9
...
```

Expand Down
2 changes: 1 addition & 1 deletion Documentation/subcommands/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Therefore, the supported arguments are mostly the same as in `run` except runtim
```
# rkt prepare coreos.com/etcd:v2.0.10
rkt prepare coreos.com/etcd:v2.0.10
rkt: using image from local store for image name coreos.com/rkt/stage1-coreos:1.2.1
rkt: using image from local store for image name coreos.com/rkt/stage1-coreos:1.3.0
rkt: searching for app image coreos.com/etcd:v2.0.10
rkt: remote fetching from url https://github.com/coreos/etcd/releases/download/v2.0.10/etcd-v2.0.10-linux-amd64.aci
prefix: "coreos.com/etcd"
Expand Down
2 changes: 1 addition & 1 deletion Documentation/subcommands/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This command prints the rkt version, the appc version rkt is built against, and

```
$ rkt version
rkt Version: 1.2.1
rkt Version: 1.3.0
appc Version: 0.7.4
Go Version: go1.5.3
Go OS/Arch: linux/amd64
6 changes: 3 additions & 3 deletions Documentation/trying-out-rkt.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ rkt consists of a single CLI tool, and is currently supported on amd64 Linux. A
To download the rkt binary, simply grab the latest release directly from GitHub:

```
wget https://github.com/coreos/rkt/releases/download/v1.2.1/rkt-v1.2.1.tar.gz
tar xzvf rkt-v1.2.1.tar.gz
cd rkt-v1.2.1
wget https://github.com/coreos/rkt/releases/download/v1.3.0/rkt-v1.3.0.tar.gz
tar xzvf rkt-v1.3.0.tar.gz
cd rkt-v1.3.0
./rkt help
```

Expand Down
12 changes: 5 additions & 7 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,21 @@ The version of the spec that rkt implements can be seen in the output of `rkt ve

rkt's version 1.0 release marks the command line user interface and on-disk data structures as stable and reliable for external development. The (optional) API for pod inspection is not yet completely stabilized, but is quite usable.

### rkt 1.3 (March)
### rkt 1.4 (April)

- enhanced DNS configuration [#2044](https://github.com/coreos/rkt/issues/2044)
- app exit status propagation [#1460](https://github.com/coreos/rkt/issues/1460)
- different shared namespace execution modes [#1433](https://github.com/coreos/rkt/issues/1433)
- stage1 benchmarking [#1788](https://github.com/coreos/rkt/issues/1788)
- user configuration for stage1 [#2013](https://github.com/coreos/rkt/issues/2013)
- `rkt fly` as top-level command [#1889](https://github.com/coreos/rkt/issues/1889)
- IPv6 support [appc/cni#31](https://github.com/appc/cni/issues/31)
- stage1 benchmarking [#1788](https://github.com/coreos/rkt/issues/1788)
- rkt runs on Fedora with SELinux in enforcing mode

### rkt 1.4 (April)
### rkt 1.5 (April)

- stable API
- full integration with Kubernetes (aka "rktnetes")
- full integration with `machinectl login` and `systemd-run` [#1463](https://github.com/coreos/rkt/issues/1463)
- `rkt fly` as top-level command [#1889](https://github.com/coreos/rkt/issues/1889)
- attach to the app's stdin/stdout [#1799](https://github.com/coreos/rkt/issues/1799)
- IPv6 support [appc/cni#31](https://github.com/appc/cni/issues/31)
- packaged for more distributions
- Debian [#1307](https://github.com/coreos/rkt/issues/1307)
- CentOS [#1305](https://github.com/coreos/rkt/issues/1305)
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.63])
AC_INIT([rkt], [1.2.1+git], [https://github.com/coreos/rkt/issues])
AC_INIT([rkt], [1.3.0+git], [https://github.com/coreos/rkt/issues])

AC_DEFUN([RKT_CHECK_PROG],
[AS_VAR_IF([$1], [],
Expand Down
2 changes: 1 addition & 1 deletion scripts/acbuild-rkt-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ACI_NAME=${ACI_NAME:-"coreos.com/rkt/builder"}
BUILDDIR=/opt/build-rkt
SRC_DIR=/opt/rkt
ACI_GOPATH=/go
VERSION=${VERSION:-"v1.2.1+git"}
VERSION=${VERSION:-"v1.3.0+git"}
echo "Version: $VERSION"

echo "Building $ACI_FILE"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-rir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -xe

SRC_DIR=${SRC_DIR:-$PWD}
BUILDDIR=${BUILDDIR:-$PWD/build-rir}
RKT_BUILDER_ACI=${RKT_BUILDER_ACI:-coreos.com/rkt/builder:v1.2.1+git}
RKT_BUILDER_ACI=${RKT_BUILDER_ACI:-coreos.com/rkt/builder:v1.3.0+git}

mkdir -p $BUILDDIR

Expand Down
2 changes: 1 addition & 1 deletion tests/empty-image/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"labels": [
{
"name": "version",
"value": "1.2.1"
"value": "1.3.0"
},
{
"name": "arch",
Expand Down
2 changes: 1 addition & 1 deletion tests/image/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"labels": [
{
"name": "version",
"value": "1.2.1"
"value": "1.3.0"
},
{
"name": "arch",
Expand Down
2 changes: 1 addition & 1 deletion tests/rkt_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

const (
noappManifestStr = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"coreos.com/rkt-inspect","labels":[{"name":"version","value":"1.2.1"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}]}`
noappManifestStr = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"coreos.com/rkt-inspect","labels":[{"name":"version","value":"1.3.0"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}]}`
)

func TestRunOverrideExec(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tests/rkt_image_cat_manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
const (

// The expected image manifest of the 'rkt-inspect-image-cat-manifest.aci'.
manifestTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.2.1"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}],"app":{"exec":["/inspect"],"user":"0","group":"0","workingDirectory":"/","environment":[{"name":"VAR_FROM_MANIFEST","value":"manifest"}]}}`
manifestTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.3.0"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}],"app":{"exec":["/inspect"],"user":"0","group":"0","workingDirectory":"/","environment":[{"name":"VAR_FROM_MANIFEST","value":"manifest"}]}}`
)

// TestImageCatManifest tests 'rkt image cat-manifest', it will:
Expand Down
2 changes: 1 addition & 1 deletion tests/rkt_image_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
manifestExportTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.2.1"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}],"app":{"exec":["/inspect"],"user":"0","group":"0","workingDirectory":"/","environment":[{"name":"VAR_FROM_MANIFEST","value":"manifest"}]}}`
manifestExportTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.3.0"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}],"app":{"exec":["/inspect"],"user":"0","group":"0","workingDirectory":"/","environment":[{"name":"VAR_FROM_MANIFEST","value":"manifest"}]}}`
)

// TestImageExport tests 'rkt image export', it will import some existing
Expand Down
2 changes: 1 addition & 1 deletion tests/rkt_image_render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
manifestRenderTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.2.1"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}],"dependencies":[{"imageName":"coreos.com/rkt-inspect"}],"app":{"exec":["/inspect"],"user":"0","group":"0","workingDirectory":"/","environment":[{"name":"VAR_FROM_MANIFEST","value":"manifest"}]}}`
manifestRenderTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.3.0"},{"name":"arch","value":"amd64"},{"name":"os","value":"linux"}],"dependencies":[{"imageName":"coreos.com/rkt-inspect"}],"app":{"exec":["/inspect"],"user":"0","group":"0","workingDirectory":"/","environment":[{"name":"VAR_FROM_MANIFEST","value":"manifest"}]}}`
)

// TestImageRender tests 'rkt image render', it will import some existing empty
Expand Down
2 changes: 1 addition & 1 deletion tests/rkt_os_arch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

const (
manifestOSArchTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.2.1"}ARCH_OS],"app":{"exec":["/inspect", "--print-msg=HelloWorld"],"user":"0","group":"0","workingDirectory":"/"}}`
manifestOSArchTemplate = `{"acKind":"ImageManifest","acVersion":"0.7.4","name":"IMG_NAME","labels":[{"name":"version","value":"1.3.0"}ARCH_OS],"app":{"exec":["/inspect", "--print-msg=HelloWorld"],"user":"0","group":"0","workingDirectory":"/"}}`
)

type osArchTest struct {
Expand Down