From ac6c469f21a7d2c3b5d0a573e565027d5b250a28 Mon Sep 17 00:00:00 2001 From: Vincent Zurczak Date: Sat, 11 Apr 2020 19:21:09 +0200 Subject: [PATCH] Use the last released version of BATS in the Dockerfile --- Dockerfile | 12 +++++++----- README.md | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf20db6..c3364b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,13 @@ RUN apk --no-cache add \ libc6-compat \ openssh-client \ bash - -# Install BATS -RUN git clone https://github.com/sstephenson/bats.git && \ - cd bats && \ - ./install.sh /usr/local + +# Install BATS 1.1.0 +RUN curl -LO https://github.com/bats-core/bats-core/archive/v1.1.0.zip && \ + unzip -q -d /tmp v1.1.0.zip && \ + cd /tmp/bats-core-1.1.0 && \ + ./install.sh /usr/local && \ + rm -rf /tmp/bats-core-1.1.0 # Install kubectl RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl" && \ diff --git a/README.md b/README.md index 99cb050..5e40d1d 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ Make sure they import the **lib/utils.bash** and **lib/detik.bash** files. ### Executing Tests by Hand -Assuming you have built the image from the Dockerfile... +Assuming you have built the image from the sample Dockerfile... ```bash # Run the image with a volume for your project.