From 4312340798680a2b148847b124fcf737e5839c2e Mon Sep 17 00:00:00 2001 From: "M. R" <2947595+m-roberts@users.noreply.github.com> Date: Tue, 2 May 2023 20:00:45 +0100 Subject: Add support for skipping `docker-compose` v1 operations during Docker feature install script (#533) * Add support for skipping docker-compose operations * Move changes from auto-generated files to templates and bump version * Add test * Add test conditions * Add test conditions for docker-outside-of-docker * install.sh set -x for debugging * set -x * Move compose-switch check in docker-outside-of-docker test * Put into correct test * Test for correct path --- test/docker-outside-of-docker/docker_build_no_compose.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 test/docker-outside-of-docker/docker_build_no_compose.sh (limited to 'test/docker-outside-of-docker/docker_build_no_compose.sh') diff --git a/test/docker-outside-of-docker/docker_build_no_compose.sh b/test/docker-outside-of-docker/docker_build_no_compose.sh new file mode 100755 index 0000000..477bf21 --- /dev/null +++ b/test/docker-outside-of-docker/docker_build_no_compose.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "docker-buildx" docker buildx version +check "docker-build" docker build ./ + +check "not installing compose skips docker-compose v1 install" bash -c "! type docker-compose" + +# Report result +reportResults -- cgit v1.2.3