Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerfile: print bats version #178

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ FROM --platform=$BUILDPLATFORM tonistiigi/bats-assert AS bats-assert
FROM ${TEST_BASE_IMAGE} AS test-base-alpine
RUN --mount=type=cache,target=/pkg-cache \
ln -s /pkg-cache /etc/apk/cache && \
apk add bats vim
apk add bats vim && \
bats --version
WORKDIR /work

FROM ${TEST_BASE_IMAGE} AS test-base-debian
Expand All @@ -31,7 +32,8 @@ RUN --mount=type=cache,target=/pkg-cache \
ln -s /pkg-cache /var/cache/apt/archives && \
rm /etc/apt/apt.conf.d/docker-clean && \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "1";' > /etc/apt/apt.conf.d/keep-downloads && \
apt update && apt install --no-install-recommends -y bats vim
apt update && apt install --no-install-recommends -y bats vim && \
bats --version
WORKDIR /work

FROM ${TEST_BASE_IMAGE} AS test-base-rhel
Expand Down Expand Up @@ -60,6 +62,7 @@ if command -v dnf >/dev/null 2>/dev/null; then
else
yum install -y bats vim
fi
bats --version
EOT
WORKDIR /work

Expand Down
Loading