Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
docs: add screenshot feature to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Apr 4, 2017
1 parent 7bb15e2 commit e52dd36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -32,8 +32,9 @@ The above [example][13] can be executed without configuration or dependencies in
```sh
git clone https://github.com/clebert/cybernaut.git && \
cd cybernaut/example/ && \
mkdir -p screenshots && \
docker build -t clebert/cybernaut-example . && \
docker run clebert/cybernaut-example
docker run -v screenshots:/opt/cybernaut-example/screenshots -t clebert/cybernaut-example
```

## Contents
Expand Down
2 changes: 2 additions & 0 deletions example/Dockerfile
Expand Up @@ -5,6 +5,8 @@ ADD . /opt/cybernaut-example
WORKDIR /opt/cybernaut-example

RUN rm -rf node_modules
RUN rm -rf screenshots

RUN npm install
RUN apt-get update && apt-get install -y libgconf-2-4

Expand Down
4 changes: 3 additions & 1 deletion example/README.md
Expand Up @@ -15,7 +15,9 @@ npm install && npm run chrome
Alternatively, run the test in a docker container:

```sh
docker build -t clebert/cybernaut-example . && docker run clebert/cybernaut-example
mkdir -p screenshots && \
docker build -t clebert/cybernaut-example . && \
docker run -v screenshots:/opt/cybernaut-example/screenshots -t clebert/cybernaut-example
```

## Firefox
Expand Down

0 comments on commit e52dd36

Please sign in to comment.