Skip to content

Commit

Permalink
upgrade bats to v1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
glennj committed Jul 11, 2024
1 parent 187724e commit 3dfd80d
Showing 1 changed file with 6 additions and 13 deletions.
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

0 comments on commit 3dfd80d

Please sign in to comment.