Skip to content

Commit

Permalink
Docker Instructions (zhanghang1989#308)
Browse files Browse the repository at this point in the history
* avoid network error

* add docker instructions

* typo

Co-authored-by: hzaws <hzaws@u8aedb6e0b0c250.ant.amazon.com>
  • Loading branch information
zhanghang1989 and hzaws committed Aug 4, 2020
1 parent deec6de commit f46bcf7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions docs/source/notes/compile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ Installation
python setup.py install


Using Docker
------------

We strongly recommend using the docker option, if you are experiencing any errors using standard installation.

* Install Docker Engine by following the `Install Docker Engine <https://docs.docker.com/engine/install/>`_.
* Build the docker image::

git clone https://github.com/zhanghang1989/PyTorch-Encoding && cd PyTorch-Encoding
bash scripts/build_docker.sh

* Run the docker::

bash scripts/run_docker.sh


Detailed Steps
--------------

Expand Down
2 changes: 1 addition & 1 deletion scripts/build_docker.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker build -t encoding .
docker build --network=host -t encoding .

0 comments on commit f46bcf7

Please sign in to comment.