Mercurial > repos > metexplore > met4j
annotate Dockerfile @ 8:1274e2a62479 draft default tip
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit e34acf0f51cafcf6ae7c97b4feb3188a39f17c32
author | metexplore |
---|---|
date | Wed, 26 Jul 2023 15:33:45 +0000 |
parents | 7a6f2380fc1d |
children |
rev | line source |
---|---|
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
1 |
6
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
0
diff
changeset
|
2 FROM python:3.10-buster |
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
3 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
4 # set author |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
5 MAINTAINER Ludovic Cottret <ludovic.cottret@inrae.fr> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
6 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
7 # set encoding |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
8 ENV LC_ALL en_US.UTF-8 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
9 ENV LANG en_US.UTF-8 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
10 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
11 ENV PLANEMO_VENV_LOCATION /planemo-venv |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
12 ENV CONDA /tmp/conda |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
13 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
14 RUN \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
15 apt-get update \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
16 && apt-get install -y --no-install-recommends \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
17 ed \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
18 less \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
19 locales \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
20 vim-tiny \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
21 wget \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
22 ca-certificates \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
23 fonts-texgyre \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
24 build-essential \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
25 libseccomp-dev \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
26 pkg-config \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
27 squashfs-tools \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
28 cryptsetup \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
29 && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
30 && locale-gen en_US.utf8 \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
31 && /usr/sbin/update-locale LANG=en_US.UTF-8 \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
32 && echo "deb http://http.debian.net/debian buster main" > /etc/apt/sources.list.d/debian-unstable.list \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
33 && echo 'APT::Default-Release "buster";' > /etc/apt/apt.conf.d/default \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
34 && echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/90local-no-recommends \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
35 && apt-get update \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
36 && apt-get upgrade -y \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
37 && apt-get install -y --no-install-recommends \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
38 git \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
39 littler \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
40 libhdf5-dev \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
41 python-virtualenv \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
42 && pip install virtualenv \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
43 && python -m virtualenv "$PLANEMO_VENV_LOCATION" \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
44 && . "$PLANEMO_VENV_LOCATION"/bin/activate \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
45 && pip install --upgrade pip setuptools \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
46 && pip install planemo numpy \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
47 && apt-get clean autoclean \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
48 && apt-get autoremove --yes \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
49 && rm -rf /var/lib/{apt,dpkg,cache,log}/ \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
50 && rm -rf /usr/bin/X11 \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
51 && rm -rf /tmp/* |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
52 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
53 SHELL ["/bin/bash", "-c"] |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
54 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
55 RUN \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
56 export VERSION=1.17.2 OS=linux ARCH=amd64 \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
57 && wget https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
58 && tar -C /usr/local -xzvf go$VERSION.$OS-$ARCH.tar.gz \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
59 && rm go$VERSION.$OS-$ARCH.tar.gz \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
60 && echo 'export PATH=/usr/local/go/bin:$PATH' >> ~/.bashrc \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
61 && source ~/.bashrc |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
62 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
63 RUN \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
64 echo 'export PATH=/usr/local/go/bin:$PATH' >> ~/.bashrc \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
65 && source ~/.bashrc \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
66 && export VERSION=3.10.0 \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
67 && wget https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-ce-${VERSION}.tar.gz \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
68 && tar -xzf singularity-ce-${VERSION}.tar.gz \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
69 && cd singularity-ce-${VERSION} \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
70 && ./mconfig && \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
71 make -C builddir && \ |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
72 make -C builddir install |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
73 |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
74 CMD [] |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
75 |