-
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add local docker environment setup option (#30)
- Loading branch information
1 parent
7296bfc
commit 2f6909f
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM continuumio/miniconda3 | ||
|
||
WORKDIR /workshop | ||
|
||
RUN /opt/conda/bin/conda install jupyter | ||
|
||
COPY environment.yml . | ||
RUN /opt/conda/bin/conda env create --file environment.yml | ||
|
||
COPY . . | ||
|
||
# Run within the container and allow access without token from localhost:8888 | ||
CMD [ "conda", "run", "-n", "data_viz_workshop", "jupyter", "lab", \ | ||
"--allow-root", "--ip=0.0.0.0", "--no-browser", "--NotebookApp.token=''" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
workshop: | ||
build: . | ||
ports: | ||
- "8888:8888" | ||
volumes: | ||
- .:/workshop |