Skip to content

Commit 43573a6

Browse files
authored
Merge pull request #127 from SpencerPark/fix-dockerfiles
Fix dockerfiles
2 parents 6474b0b + e7cf7fa commit 43573a6

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

Dockerfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,37 @@ 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 \
22-
&& ln -s /usr/bin/python3.5 /usr/bin/python \
24+
&& pip3 install --upgrade pip==9.0.3 \
25+
&& ln -s /usr/bin/python3.6 /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/ \
3438
&& mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
3539
&& cp -r /go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
3640
## clean
37-
&& find /usr/lib/python3.5 -name __pycache__ | xargs rm -r \
41+
&& find /usr/lib/python3.6 -name __pycache__ | xargs rm -r \
3842
&& rm -rf \
3943
/root/.[acpw]* \
4044
ipaexg00301* \
@@ -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: 11 additions & 8 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,16 +22,17 @@ RUN set -x \
2022
zeromq-dev \
2123
musl-dev \
2224
mercurial \
23-
&& pip3 install --upgrade pip \
24-
&& cp /usr/bin/python3.5 /usr/bin/python \
25+
&& pip3 install --upgrade pip==9.0.3 \
26+
&& cp /usr/bin/python3.6 /usr/bin/python \
2527
## install Go
2628
&& apk --update-cache --allow-untrusted \
2729
--repository http://dl-4.alpinelinux.org/alpine/edge/community \
2830
--arch=x86_64 add \
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 \
@@ -50,14 +53,14 @@ RUN set -x \
5053
&& go get github.com/patrickmn/go-cache \
5154
&& go get github.com/chewxy/math32 \
5255
&& go get github.com/chewxy/hm \
53-
&& go get github.com/chewxy/vecf64 \
54-
&& go get github.com/chewxy/vecf32 \
56+
&& go get gorgonia.org/vecf64 \
57+
&& go get gorgonia.org/vecf32 \
5558
&& go get github.com/awalterschulze/gographviz \
5659
&& go get github.com/leesper/go_rng \
5760
&& go get github.com/pkg/errors \
5861
&& go get github.com/stretchr/testify/assert \
5962
## clean
60-
&& find /usr/lib/python3.5 -name __pycache__ | xargs rm -r \
63+
&& find /usr/lib/python3.6 -name __pycache__ | xargs rm -r \
6164
&& rm -rf \
6265
/root/.[acpw]* \
6366
ipaexg00301* \

0 commit comments

Comments
 (0)