diff --git a/config.toml b/config.toml index 1ed2bbf..9d5422d 100644 --- a/config.toml +++ b/config.toml @@ -28,6 +28,9 @@ features = [ "Multi-tenant supported with CAS storage for global images" ] +[params.versions] +latest = "1.2.0-rc.2" + [[params.fonts]] name = "Lato" sizes = [300,400,600,700] diff --git a/content/docs/getting-started.md b/content/docs/getting-started.md index fe80cda..735938c 100644 --- a/content/docs/getting-started.md +++ b/content/docs/getting-started.md @@ -19,8 +19,16 @@ If you need to install Go or update your currently installed one, please refer t ## Starting containerd -You can download one of the latest builds for containerd on the [github releases](https://github.com/containerd/containerd/releases) page and then use your favorite process supervisor to get the daemon started. -If you are using systemd, we have a `containerd.service` file at the root of the repository that you can use. +You can download one of the latest source builds for containerd on the [Downloads](/downloads) page and then use your favorite process supervisor to get the daemon started. + +To install version {{< latest >}}, for example: + +```shell +wget https://github.com/containerd/containerd/archive/v{{< latest >}}.zip +unzip v{{< latest >}}.zip +``` + +This will extract the containerd source into a `containerd-{{< latest >}}` directory. If you are using systemd, there is a `containerd.service` file at the root of that directory that you can use. The daemon also uses a configuration file located in `/etc/containerd/config.toml` for specifying daemon level options. A sample configuration file looks like this: diff --git a/content/downloads/_index.md b/content/downloads/_index.md index df16ffd..75bacb7 100644 --- a/content/downloads/_index.md +++ b/content/downloads/_index.md @@ -2,4 +2,27 @@ title: containerd downloads --- -Here is some page content. +containerd [releases](#releases) can be downloaded in each of the following ways: + +* As a tarball containing all containerd binaries (`containerd`, `ctr`, etc.) +* As a zip file containing the source code +* As a tarball containing the source code + +## Installing binaries + +To install the binaries for containerd version **{{< latest >}}**, for example: + +```shell +wget https://github.com/containerd/containerd/releases/download/v{{< latest >}}/containerd-{{< latest >}}.linux-amd64.tar.gz +tar xvf containerd-{{< latest >}}.linux-amd64.tar.gz +``` + +This will extract all containerd binaries into a `bin` folder. + +{{< info >}} +For a more comprehensive guide to installing and running containerd, see the [Getting started](../docs/getting-started) guide. +{{< /info >}} + +## Releases + +{{< releases >}} diff --git a/layouts/downloads/list.html b/layouts/downloads/list.html index dafd181..57adb17 100644 --- a/layouts/downloads/list.html +++ b/layouts/downloads/list.html @@ -1,36 +1,11 @@ {{ define "main" }} {{- $section := .Section }} -{{- $releases := getJSON "https://api.github.com/repos/containerd/containerd/releases" }} {{ partial "hero.html" . }}
-
-

Releases

- - {{- range $releases }} - {{- $tag := .tag_name }} - {{- $asset := (index .assets 0).name }} - {{- $zipUrl := .zipball_url }} - {{- $tarUrl := .tarball_url }} - {{- $url := printf "https://github.com/containerd/containerd/releases/download/%s/%s" $tag $asset }} - -

{{ .name }}

- - - {{- end }} +
+ {{ .Content }}
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 3c3a9ba..e2a9ef6 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -29,6 +29,10 @@