Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exemplary dockerfile for mybinder #38

Merged
merged 5 commits into from
Oct 30, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile

This file was deleted.

6 changes: 6 additions & 0 deletions binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM pyiron/pyiron:2020-10-28
COPY . ${HOME}/

USER root
RUN fix-permissions /home/$DOCKER_USER
USER $DOCKER_UID
6 changes: 6 additions & 0 deletions binder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Dockerfile for mybinder
To configure mybinder to run the notebooks from your repositories, you can simply include a Dockerfile, like the one in this folder, in the root of your repository.
## Details of the Dockerfile
In the first line, the base image is defined. You can select from different pyiron image. To check the available docker images from pyiron please check pyiron on docker hub. It is noteworthy that in mybinder documentation, it is suggested to use tags other than latest.
In the second line the content of your repository is copied in the Docker image, so when you start mybinder, your notebooks and other files appear in the container.
The rest of the Dockerfile, make sure that you have the right permissions when you work on the recently copied material to the container. **It is important to include these lines for users' write permission, therefore do not omit them.**
6 changes: 6 additions & 0 deletions binder/mybinder_exemplary_dockerfile/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Dockerfile for mybinder
To configure mybinder to run the notebooks from your repositories, you can simply include a Dockerfile, like the one in this folder, in the root of your repository.
## Details of the Dockerfile
max-hassani marked this conversation as resolved.
Show resolved Hide resolved
In the first line, the base image is defined. You can select from different pyiron image. To check the available docker images from pyiron, please check [pyiron repositories on docker hub](https://hub.docker.com/orgs/pyiron/repositories). It is noteworthy that in [mybinder documentation](https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html), it is suggested to use tags other than latest.
In the second line the content of your repository is copied in the Docker image, so when you start mybinder, your notebooks and other files appear in the jupyter server.
The rest of the Dockerfile, make sure that user has the right permissions when he/she work on the recently copied material to the container. **It is important to include these lines for users' write permission, therefore do not omit them.**