Skip to content

Commit

Permalink
Merge pull request #440 from bard/patch-2
Browse files Browse the repository at this point in the history
Fix invocation with docker as documented
  • Loading branch information
martin-schulze-vireso committed Jun 6, 2021
2 parents c275008 + b40f10a commit ce5ca28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -14,6 +14,7 @@ RUN apk add --no-cache parallel ncurses && \
RUN ln -s /opt/bats/bin/bats /usr/local/bin/bats
COPY . /opt/bats/

RUN mkdir -p /code
WORKDIR /code/

ENTRYPOINT ["/tini", "--", "bash", "bats"]
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Expand Up @@ -20,6 +20,8 @@ The format is based on [Keep a Changelog][kac] and this project adheres to
#### Documentation

* added tutorial for new users (#397)
* updated copyright year (#445)
* fixed example invocation of docker container (#440)

### Fixed

Expand All @@ -32,6 +34,8 @@ The format is based on [Keep a Changelog][kac] and this project adheres to
(#434, #433)
* fix YAML blocks in TAP13 formatter using `...` instead of `---` to start
a block (#442)
* fixed some typos in comments (#447)
* ensure `/code` exists in docker container, to make examples work again (#440)

## [1.3.0] - 2021-03-08

Expand Down
2 changes: 1 addition & 1 deletion docs/source/docker-usage.md
Expand Up @@ -32,7 +32,7 @@ This runs the `test/` directory from the bats-core repository inside the bats Do
For test suites that are intended to run in isolation from the project (i.e. the tests do not depend on project files outside of the test directory), you can mount the test directory by itself and execute the tests like so:

```bash
$ docker run -it -v "$PWD/test:/test" bats/bats:latest /test
$ docker run -it -v "$PWD:/code" bats/bats:latest /code/test
```

## Docker Gotchas
Expand Down

0 comments on commit ce5ca28

Please sign in to comment.