Skip to content

Commit 8a1e9a6

Browse files
committed
feat: add binder
1 parent b0217e4 commit 8a1e9a6

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66

7+
- Binder for Pandora's notebooks. [#215]
78
- Version handling with setuptools_scm [#212]
89

910
## 1.0.0 (March 2021)

Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM ubuntu:20.04
2+
RUN apt-get update && apt-get -y update
3+
RUN apt-get install -y build-essential python3.6 python3-pip python3-dev
4+
RUN pip3 -q install pip --upgrade
5+
6+
COPY notebooks/notebook_requirements.txt ./
7+
8+
RUN pip3 install --no-cache notebook && \
9+
pip3 install numpy && \
10+
pip3 install -r notebook_requirements.txt
11+
12+
13+
ARG NB_USER=user
14+
ARG NB_UID=1000
15+
ENV USER ${NB_USER}
16+
ENV NB_UID ${NB_UID}
17+
ENV HOME /home/${NB_USER}
18+
19+
RUN adduser --disabled-password \
20+
--gecos "Default user" \
21+
--uid ${NB_UID} \
22+
${NB_USER}
23+
24+
25+
USER $NB_USER
26+
27+
COPY --chown=1000:100 . Pandora
28+
29+
WORKDIR /Pandora

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<a href="https://codecov.io/gh/CNES/Pandora"><img src="https://codecov.io/gh/CNES/Pandora/branch/master/graph/badge.svg?token=IENWO02GB3"/></a>
1010
<a href='https://pandora.readthedocs.io/?badge=latest'><img src='https://readthedocs.org/projects/pandora/badge/?version=latest' alt='Documentation Status' /></a>
1111
<a href="https://opensource.org/licenses/Apache-2.0/"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a>
12+
<a href="https://mybinder.org/v2/gh/CNES/Pandora/master"><img src="https://mybinder.org/badge_logo.svg"></a>
1213
</p>
1314

1415
<p align="center">

notebooks/notebook_requirements.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
numpy
2+
pandora-plugin-libsgm
3+
xarray>=0.13.*
4+
scipy
5+
rasterio
6+
json-checker
7+
numba>=0.47.*
8+
transitions
9+
scikit-image
10+
ipyvolume
11+
bokeh
12+
matplotlib
13+
graphviz

0 commit comments

Comments
 (0)