Skip to content

Commit d7999e6

Browse files
committed
Pin package repository and versions in Dockerfiles
1 parent d3368ee commit d7999e6

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,30 @@ ADD . /go/src/github.com/gopherdata/gophernotes/
88
RUN set -x \
99
# install python and dependencies
1010
&& apk update \
11-
&& apk --no-cache add \
11+
&& apk --no-cache \
12+
--repository http://dl-4.alpinelinux.org/alpine/v3.7/community \
13+
--repository http://dl-4.alpinelinux.org/alpine/v3.7/main \
14+
--arch=x86_64 add \
1215
ca-certificates \
1316
python3 \
1417
su-exec \
1518
gcc \
1619
git \
1720
py3-zmq \
18-
pkgconfig \
21+
pkgconfig \
1922
zeromq-dev \
2023
musl-dev \
21-
&& pip3 install --upgrade pip \
24+
&& pip3 install --upgrade pip==9.0.3 \
2225
&& ln -s /usr/bin/python3.5 /usr/bin/python \
2326
## install Go
2427
&& apk --update-cache --allow-untrusted \
2528
--repository http://dl-4.alpinelinux.org/alpine/edge/community \
2629
--arch=x86_64 add \
2730
go \
28-
## jupyter notebook
31+
## jupyter notebook
2932
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
30-
&& pip3 install jupyter notebook \
33+
### fix pyzmq to v16.0.2 as that is what is distributed with py3-zmq
34+
&& pip3 install jupyter notebook pyzmq==16.0.2 \
3135
## install gophernotes
3236
&& GOPATH=/go go install github.com/gopherdata/gophernotes \
3337
&& cp /go/bin/gophernotes /usr/local/bin/ \
@@ -44,4 +48,4 @@ RUN set -x \
4448
ENV GOPATH /go
4549

4650
EXPOSE 8888
47-
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]
51+
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]

Dockerfile.DS

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ ADD . /go/src/github.com/gopherdata/gophernotes/
88
RUN set -x \
99
# install python and dependencies
1010
&& apk update \
11-
&& apk --no-cache add \
12-
ca-certificates \
11+
&& apk --no-cache \
12+
--repository http://dl-4.alpinelinux.org/alpine/v3.7/community \
13+
--repository http://dl-4.alpinelinux.org/alpine/v3.7/main \
14+
--arch=x86_64 add \
1315
python3 \
1416
su-exec \
1517
gcc \
@@ -20,7 +22,7 @@ RUN set -x \
2022
zeromq-dev \
2123
musl-dev \
2224
mercurial \
23-
&& pip3 install --upgrade pip \
25+
&& pip3 install --upgrade pip==9.0.3 \
2426
&& cp /usr/bin/python3.5 /usr/bin/python \
2527
## install Go
2628
&& apk --update-cache --allow-untrusted \
@@ -29,7 +31,8 @@ RUN set -x \
2931
go \
3032
## jupyter notebook
3133
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
32-
&& pip3 install jupyter notebook \
34+
### fix pyzmq to v16.0.2 as that is what is distributed with py3-zmq
35+
&& pip3 install jupyter notebook pyzmq==16.0.2 \
3336
## install gophernotes
3437
&& export GOPATH=/go \
3538
&& go install github.com/gopherdata/gophernotes \

0 commit comments

Comments
 (0)