Skip to content

Commit 1a3fb32

Browse files
committed
neurodebian configuration changes
1 parent a5f0c87 commit 1a3fb32

1 file changed

Lines changed: 34 additions & 7 deletions

File tree

Dockerfile

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,48 @@
22

33
# Start with the Matlab r2013b runtime container
44
FROM flywheel/matlab-mcr:v82
5-
65
MAINTAINER Michael Perry <lmperry@stanford.edu>
76

87
ENV FLYWHEEL /flywheel/v0
98
WORKDIR ${FLYWHEEL}
109
COPY run ${FLYWHEEL}/run
1110

12-
############################
11+
###########################
1312
# Install dependencies
1413

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 \
2047
xfonts-100dpi \
2148
xfonts-75dpi \
2249
xfonts-cyrillic \

0 commit comments

Comments
 (0)