Skip to content

Commit 1b58634

Browse files
authored
bump docker ubuntu version to upgrade needed packages (#28)
1 parent 8aaa04f commit 1b58634

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

Dockerfile

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

3-
# Specifically use bats 1.7.0
4-
# Remove git when we're done with it.
5-
# Test runner needs jq.
3+
# Ubuntu 24.04 'noble numbat' gets us:
4+
# gawk v5.2.1 https://launchpad.net/ubuntu/noble/+source/gawk
5+
# jq v1.7.1 https://launchpad.net/ubuntu/noble/+source/jq
6+
# bats v1.10.0 https://launchpad.net/ubuntu/noble/+source/bats
67

7-
RUN apt-get update && \
8-
apt-get install -y gawk jq git && \
9-
git clone https://github.com/bats-core/bats-core && \
10-
cd bats-core && \
11-
git checkout v1.7.0 && \
12-
bash ./install.sh /usr/local && \
13-
cd .. && \
14-
rm -rf ./bats-core && \
15-
apt-get remove -y git && \
16-
apt-get purge --auto-remove -y && \
17-
apt-get clean && \
8+
RUN apt-get update && \
9+
apt-get install -y gawk jq bats && \
10+
apt-get purge --auto-remove -y && \
11+
apt-get clean && \
1812
rm -rf /var/lib/apt/lists/*
1913

2014
WORKDIR /opt/test-runner

0 commit comments

Comments
 (0)