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

upgrade bats to v1.10 #69

Merged
merged 3 commits into from
Jul 11, 2024
Merged
Changes from 1 commit
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
19 changes: 6 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@ FROM ubuntu:24.04

# Ubuntu 24.04 ships with bash version 5.2
# https://hub.docker.com/layers/library/ubuntu/24.04/images/sha256-3963c438d67a34318a3672faa6debd1dfff48e5d52de54305988b932c61514ca?context=explore
# Specifically use bats 1.5.0
# Remove git when we're done with it.
# 24.04 provides bats v1.10.0
# Test runner needs jq.
# Other commands to add to environment, might be used by students
# - bc
# - GNU awk (Ubuntu 20.04 ships with mawk)
# Tools commonly used by students that will already be installed include:
# - sed, tr, ...

RUN apt-get update && \
apt-get install -y git jq bc gawk && \
git clone https://github.com/bats-core/bats-core && \
cd bats-core && \
git checkout v1.5.0 && \
bash ./install.sh /usr/local && \
cd && \
apt-get remove -y git && \
apt-get purge --auto-remove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* ./bats-core
RUN apt-get update && \
apt-get install -y bats jq bc gawk && \
apt-get purge --auto-remove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY . /opt/test-runner
WORKDIR /opt/test-runner
Expand Down
Loading