Skip to content

Commit d6a8594

Browse files
Merge pull request #16 from bats-core/dockerfile-upgrade
Use the last released version of BATS in the Dockerfile
2 parents ac0774a + ac6c469 commit d6a8594

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Dockerfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ RUN apk --no-cache add \
1010
libc6-compat \
1111
openssh-client \
1212
bash
13-
14-
# Install BATS
15-
RUN git clone https://github.com/sstephenson/bats.git && \
16-
cd bats && \
17-
./install.sh /usr/local
13+
14+
# Install BATS 1.1.0
15+
RUN curl -LO https://github.com/bats-core/bats-core/archive/v1.1.0.zip && \
16+
unzip -q -d /tmp v1.1.0.zip && \
17+
cd /tmp/bats-core-1.1.0 && \
18+
./install.sh /usr/local && \
19+
rm -rf /tmp/bats-core-1.1.0
1820

1921
# Install kubectl
2022
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl" && \

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Make sure they import the **lib/utils.bash** and **lib/detik.bash** files.
194194

195195
### Executing Tests by Hand
196196

197-
Assuming you have built the image from the Dockerfile...
197+
Assuming you have built the image from the sample Dockerfile...
198198

199199
```bash
200200
# Run the image with a volume for your project.

0 commit comments

Comments
 (0)