mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Merge pull request #740 from andy-mishechkin/690_Moby_buildx
690 Installing the Docker moby-buildx on Ubuntu Images
This commit is contained in:
@@ -16,16 +16,22 @@ if ! IsInstalled $docker_package; then
|
|||||||
apt-get remove -y moby-engine moby-cli
|
apt-get remove -y moby-engine moby-cli
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y moby-engine moby-cli
|
apt-get install -y moby-engine moby-cli
|
||||||
|
apt-get install --no-install-recommends -y moby-buildx
|
||||||
else
|
else
|
||||||
echo "Docker ($docker_package) is already installed"
|
echo "Docker ($docker_package) is already installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run tests to determine that the software installed as expected
|
# Run tests to determine that the software installed as expected
|
||||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||||
|
echo "Checking the docker-moby and moby-buildx"
|
||||||
if ! command -v docker; then
|
if ! command -v docker; then
|
||||||
echo "docker was not installed"
|
echo "docker was not installed"
|
||||||
exit 1
|
exit 1
|
||||||
|
elif ! [[ $(docker buildx) ]]; then
|
||||||
|
echo "Docker-Buildx was not installed"
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
|
echo "Docker-moby and Docker-buildx checking the successfull"
|
||||||
# Docker daemon takes time to come up after installing
|
# Docker daemon takes time to come up after installing
|
||||||
sleep 10
|
sleep 10
|
||||||
set -e
|
set -e
|
||||||
@@ -50,3 +56,7 @@ docker pull ubuntu:14.04
|
|||||||
echo "Documenting Docker version"
|
echo "Documenting Docker version"
|
||||||
docker_version=$(docker -v)
|
docker_version=$(docker -v)
|
||||||
DocumentInstalledItem "Docker-Moby ($docker_version)"
|
DocumentInstalledItem "Docker-Moby ($docker_version)"
|
||||||
|
|
||||||
|
echo "Documenting Docker-buildx version"
|
||||||
|
DOCKER_BUILDX_VERSION=$(docker buildx version | cut -d ' ' -f2)
|
||||||
|
DocumentInstalledItem "Docker-Buildx ($DOCKER_BUILDX_VERSION)"
|
||||||
|
|||||||
Reference in New Issue
Block a user