Skip to content
Snippets Groups Projects
Commit 8e937486 authored by Lukas Leufen's avatar Lukas Leufen
Browse files

add Dockerfile

parent 2e0b954a
Branches
Tags
6 merge requests!468first implementation of toar-data-v2, can load data (but cannot process these...,!467Resolve "release v2.2.0",!455update for reqs,!449Lukas issue402 tech hpc env update,!448Resolve "update HPC environment",!437Resolve "era5 data"
Pipeline #105628 passed
# ---- base node ----
FROM opensuse/leap:latest AS base
MAINTAINER Lukas Leufen <l.leufen@fz-juelich.de>
# install git
RUN zypper --non-interactive install git
# install python3
RUN zypper --non-interactive install python39 python39-devel
# install pip
RUN zypper --non-interactive install python39-pip
# upgrade pip
RUN pip3.9 install --upgrade pip
# install curl
RUN zypper --non-interactive install curl
# install make
RUN zypper --non-interactive install make
# install gcc
RUN zypper --non-interactive install gcc-c++
# create and activate venv
ENV VIRTUAL_ENV=/opt/venv
RUN python3.9 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# RUN source venv/bin/activate
# ---- test node ----
FROM base AS test
# install pytest
RUN pip install pytest pytest-html pytest-lazy-fixture
# ---- coverage node ----
FROM test AS coverage
# install pytest coverage
RUN pip install pytest-cov
# ---- docs node ----
FROM base AS docs
# install sphinx
RUN pip install sphinx
# ---- MLAir ready to use ----
FROM base AS mlair
# install geo packages
RUN zypper --no-gpg-checks addrepo https://download.opensuse.org/repositories/Application:Geo/15.4/Application:Geo.repo
RUN zypper --no-gpg-checks refresh
RUN zypper --no-gpg-checks --non-interactive install proj=8.2.1
RUN zypper --no-gpg-checks --non-interactive install geos=3.10.3
RUN zypper --no-gpg-checks --non-interactive install geos-devel=3.9.1
RUN zypper --no-gpg-checks --non-interactive install libproj22=8.2.1
RUN zypper --no-gpg-checks --non-interactive install binutils libproj-devel gdal-devel
# install requirements
ADD requirements.txt .
RUN pip install -r requirements.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment