Skip to content

Commit

Permalink
Merge pull request #16 from bats-core/dockerfile-upgrade
Browse files Browse the repository at this point in the history
Use the last released version of BATS in the Dockerfile
  • Loading branch information
vincent-zurczak authored Apr 11, 2020
2 parents ac0774a + ac6c469 commit d6a8594
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d6a8594

Please sign in to comment.