Skip to content

Commit

Permalink
Set the default port to 8000 in the Dockerfile, add a section to the …
Browse files Browse the repository at this point in the history
…README
  • Loading branch information
Joel Barciauskas committed Aug 5, 2016
1 parent 7aab7d9 commit ae88852
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ WORKDIR /usr/local/src/xblock-sdk
ADD . .
RUN easy_install pip
RUN make install
EXPOSE 8000
ENTRYPOINT ["python", "manage.py"]
CMD ["runserver", "0.0.0.0:8000"]
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ This code runs on Python 2.7.

#. Open a web browser to: http://127.0.0.1:8000

Docker
------

Alternatively, you can build and run the xblock-sdk in Docker.

After cloning this repository locally, go into the repository directory and build the Docker image::

$ docker build -t xblock-sdk .

You can then run the locally-built version using the following command::

$ docker run -d -p 8000:8000 --name xblock-sdk xblock-sdk

You should now be able to access the XBlock SDK environment in your browser at http://localhost:8000

Testing
--------
Expand Down

0 comments on commit ae88852

Please sign in to comment.