|
2 | 2 |
|
3 | 3 | # Start with the Matlab r2013b runtime container |
4 | 4 | FROM flywheel/matlab-mcr:v82 |
5 | | - |
6 | 5 | MAINTAINER Michael Perry <lmperry@stanford.edu> |
7 | 6 |
|
8 | 7 | ENV FLYWHEEL /flywheel/v0 |
9 | 8 | WORKDIR ${FLYWHEEL} |
10 | 9 | COPY run ${FLYWHEEL}/run |
11 | 10 |
|
12 | | -############################ |
| 11 | +########################### |
13 | 12 | # Install dependencies |
14 | 13 |
|
15 | | -# Configure neurodebian repo |
16 | | -RUN wget -O- http://neuro.debian.net/lists/trusty.us-nh.full | tee /etc/apt/sources.list.d/neurodebian.sources.list |
17 | | -RUN apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 0xA5D32F012649A5A9 |
18 | | - |
19 | | -RUN apt-get update && apt-get install -y xvfb \ |
| 14 | +# Configure neurodebian |
| 15 | +# (https://github.com/neurodebian/dockerfiles/blob/master/dockerfiles/trusty-non-free/Dockerfile) |
| 16 | +RUN set -x \ |
| 17 | + && apt-get update \ |
| 18 | + && { \ |
| 19 | + which gpg \ |
| 20 | + || apt-get install -y --no-install-recommends gnupg \ |
| 21 | + ; } \ |
| 22 | +# Ubuntu includes "gnupg" (not "gnupg2", but still 2.x), but not dirmngr, and gnupg 2.x requires dirmngr |
| 23 | +# so, if we're not running gnupg 1.x, explicitly install dirmngr too |
| 24 | + && { \ |
| 25 | + gpg --version | grep -q '^gpg (GnuPG) 1\.' \ |
| 26 | + || apt-get install -y --no-install-recommends dirmngr \ |
| 27 | + ; } \ |
| 28 | + && rm -rf /var/lib/apt/lists/* |
| 29 | + |
| 30 | +RUN set -x \ |
| 31 | + && export GNUPGHOME="$(mktemp -d)" \ |
| 32 | + && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys DD95CC430502E37EF840ACEEA5D32F012649A5A9 \ |
| 33 | + && gpg --export DD95CC430502E37EF840ACEEA5D32F012649A5A9 > /etc/apt/trusted.gpg.d/neurodebian.gpg \ |
| 34 | + && rm -rf "$GNUPGHOME" \ |
| 35 | + && apt-key list | grep neurodebian |
| 36 | + |
| 37 | +RUN { \ |
| 38 | + echo 'deb http://neuro.debian.net/debian trusty main'; \ |
| 39 | + echo 'deb http://neuro.debian.net/debian data main'; \ |
| 40 | +} > /etc/apt/sources.list.d/neurodebian.sources.list |
| 41 | + |
| 42 | +RUN sed -i -e 's,main *$,main contrib non-free,g' /etc/apt/sources.list.d/neurodebian.sources.list; grep -q 'deb .* multiverse$' /etc/apt/sources.list || sed -i -e 's,universe *$,universe multiverse,g' /etc/apt/sources.list |
| 43 | + |
| 44 | +ARG DEBIAN_FRONTEND=noninteractive |
| 45 | +RUN apt-get update && apt-get install -y --force-yes \ |
| 46 | + xvfb \ |
20 | 47 | xfonts-100dpi \ |
21 | 48 | xfonts-75dpi \ |
22 | 49 | xfonts-cyrillic \ |
|
0 commit comments