Skip to content

Commit

Permalink
Added readme for dockers.
Browse files Browse the repository at this point in the history
Former-commit-id: 2407eaf
  • Loading branch information
mihahauke authored Mar 26, 2017
1 parent fb87969 commit 2491b50
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Provided dockerfiles (all images use ubuntu 16.04):

* **python3** - python3, vizdoom with dependecies and X11 support. By default runs [basic example](examples/python/basic.py).
* **tensorflow** - python3, vizdoom with dependecies, tensorflow and X11 support. By default runs [tensorflow learning example](examples/python/learning_tensorflow.py).
* **torch** - TODO

# Building
```bash
# Uses Dockerfile in python3 directory to create image tagged vizdoom
docker build python3 -t vizdoom


# Uses Dockerfile in tensorflow directory to create image tagged vizdoom_tf
docker build tensorflow -t vizdoom_tf

```
# Running (requires building beforehand)

```
# Run basic example in container named 'basic' ('--net=host -e DISPLAY=${DISPLAY'} is needed for X11)
docker run -t --net=host -e DISPLAY=${DISPLAY} --rm --name basic vizdoom
# Run tensorflow learning example in container named 'vizdoom_tf' ('--net=host -e DISPLAY=${DISPLAY'} is needed for X11)
docker run -t --net=host -e DISPLAY=${DISPLAY} --rm --name vizdoom_tf vizdoom_tf
```

0 comments on commit 2491b50

Please sign in to comment.