Skip to content

Commit 3d6a28f

Browse files
authored
Fix binder (#40)
* Add explicit binder dockerfile * Add fix_gdal * Put docker context to root
1 parent 7671845 commit 3d6a28f

File tree

15 files changed

+2882
-6
lines changed

15 files changed

+2882
-6
lines changed

.binder/Manifest.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.binder/Project.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.binder/apt.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

.binder/environment.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.binder/install.R

Lines changed: 0 additions & 1 deletion
This file was deleted.

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# repo2docker without this Dockerfile would throw ArgumentError: Package OpenSSL_jll is required
2+
# despite being part of Project.toml. This issue is specific to RQADeforestation.jl
3+
4+
FROM debian:stable-slim AS base
5+
ENV JULIA_VERSION=1.11.4
6+
COPY env/apt.txt .
7+
RUN \
8+
# base
9+
apt-get update && \
10+
apt-get install -y wget && \
11+
cat apt.txt | xargs apt-get install -y && \
12+
# conda
13+
wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py312_25.1.1-2-Linux-x86_64.sh && \
14+
mkdir -p /root/.conda && \
15+
bash miniconda.sh -b -p /root/miniconda3 && \
16+
rm -f miniconda.sh && \
17+
/root/miniconda3/bin/conda init && \
18+
# julia
19+
wget -O julia.tar.gz https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-${JULIA_VERSION}-linux-x86_64.tar.gz && \
20+
tar zxvf julia.tar.gz && \
21+
mv julia-${JULIA_VERSION} /usr/local/lib/julia && \
22+
ln -s /usr/local/lib/julia/bin/julia /usr/local/bin/
23+
ENV PATH="/root/miniconda3/bin:$PATH"
24+
25+
FROM base AS python
26+
COPY env/environment.yml .
27+
RUN conda env update --file environment.yml --prune --name base
28+
29+
FROM base AS julia
30+
COPY env/Project.toml /root/.julia/environments/v1.11/Project.toml
31+
COPY env/Manifest.toml /root/.julia/environments/v1.11/Manifest.toml
32+
RUN julia -e 'using Pkg; Pkg.instantiate(); Pkg.status()'
33+
34+
FROM base AS final
35+
WORKDIR /work
36+
COPY --from=python /root/miniconda3/ /root/miniconda3/
37+
COPY --from=julia /usr/local/bin/julia /usr/local/bin/julia
38+
COPY --from=julia /usr/local/lib/julia /usr/local/lib/julia
39+
COPY --from=julia /root/.julia /root/.julia
40+
COPY env/fix_gdal.sh .
41+
RUN bash fix_gdal.sh
42+
CMD ["jupyter", "notebook", "--allow-root"]

NOTES.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# FAIRSEND meeting 2025-05-08
2+
3+
- bids paper submitted
4+
5+
## Software readiness review
6+
7+
- scheduled on 2025-06-19
8+
- ensure that the workflow works on our machine (eodc VM)
9+
- no template with formal requirements
10+
- Stephan needs to write as well
11+
12+
- Date: week before lps, 18.6.25?, doodle: 16,17,18,20
13+
14+
## Meeting with EODC
15+
16+
- Asked poll to find a date on 28.4. at https://dud-poll.inf.tu-dresden.de/aCcu2iUisQ/
17+
- No one replied. Did I do sth. wrong? (holiday black hole...)
18+
- Invited Christian Briese, since he did not respond, lets just do another poll :)
19+
- Service readyness review is in Augus
20+
21+
- neues doodle: Fransika König, [email protected]
22+
- nächste 2 wochen
23+
24+
## ESA living planets poster
25+
26+
- We have 2 posters accepted
27+
- send drafts to zaynab until end of may
28+
- BGC prints them
29+
- 23—27 JUNE 2025 VIENNA, AUSTRIA
30+
- LPS did not publish a poster template yet
31+
- Going: Daniel, Felix
32+
33+
## Next steps: To Do in May
34+
35+
- Any major tasks required for deployment?
36+
- Daniel: draft workflow poster
37+
- Felix: draft algo poster -> update existing one
38+
- Stephan: draft software readiness report
39+
40+
# Stephan
41+
42+
- stat. kompliierung zu openEO, felix schreibt an

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ This repository contains code and documentation for a FAIR workflow based on the
1313
| -------------------------------------------- | ------------------------------------------------------------------------------------------------ |
1414
| [`RQADeforestation.jl`](RQADeforestation.jl) | git submodule to the underlying Julia package |
1515
| [`infrastructure`](infrastructure) | VM setup description using Terraform |
16-
| [`ogc-api`](ogc-api) | OGC API using pygeoapi |
1716
| [`ogc-app-cwl`](ogc-app-cwl) | OGC Application Package as a CWL workflow |
1817
| [`website`](website) | [Project website](https://earthyscience.github.io/FAIRSenDD) with documentation and workflow GUI |
1918

env/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*
2+
!*.toml
3+
!*.yml
4+
!apt.txt
5+
!*.sh
6+
!Dockerfile
7+
!.gitignore

0 commit comments

Comments
 (0)