Skip to content

Commit 0039fc9

Browse files
committed
Dockerfile: use bats-core
The bats testing framework we use for integration test is not maintained since 2015 and was superceded by bats-core [1]. More to say, we were using an unreleased version and relying on some features of it (unfortunately I don't remember now what are those features exactly). As Debian still packages very old version of bats from the old repo, so let's Use recent bats-core from the new, supposedly better maintained, github repo. [1] sstephenson/bats#269 Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 5b38ef7 commit 0039fc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG GO_VERSION=1.13
2-
ARG BATS_VERSION=03608115df2071fff4eaaff1605768c275e5f81f
2+
ARG BATS_VERSION=1.1.0
33
ARG CRIU_VERSION=v3.13
44

55
FROM golang:${GO_VERSION}-buster
@@ -51,11 +51,11 @@ RUN useradd -u1000 -m -d/home/rootless -s/bin/bash rootless
5151
# install bats
5252
ARG BATS_VERSION
5353
RUN cd /tmp \
54-
&& git clone https://github.com/sstephenson/bats.git \
55-
&& cd bats \
54+
&& git clone https://github.com/bats-core/bats-core.git \
55+
&& cd bats-core \
5656
&& git reset --hard "${BATS_VERSION}" \
5757
&& ./install.sh /usr/local \
58-
&& rm -rf /tmp/bats
58+
&& rm -rf /tmp/bats-core
5959

6060
# install criu
6161
ARG CRIU_VERSION

0 commit comments

Comments
 (0)