Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
MLAir
Commits
8e937486
Commit
8e937486
authored
2 years ago
by
Lukas Leufen
Browse files
Options
Downloads
Patches
Plain Diff
add Dockerfile
parent
2e0b954a
Branches
Branches containing commit
Tags
Tags containing commit
6 merge requests
!468
first implementation of toar-data-v2, can load data (but cannot process these...
,
!467
Resolve "release v2.2.0"
,
!455
update for reqs
,
!449
Lukas issue402 tech hpc env update
,
!448
Resolve "update HPC environment"
,
!437
Resolve "era5 data"
Pipeline
#105628
passed
2 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CI/Dockerfile
+65
-0
65 additions, 0 deletions
CI/Dockerfile
with
65 additions
and
0 deletions
CI/Dockerfile
0 → 100644
+
65
−
0
View file @
8e937486
# ---- 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment