Skip to content

Commit

Permalink
docs: update docker usage for nix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
wd15 committed Aug 3, 2023
1 parent fb4d955 commit 2215465
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,32 @@ Pull the Docker Instance from Dockerhub

Run the container

$ docker run -i -t -p 4000:4000 wd15/pfhub:latest
$ docker run -i -t -p 8888:8888 wd15/pfhub:latest

and then
### View the notebooks

# cd pfhub
# nix develop
# jekyll serve --host 0.0.0.0
# jupyter-notebook --ip 0.0.0.0 --no-browser

to view the website at http://127.0.0.1:4000/pfhub/ on the host.
and view the running Jupyter file browser at http://127.0.0.1:8888 on
the host.

### View the website

# cd pfhub
# jekyll serve --host 0.0.0.0 --port 8888

to view the website at http://127.0.0.1:8888/pfhub/ on the host.

## Build the Docker instance

Clone this repository and run
The Docker instance is built using Nix. See (./NIX.md) to get started.
Once you're familiar with Nix, clone this repository and then

$ nix build .#docker
$ docker load < result

$ docker build -t wd15/pfhub:latest .
in the base directory.

## Push the Docker instance

Expand Down

0 comments on commit 2215465

Please sign in to comment.