Add docker virtualization
This commit is contained in:
parent
14e1d92c68
commit
83a9247627
40
Dockerfile
Normal file
40
Dockerfile
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
#FROM base/archlinux
|
||||||
|
FROM arch-python
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
#ADD . /app
|
||||||
|
|
||||||
|
# Update
|
||||||
|
#RUN pacman -Syu --no-comfirm
|
||||||
|
|
||||||
|
# minigrida deps
|
||||||
|
#RUN pacman -S --noconfirm python-gdal python-yaml
|
||||||
|
|
||||||
|
# triskele deps (build)
|
||||||
|
RUN pacman -S --noconfirm git python-pip make gcc intel-tbb boost
|
||||||
|
|
||||||
|
# LD2DAPs deps
|
||||||
|
RUN pacman -S --noconfirm python-pandas python-scikit-learn
|
||||||
|
|
||||||
|
# !#$*(&@(&(%*
|
||||||
|
RUN pacman -S --noconfirm python-matplotlib
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
# TODO: prod pip install
|
||||||
|
# TODO: remove source
|
||||||
|
## Triskele
|
||||||
|
RUN git clone https://git.normalized.xyz/Florent/Triskele.git \
|
||||||
|
&& cd Triskele \
|
||||||
|
&& make -f MakefileNoOTB apGenerator \
|
||||||
|
&& cd python \
|
||||||
|
&& pip install -e .
|
||||||
|
|
||||||
|
## LD2DAPs
|
||||||
|
RUN git clone https://git.normalized.xyz/Florent/LD2DAPs.git \
|
||||||
|
&& cd LD2DAPs \
|
||||||
|
&& pip install -e .
|
||||||
|
|
||||||
|
RUN mkdir Enrichment Data
|
||||||
|
|
||||||
|
CMD ["python", "supervisor.py"]
|
||||||
@ -9,7 +9,6 @@
|
|||||||
# TODO details
|
# TODO details
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import ipdb
|
|
||||||
|
|
||||||
class Split:
|
class Split:
|
||||||
"""Geographic split cross validation generator.
|
"""Geographic split cross validation generator.
|
||||||
|
|||||||
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
minigrida:
|
||||||
|
build: .
|
||||||
|
image: minigrida
|
||||||
|
volumes:
|
||||||
|
- ../TMP_thecomedian_Enrichment:/app/Enrichment
|
||||||
|
- ../TMP_thecomedian_Data:/app/Data
|
||||||
Loading…
Reference in New Issue
Block a user