Skip to content

Commit 84bd4d9

Browse files
authoredSep 20, 2017
Merge pull request #77 from gopherdata/version-1
Update to Version 1 - gomacro, new docs, and more
2 parents d219b9a + 1081985 commit 84bd4d9

File tree

642 files changed

+222806
-24869
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

642 files changed

+222806
-24869
lines changed
 

‎CONTRIBUTORS

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This is the official list of people who can contribute
2+
# (and typically have contributed) code to the gophernotes
3+
# repository.
4+
#
5+
# Names should be added to this file only after verifying that
6+
# the individual or the individual's organization has agreed to
7+
# the appropriate Contributor License Agreement, found here:
8+
#
9+
# http://code.google.com/legal/individual-cla-v1.0.html
10+
# http://code.google.com/legal/corporate-cla-v1.0.html
11+
#
12+
# The agreement for individuals can be filled out on the web.
13+
#
14+
# Names should be added to this file like so:
15+
# Name <email address>
16+
#
17+
# Please keep the list sorted.
18+
19+
Bobby Norton <bobby@testedminds.com>
20+
Dan Kortschak <dan@kortschak.io>
21+
Daniel Whitenack <whitenack.daniel@gmail.com>
22+
Fransesc Campoy <campoy@golang.org>
23+
Harry Moreno <harry@capsulerx.com>
24+
Josh Cheek <josh.cheek@gmail.com>
25+
Kevin Burke <kev@inburke.com>
26+
Matthew Steffen <matt@pachyderm.io>
27+
Sebastien Binet <binet@cern.ch>
28+
Spencer Park <spinnr95@gmail.com>
29+
Thomas Kluyver <thomas@kluyver.me.uk>
30+
Yang Yang <wdscxsj@gmail.com>

‎Dockerfile

+40-20
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
1-
FROM golang
1+
FROM alpine:3.5
2+
MAINTAINER dwhitena
23

3-
# dependencies
4-
RUN apt-get update && \
5-
apt-get install -y pkg-config libzmq3-dev build-essential python3-pip && \
6-
pip3 install --upgrade pip
4+
# Add gophernotes
5+
ADD . /go/src/github.com/gopherdata/gophernotes/
76

8-
# set up golang
9-
ENV PATH /usr/local/go/bin:$PATH
10-
ENV GOPATH /go
11-
ENV PATH $GOPATH/bin:$PATH
12-
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
13-
14-
# install gophernotes
15-
RUN go get golang.org/x/tools/cmd/goimports
16-
RUN go get -tags zmq_3_x github.com/gopherds/gophernotes
17-
RUN mkdir -p ~/.ipython/kernels/gophernotes
18-
RUN cp -r $GOPATH/src/github.com/gopherds/gophernotes/kernel/* ~/.ipython/kernels/gophernotes
19-
20-
# install jupyter
21-
RUN pip3 install jupyter
7+
# Install Jupyter and gophernotes.
8+
RUN set -x \
9+
# install python and dependencies
10+
&& apk update \
11+
&& apk --no-cache add \
12+
ca-certificates \
13+
python3 \
14+
su-exec \
15+
gcc \
16+
git \
17+
py3-zmq \
18+
pkgconfig \
19+
zeromq-dev \
20+
musl-dev \
21+
&& pip3 install --upgrade pip \
22+
&& ln -s /usr/bin/python3.5 /usr/bin/python \
23+
## install Go
24+
&& apk --update-cache --allow-untrusted \
25+
--repository http://dl-4.alpinelinux.org/alpine/edge/community \
26+
--arch=x86_64 add \
27+
go \
28+
## jupyter notebook
29+
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
30+
&& pip3 install jupyter notebook \
31+
## install gophernotes
32+
&& GOPATH=/go go install github.com/gopherdata/gophernotes \
33+
&& cp /go/bin/gophernotes /usr/local/bin/ \
34+
&& mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
35+
&& cp -r /go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
36+
## clean
37+
&& find /usr/lib/python3.5 -name __pycache__ | xargs rm -r \
38+
&& rm -rf \
39+
/root/.[acpw]* \
40+
ipaexg00301* \
41+
&& rm -rf /var/cache/apk/*
2242

2343
EXPOSE 8888
24-
CMD ["jupyter", "notebook"]
44+
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]

0 commit comments

Comments
 (0)
Please sign in to comment.