-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
141 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
FROM python:3.9 | ||
LABEL Pierre Augier <[email protected]> | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
libfftw3-dev libfftw3-mpi-dev \ | ||
openmpi-bin libhdf5-openmpi-dev libopenblas-dev \ | ||
gfortran clang \ | ||
emacs vim \ | ||
meld less \ | ||
# python3-pip is for Mercurial (hg-git, hg-evolve) | ||
mercurial python3-pip git \ | ||
rsync \ | ||
libgl1 xvfb xauth libgl1-mesa-dev \ | ||
libxkbcommon-x11-0 \ | ||
swig sudo | ||
|
||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
RUN groupadd -g 1000 appuser && useradd -m -r -u 1000 -g appuser -s /bin/bash appuser -s /bin/bash && usermod -a -G sudo appuser | ||
RUN echo appuser:appuser | chpasswd | ||
USER appuser | ||
ARG HOME=/home/appuser | ||
RUN mkdir -p $HOME/opt | ||
WORKDIR $HOME/opt | ||
RUN echo $USER $HOME $PWD && whoami | ||
|
||
RUN python -m pip install hg-evolve hg-git --no-cache-dir | ||
|
||
RUN mkdir -p $HOME/.local/include | ||
RUN mkdir -p $HOME/.local/lib | ||
RUN ln -s /usr/include/fftw* $HOME/.local/include | ||
RUN ln -s /usr/lib/x86_64-linux-gnu/libfftw3* $HOME/.local/lib | ||
|
||
ENV LD_LIBRARY_PATH=$HOME/.local/lib | ||
ENV PATH=$HOME/.local/bin:$PATH | ||
ENV CPATH=$HOME/.local/include:$CPATH | ||
|
||
RUN mkdir -p $HOME/.config/matplotlib | ||
RUN echo 'backend : agg' > $HOME/.config/matplotlib/matplotlibrc | ||
|
||
COPY --chown=appuser:appuser hgrc $HOME/.hgrc | ||
COPY --chown=appuser:appuser pythranrc $HOME/.pythranrc | ||
|
||
# RUN wget https://foss.heptapod.net/fluiddyn/fluidfft/raw/branch/default/doc/install/install_p3dfft.sh -O ./install_p3dfft.sh | ||
# RUN wget https://foss.heptapod.net/fluiddyn/fluidfft/raw/branch/default/doc/install/install_pfft.sh -O ./install_pfft.sh | ||
# RUN wget https://foss.heptapod.net/fluiddyn/fluidfft/raw/branch/default/site.cfg.files/site.cfg.docker -O ~/.fluidfft-site.cfg | ||
# COPY --chown=appuser:appuser install_shtns.sh $PWD | ||
# RUN chmod +x install_p3dfft.sh install_pfft.sh install_shtns.sh | ||
|
||
# RUN export FCFLAGS="-w -fallow-argument-mismatch -O2" && \ | ||
# export FFLAGS="-w -fallow-argument-mismatch -O2" && \ | ||
# ./install_p3dfft.sh | ||
# RUN ./install_pfft.sh | ||
# RUN ./install_shtns.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# example user config (see 'hg help config' for more info) | ||
[ui] | ||
# name and email, e.g. | ||
# username = Jane Doe <[email protected]> | ||
editor = emacs -nw -Q | ||
|
||
# We recommend enabling tweakdefaults to get slight improvements to | ||
# the UI over time. Make sure to set HGPLAIN in the environment when | ||
# writing scripts! | ||
tweakdefaults = True | ||
|
||
[extensions] | ||
# uncomment these lines to enable some popular extensions | ||
# (see 'hg help extensions' for more info) | ||
# | ||
churn = | ||
shelve = | ||
hgext.extdiff = | ||
rebase = | ||
absorb = | ||
evolve = | ||
topic = | ||
|
||
[extdiff] | ||
cmd.meld = | ||
|
||
[trusted] | ||
users = root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[pythran] | ||
complex_hook = True | ||
|
||
[compiler] | ||
CXX=clang++ | ||
CC=clang | ||
blas=openblas |