Skip to content

Commit c48944e

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]. Unfortunately, Debian still packages very old version of bats from the old repo. Use recent bats-core as installed by npm, as recommended in [3]. [1] sstephenson/bats#269 [3] https://github.com/bats-core/bats-core/wiki/Install-Bats-Using-a-Package Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent ccbb336 commit c48944e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Dockerfile

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

54
FROM golang:${GO_VERSION}-buster
@@ -33,6 +32,7 @@ RUN dpkg --add-architecture armel \
3332
libseccomp-dev:armhf \
3433
libseccomp-dev:ppc64el \
3534
libseccomp2 \
35+
npm \
3636
pkg-config \
3737
protobuf-c-compiler \
3838
protobuf-compiler \
@@ -49,13 +49,7 @@ RUN dpkg --add-architecture armel \
4949
RUN useradd -u1000 -m -d/home/rootless -s/bin/bash rootless
5050

5151
# install bats
52-
ARG BATS_VERSION
53-
RUN cd /tmp \
54-
&& git clone https://github.com/sstephenson/bats.git \
55-
&& cd bats \
56-
&& git reset --hard "${BATS_VERSION}" \
57-
&& ./install.sh /usr/local \
58-
&& rm -rf /tmp/bats
52+
RUN npm install -g bats
5953

6054
# install criu
6155
ARG CRIU_VERSION

0 commit comments

Comments
 (0)