Use 17.06 stable channel for CLI used in CI

Update to the latest patch release of 17.06.2. This
keeps the same API requirements.

This also enables pre-built binaries for armhf instead
of compiling from source.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-01-13 21:38:00 +01:00
parent 5a2f15b5d5
commit 468eb93e5a
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
2 changed files with 7 additions and 7 deletions

View File

@ -1,22 +1,22 @@
#!/bin/sh
DOCKERCLI_CHANNEL=${DOCKERCLI_CHANNEL:-edge}
DOCKERCLI_VERSION=${DOCKERCLI_VERSION:-17.06.0-ce}
DOCKERCLI_CHANNEL=${DOCKERCLI_CHANNEL:-stable}
DOCKERCLI_VERSION=${DOCKERCLI_VERSION:-17.06.2-ce}
install_dockercli() {
echo "Install docker/cli version $DOCKERCLI_VERSION from $DOCKERCLI_CHANNEL"
arch=$(uname -m)
# No official release of these platforms
if [ "$arch" != "x86_64" ] && [ "$arch" != "s390x" ]; then
if [ "$arch" != "x86_64" ] && [ "$arch" != "s390x" ] && [ "$arch" != "armhf" ]; then
build_dockercli
return
fi
url=https://download.docker.com/linux/static
curl -Ls "${url}/${DOCKERCLI_CHANNEL}/${arch}/docker-${DOCKERCLI_VERSION}.tgz" | tar -xz docker/docker
mkdir -p ${PREFIX}
mv docker/docker ${PREFIX}/
mkdir -p "${PREFIX}"
mv docker/docker "${PREFIX}/"
rmdir docker
}

View File

@ -394,8 +394,8 @@ Try {
if ($Daemon) { Execute-Build "daemon" "daemon" "dockerd" }
if ($Client) {
# Get the Docker channel and version from the environment, or use the defaults.
if (-not ($channel = $env:DOCKERCLI_CHANNEL)) { $channel = "edge" }
if (-not ($version = $env:DOCKERCLI_VERSION)) { $version = "17.06.0-ce" }
if (-not ($channel = $env:DOCKERCLI_CHANNEL)) { $channel = "stable" }
if (-not ($version = $env:DOCKERCLI_VERSION)) { $version = "17.06.2-ce" }
# Download the zip file and extract the client executable.
Write-Host "INFO: Downloading docker/cli version $version from $channel..."