Skip to content

Commit

Permalink
allow to test installations with podman instead of docker
Browse files Browse the repository at this point in the history
- overriable env variable still defaults to docker
  • Loading branch information
MartinNowak committed Oct 5, 2018
1 parent ef9aafb commit e3c7445
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/installation.sh
Expand Up @@ -8,6 +8,7 @@ if [ $# -ne 1 ]; then
exit 1
fi
VERSION="$1"
: ${DOCKER:=docker}

: ${BUILD_DIR:='../create_dmd_release/build'}
# dmd_2.079.1-0_amd64.deb, dmd_2.079.1~beta.1-0_amd64.deb
Expand Down Expand Up @@ -42,13 +43,13 @@ FROM $platform
COPY test_curl.d .
COPY $pkg .
EOF
docker build . --tag="$img_tag" >/dev/null
"$DOCKER" build --tag="$img_tag" . >/dev/null

# test installation, using script from caller's stdin
docker run --rm -i "$img_tag" bash -s
"$DOCKER" run --rm -i "$img_tag" bash -s

# remove docker image
docker rmi "$img_tag" >/dev/null
"$DOCKER" rmi "$img_tag" >/dev/null
rm Dockerfile
}

Expand Down

0 comments on commit e3c7445

Please sign in to comment.