Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CIF
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
VERIFY
CIF
Commits
f2bc65e8
Commit
f2bc65e8
authored
3 years ago
by
Antoine Berchet
Browse files
Options
Downloads
Patches
Plain Diff
Docker file for TM5 installation
parent
6c63391f
No related branches found
No related tags found
1 merge request
!39
Compilation and writing TM5 config files from CIF.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pycif-ubuntu.Dockerfile
+0
-5
0 additions, 5 deletions
pycif-ubuntu.Dockerfile
pycif-ubuntu.TM5.Dockerfile
+58
-0
58 additions, 0 deletions
pycif-ubuntu.TM5.Dockerfile
with
58 additions
and
5 deletions
pycif-ubuntu.Dockerfile
+
0
−
5
View file @
f2bc65e8
...
...
@@ -23,11 +23,6 @@ RUN apt update \
&& cd netcdf-fortran-4.5.3 \
&& ./configure --prefix=${NCDIR} --disable-netcdf-4 \
&& make install \
# Install utilities for TM5 default-jre
&& apt-get install -y tcsh bison flex openjdk-8-jdk\
&& mkdir -p /usr/local/gfortran;
# Install HDF4
# && apt-get install -y libhdf4-dev;
RUN
apt update
\
&&
apt-get
install
-y
python3-yaml
\
...
...
This diff is collapsed.
Click to expand it.
pycif-ubuntu.TM5.Dockerfile
0 → 100644
+
58
−
0
View file @
f2bc65e8
# Build a Docker image that contains all requirements to run the PyCIF CI.
FROM
ubuntu:20.10
RUN
apt update
\
&&
DEBIAN_FRONTEND
=
noninteractive apt
install
-y
software-properties-common rsync git
\
&&
apt update
\
# Install Python
&& DEBIAN_FRONTEND=noninteractive apt install -y python3.9 python3-pip \
# Install GDAL
&& apt-get install -y gdal-bin libgdal-dev \
&& pip install numpy GDAL \
# Install important packages
&& DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential xmlstarlet gfortran libeccodes0 graphviz \
&& pip install scipy tox sphinx sphinxcontrib-plantuml graphviz \
pyproj cython numpy pandas bottleneck \
# Install MPI
&& apt-get install -y libopenmpi-dev openmpi-bin libhdf5-openmpi-dev \
# Install NetCDF
&& cd /tmp \
&& apt install -y wget \
&& wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.5.3.tar.gz \
&& tar -xf netcdf-fortran-4.5.3.tar.gz \
&& cd netcdf-fortran-4.5.3 \
&& ./configure --prefix=${NCDIR} --disable-netcdf-4 \
&& make install;
# Install utilities for TM5
RUN
apt-get
install
-y
tcsh bison flex openjdk-8-jdk
\
&&
mkdir
-p
/usr/local/gfortran
;
# Copy libraries and compile them
COPY
./TM5_libs /tmp/TM5_libs
WORKDIR
/tmp/TM5_libs
RUN
./INSTALL_ALL.sh
# Install python packages to install pycif locally
RUN
apt update
\
&&
apt-get
install
-y
python3-yaml
\
&&
pip
install
pytest pytest-html pyyaml
;
# Install pycif on the container
COPY
./ /tmp/CIF
WORKDIR
/tmp/CIF/
RUN
python3 setup.py develop
# Command to run at execution
COPY
./bin/docker_entrypoint.sh /bin/
# Create directories
RUN
mkdir
/workdir/
\
&&
mkdir
/config/
;
ENTRYPOINT
["docker_entrypoint.sh"]
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