Skip to content

Commit

Permalink
Merge pull request #77 from gopherdata/version-1
Browse files Browse the repository at this point in the history
Update to Version 1 - gomacro, new docs, and more
  • Loading branch information
dwhitena authored Sep 20, 2017
2 parents d219b9a + 1081985 commit 84bd4d9
Show file tree
Hide file tree
Showing 642 changed files with 222,806 additions and 24,869 deletions.
30 changes: 30 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is the official list of people who can contribute
# (and typically have contributed) code to the gophernotes
# repository.
#
# Names should be added to this file only after verifying that
# the individual or the individual's organization has agreed to
# the appropriate Contributor License Agreement, found here:
#
# http://code.google.com/legal/individual-cla-v1.0.html
# http://code.google.com/legal/corporate-cla-v1.0.html
#
# The agreement for individuals can be filled out on the web.
#
# Names should be added to this file like so:
# Name <email address>
#
# Please keep the list sorted.

Bobby Norton <[email protected]>
Dan Kortschak <[email protected]>
Daniel Whitenack <[email protected]>
Fransesc Campoy <[email protected]>
Harry Moreno <[email protected]>
Josh Cheek <[email protected]>
Kevin Burke <[email protected]>
Matthew Steffen <[email protected]>
Sebastien Binet <[email protected]>
Spencer Park <[email protected]>
Thomas Kluyver <[email protected]>
Yang Yang <[email protected]>
60 changes: 40 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,44 @@
FROM golang
FROM alpine:3.5
MAINTAINER dwhitena

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

# set up golang
ENV PATH /usr/local/go/bin:$PATH
ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"

# install gophernotes
RUN go get golang.org/x/tools/cmd/goimports
RUN go get -tags zmq_3_x github.com/gopherds/gophernotes
RUN mkdir -p ~/.ipython/kernels/gophernotes
RUN cp -r $GOPATH/src/github.com/gopherds/gophernotes/kernel/* ~/.ipython/kernels/gophernotes

# install jupyter
RUN pip3 install jupyter
# Install Jupyter and gophernotes.
RUN set -x \
# install python and dependencies
&& apk update \
&& apk --no-cache add \
ca-certificates \
python3 \
su-exec \
gcc \
git \
py3-zmq \
pkgconfig \
zeromq-dev \
musl-dev \
&& pip3 install --upgrade pip \
&& ln -s /usr/bin/python3.5 /usr/bin/python \
## install Go
&& apk --update-cache --allow-untrusted \
--repository http://dl-4.alpinelinux.org/alpine/edge/community \
--arch=x86_64 add \
go \
## jupyter notebook
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip3 install jupyter notebook \
## install gophernotes
&& GOPATH=/go go install github.com/gopherdata/gophernotes \
&& cp /go/bin/gophernotes /usr/local/bin/ \
&& mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
&& cp -r /go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
## clean
&& find /usr/lib/python3.5 -name __pycache__ | xargs rm -r \
&& rm -rf \
/root/.[acpw]* \
ipaexg00301* \
&& rm -rf /var/cache/apk/*

EXPOSE 8888
CMD ["jupyter", "notebook"]
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]
66 changes: 66 additions & 0 deletions Dockerfile.DS
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
FROM alpine:3.5
MAINTAINER dwhitena

# Add gophernotes
ADD . /go/src/github.com/gopherdata/gophernotes/

# Install Jupyter and gophernotes.
RUN set -x \
# install python and dependencies
&& apk update \
&& apk --no-cache add \
ca-certificates \
python3 \
su-exec \
gcc \
g++ \
git \
py3-zmq \
pkgconfig \
zeromq-dev \
musl-dev \
mercurial \
&& pip3 install --upgrade pip \
&& cp /usr/bin/python3.5 /usr/bin/python \
## install Go
&& apk --update-cache --allow-untrusted \
--repository http://dl-4.alpinelinux.org/alpine/edge/community \
--arch=x86_64 add \
go \
## jupyter notebook
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip3 install jupyter notebook \
## install gophernotes
&& GOPATH=/go go install github.com/gopherdata/gophernotes \
&& cp /go/bin/gophernotes /usr/local/bin/ \
&& mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
&& cp -r /go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
## get the relevant Go packages
&& go get -insecure gonum.org/v1/plot/... \
&& go get -insecure gonum.org/v1/gonum/... \
&& go get github.com/kniren/gota/... \
&& go get github.com/sajari/regression \
&& go get github.com/sjwhitworth/golearn/... \
&& go get -insecure go-hep.org/x/hep/csvutil/... \
&& go get -insecure go-hep.org/x/hep/fit \
&& go get -insecure go-hep.org/x/hep/hbook \
&& go get github.com/montanaflynn/stats \
&& go get github.com/boltdb/bolt \
&& go get github.com/patrickmn/go-cache \
&& go get github.com/chewxy/math32 \
&& go get github.com/chewxy/hm \
&& go get github.com/chewxy/vecf64 \
&& go get github.com/chewxy/vecf32 \
&& go get github.com/awalterschulze/gographviz \
&& go get github.com/leesper/go_rng \
&& go get github.com/pkg/errors \
&& go get github.com/stretchr/testify/assert \
## clean
&& find /usr/lib/python3.5 -name __pycache__ | xargs rm -r \
&& rm -rf \
/root/.[acpw]* \
ipaexg00301* \
&& rm -rf /var/cache/apk/*

EXPOSE 8888
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]
47 changes: 0 additions & 47 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

33 changes: 33 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/cosmos72/gomacro"

[[constraint]]
branch = "master"
name = "github.com/nu7hatch/gouuid"

[[constraint]]
branch = "master"
name = "github.com/pebbe/zmq4"
Loading

0 comments on commit 84bd4d9

Please sign in to comment.