Skip to content

Commit

Permalink
Updates docker to pull files from the local FS on run. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve "uru" West committed Sep 29, 2015
1 parent 773317c commit 20b0e87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ MAINTAINER [email protected]
RUN docker-php-ext-install mbstring

# Make sure our files exist
RUN mkdir -p /fuel
WORKDIR /fuel
ADD . /fuel

# Set the default entry point so tests will run automatically
ENTRYPOINT /fuel/vendor/bin/codecept run unit

15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,21 @@ $generator->setData($config)->populateValidator($v);

## Running tests

Tests can be run through docker using the commands below. The first time you run `docker build` it may take a while to complete.
Tests can be run through docker using the commands below.

The first time you need to run `docker build` it may take a while to complete.
The name `fueltests` can be whatever you want to use to identify the docker container.

```bash
docker build -t fueltests .
docker run fueltests
```

The name `fueltests` can be whatever you want to use to identify the docker container.
Once the image is built the tests can be run in the container using the command below.
Please note that the first path after `-v` should be the absolute path to your working
directory and should always be post-fixed with `:/fuel`. For more information on this
then please consult the docker documentation on data volumes.

```bash
docker run -v /absolute/path/to/repo:/fuel fueltests
```

0 comments on commit 20b0e87

Please sign in to comment.