-
Notifications
You must be signed in to change notification settings - Fork 122
add R matplotlib and full pack of interpreters #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zhengkai6
wants to merge
2
commits into
dylanmei:master
Choose a base branch
from
zhengkai6:kay/docker-zeppelin_20170902_made_modifications
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,37 @@ | ||
| ./notebooks/ | ||
| ./docker-compose.yml | ||
| *~ | ||
| \#* | ||
| .DS_Store | ||
| venv | ||
| *.tgz | ||
| /bootstrap/id_rsa.pub | ||
| cluster/test | ||
|
|
||
| # Python | ||
| common/bin/*.pyc | ||
| *.pyc | ||
|
|
||
| # Intellij | ||
| .idea | ||
| **/.idea | ||
|
|
||
| # Log | ||
| npm-debug.log | ||
| output.log | ||
| httpServer.log | ||
| /daemon.log | ||
| common/log/ | ||
| /sqoop1-ingestion.log | ||
|
|
||
| # Frontend | ||
| frontend/test/unit/coverage | ||
| artifact/ | ||
|
|
||
| # Git | ||
| git-repo/ | ||
| processes/ | ||
|
|
||
| # npm | ||
| package-lock.json | ||
| src/package-lock.json | ||
| frontend/package-lock.json | ||
| node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| FROM gettyimages/spark:2.1.1-hadoop-2.7 | ||
|
|
||
| # SciPy | ||
| ADD sources.list /etc/apt/sources.list | ||
|
|
||
| # SciPy & matplotlib | ||
| RUN set -ex \ | ||
| && buildDeps=' \ | ||
| libpython3-dev \ | ||
|
|
@@ -18,49 +20,147 @@ RUN set -ex \ | |
| numpy \ | ||
| pandasql \ | ||
| scipy \ | ||
| matplotlib \ | ||
| ' \ | ||
| && pip3 install $packages \ | ||
| && apt-get purge -y --auto-remove $buildDeps \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # R language | ||
| ENV R_BASE_VERSION 3.4.1 | ||
| #ENV R_BASE_VERSION 3.3.2 | ||
| # Appends the CRAN repository to your sources.list file | ||
| # You could replace jessie-cran3 by the newer one | ||
| # Find the correct value at https://cloud.r-project.org/ | ||
| # RUN echo "deb http://cran.rstudio.com/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list | ||
| RUN echo "deb http://cran.rstudio.com/bin/linux/debian jessie-cran34/" >> /etc/apt/sources.list | ||
| #RUN apt-key adv --keyserver subkeys.pgp.net --recv-key 381BA480 | ||
| ## Now install R and littler, and create a link for littler in /usr/local/bin | ||
| ## Also set a default CRAN repo, and make sure littler knows about it too | ||
| RUN apt-get update | ||
| #RUN apt-get install -y \ | ||
| # r-base=${R_BASE_VERSION}* \ | ||
| # r-base-dev=${R_BASE_VERSION}* | ||
| RUN apt-get install -y --force-yes r-base r-base-dev | ||
| #RUN apt-get install -y r-base r-base-dev | ||
| #RUN apt-get install -t unstable -y --no-install-recommends \ | ||
| # littler \ | ||
| # r-cran-littler \ | ||
| # r-base=${R_BASE_VERSION}* \ | ||
| # r-base-dev=${R_BASE_VERSION}* \ | ||
| # r-recommended=${R_BASE_VERSION}* | ||
| #RUN echo 'options(repos = c(CRAN = "https://cran.rstudio.com/"), download.file.method = "libcurl")' >> /etc/R/Rprofile.site | ||
| #RUN echo 'source("/etc/R/Rprofile.site")' >> /etc/littler.r \ | ||
| #RUN ln -s /usr/share/doc/littler/examples/install.r /usr/local/bin/install.r | ||
| #RUN ln -s /usr/share/doc/littler/examples/install2.r /usr/local/bin/install2.r | ||
| #RUN ln -s /usr/share/doc/littler/examples/installGithub.r /usr/local/bin/installGithub.r | ||
| #RUN ln -s /usr/share/doc/littler/examples/testInstalled.r /usr/local/bin/testInstalled.r | ||
| #RUN install.r docopt \ | ||
| #RUN rm -rf /tmp/downloaded_packages/ /tmp/*.rds \ | ||
| #RUN rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # consider of CRAN below: | ||
| # https://mirrors.tuna.tsinghua.edu.cn/CRAN/ | ||
| # http://mirrors.ustc.edu.cn/CRAN/ | ||
| RUN R -e "install.packages('devtools', repos = 'http://cran.us.r-project.org')" | ||
| RUN R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org')" | ||
| RUN R -e "install.packages('ggplot2', repos = 'http://cran.us.r-project.org')" | ||
| RUN R -e "install.packages('rJava', repos = 'http://cran.us.r-project.org')" | ||
| RUN R -e "install.packages('RJDBC', repos = 'http://cran.us.r-project.org')" | ||
|
|
||
| # Zeppelin | ||
| ENV ZEPPELIN_PORT 8080 | ||
| ENV ZEPPELIN_HOME /usr/zeppelin | ||
| ENV ZEPPELIN_CONF_DIR $ZEPPELIN_HOME/conf | ||
| ENV ZEPPELIN_NOTEBOOK_DIR $ZEPPELIN_HOME/notebook | ||
| ENV ZEPPELIN_LOGS_DIR $ZEPPELIN_HOME/logs | ||
| ENV ZEPPELIN_RUN_DIR $ZEPPELIN_HOME/run | ||
| ENV ZEPPELIN_COMMIT v0.7.2 | ||
| ENV MAVEN_VERION 3.5.0 | ||
| ENV SCALA_VERION 2.11 | ||
| RUN echo '{ "allow_root": true }' > /root/.bowerrc | ||
|
|
||
| RUN set -ex \ | ||
| && buildDeps=' \ | ||
| git \ | ||
| bzip2 \ | ||
| npm \ | ||
| ' \ | ||
| && apt-get update && apt-get install -y --no-install-recommends $buildDeps \ | ||
| && curl -sL http://archive.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz \ | ||
| && curl -sL http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERION/binaries/apache-maven-$MAVEN_VERION-bin.tar.gz \ | ||
| | gunzip \ | ||
| | tar x -C /tmp/ \ | ||
| && git clone https://github.com/apache/zeppelin.git /usr/src/zeppelin \ | ||
| && cd /usr/src/zeppelin \ | ||
| && git checkout -q $ZEPPELIN_COMMIT \ | ||
| && dev/change_scala_version.sh "2.11" \ | ||
| && MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=1024m" /tmp/apache-maven-3.5.0/bin/mvn --batch-mode package -DskipTests -Pscala-2.11 -Pbuild-distr \ | ||
| -pl 'zeppelin-interpreter,zeppelin-zengine,zeppelin-display,spark-dependencies,spark,markdown,angular,shell,hbase,postgresql,jdbc,python,elasticsearch,zeppelin-web,zeppelin-server,zeppelin-distribution' \ | ||
| && tar xvf /usr/src/zeppelin/zeppelin-distribution/target/zeppelin*.tar.gz -C /usr/ \ | ||
| && mv /usr/zeppelin* $ZEPPELIN_HOME \ | ||
| && mkdir -p $ZEPPELIN_HOME/logs \ | ||
| && mkdir -p $ZEPPELIN_HOME/run \ | ||
| && apt-get purge -y --auto-remove $buildDeps \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && rm -rf /usr/src/zeppelin \ | ||
| && rm -rf /root/.m2 \ | ||
| && rm -rf /root/.npm \ | ||
| && rm -rf /tmp/* | ||
| | tar x -C /tmp/ | ||
|
|
||
| #ARG DIST_MIRROR=http://archive.apache.org/dist/zeppelin | ||
| # use internal mirror of ustc | ||
| ARG DIST_MIRROR=http://mirrors.ustc.edu.cn/apache/zeppelin | ||
| ARG VERSION=0.7.2 | ||
|
|
||
| #ENV ZEPPELIN_HOME=/opt/zeppelin | ||
| # RUN mkdir -p /tmp/zeppelin | ||
| RUN mkdir -p $ZEPPELIN_HOME | ||
| #RUN wget ${DIST_MIRROR}/zeppelin-${VERSION}/zeppelin-${VERSION}-bin-all.tgz | tar xvz -C ${ZEPPELIN_HOME} | ||
| RUN curl http://192.168.206.113:8000/zeppelin-${VERSION}-bin-all.tgz | tar xvz -C ${ZEPPELIN_HOME} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 192.168.206.113 is it ip you docker machine? I suggest not good solution use some private ip for get artifacts. |
||
| #RUN curl http://192.168.0.107:8000/zeppelin-${VERSION}-bin-all.tgz | tar xvz -C /tmp/zeppelin | ||
| #RUN mv /tmp/zeppelin/zeppelin-${VERSION}-bin-all/* ${ZEPPELIN_HOME} | ||
| #RUN cp -r ${ZEPPELIN_HOME}/zeppelin-${VERSION}-bin-all/* ${ZEPPELIN_HOME}/ | ||
| #RUN rm -rf /tmp/zeppelin/zeppelin-${VERSION}-bin-all | ||
| RUN cp -r ${ZEPPELIN_HOME}/zeppelin-${VERSION}-bin-all/* ${ZEPPELIN_HOME} | ||
| RUN rm -rf ${ZEPPELIN_HOME}/zeppelin-${VERSION}-bin-all | ||
| RUN rm -rf *.tgz | ||
| RUN rm -rf /var/cache/apk/* | ||
| #RUN git clone https://github.com/apache/zeppelin.git /usr/src/zeppelin | ||
| # && cd /usr/src/zeppelin | ||
| #RUN cd /usr/src/zeppelin && git checkout -q $ZEPPELIN_COMMIT | ||
| #RUN /usr/src/zeppelin/dev/change_scala_version.sh $SCALA_VERION | ||
| #RUN MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=1024m" | ||
| #RUN /tmp/apache-maven-$MAVEN_VERION/bin/mvn --batch-mode package -DskipTests -Pscala-$SCALA_VERION -Pbuild-distr | ||
| #RUN MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=1024m" /tmp/apache-maven-$MAVEN_VERION/bin/mvn --batch-mode package -DskipTests -Dspark.version=${SPARK_VERSION} -Dhadoop.version=${HADOOP_VERSION} \ | ||
| # -Pr -Psparkr -Pscala-$SCALA_VERION -Pbuild-distr | ||
| # -pl 'zeppelin-interpreter,zeppelin-zengine,zeppelin-display,spark-dependencies,spark,markdown,angular,shell,hbase,postgresql,jdbc,python,elasticsearch,zeppelin-web,zeppelin-server,zeppelin-distribution' | ||
| # Note by kay, here, we use the same commands that creates official binary package. | ||
| # mvn -e -Pscala-2.11 -Pspark-${SPARK_ZEPPELIN_VERSION} -Phadoop-${MAJOR_HADOOP_VERSION} -Psparkr -Pr -Pyarn -Ppyspark -DskipTests -Pvendor-repo package && \ | ||
| # RUN /tmp/apache-maven-$MAVEN_VERION/bin/mvn clean package -DskipTests -Pspark-$SPARK_VERSION -Phadoop-$HADOOP_VERSION -Pr-$R_BASE_VERSION -Pscala-$SCALA_VERION -Psparkr -Pyarn -Ppyspark | ||
| #RUN /tmp/apache-maven-$MAVEN_VERION/bin/mvn -Pscala-${SCALA_VERION} -Pspark-${SPARK_VERSION} -Phadoop-${HADOOP_VERSION} -Pr-$R_BASE_VERSION -Psparkr -Pyarn -Ppyspark -DskipTests -Pvendor-repo package | ||
| #RUN tar xvf /usr/src/zeppelin/zeppelin-distribution/target/zeppelin*.tar.gz -C /usr/ | ||
| #RUN mv /usr/zeppelin* $ZEPPELIN_HOME | ||
| RUN mkdir -p $ZEPPELIN_LOGS_DIR | ||
| RUN mkdir -p $ZEPPELIN_RUN_DIR | ||
| #RUN apt-get purge -y --auto-remove $buildDeps | ||
| #RUN rm -rf /var/lib/apt/lists/* | ||
| #RUN rm -rf /usr/src/zeppelin | ||
| #RUN rm -rf /root/.m2 | ||
| #RUN rm -rf /root/.npm | ||
| #RUN rm -rf /tmp/* | ||
|
|
||
| RUN ln -s /usr/bin/pip3 /usr/bin/pip \ | ||
| && ln -s /usr/bin/python3 /usr/bin/python | ||
| # note this is the reference from another image | ||
| #RUN git clone --depth 1 --branch ${ZEPPELIN_VERSION} https://github.com/apache/zeppelin.git /zeppelin && \ | ||
| # apt-get update && \ | ||
| # apt-get install -y maven && \ | ||
| # mvn -Pscala-2.11 -Pspark-${SPARK_ZEPPELIN_VERSION} -Phadoop-${MAJOR_HADOOP_VERSION} -Psparkr -Pyarn -Ppyspark -DskipTests -Pvendor-repo clean package && \ | ||
| # apt-get install -y python-matplotlib && \ | ||
| # echo "tail -F /zeppelin/logs/*" >> bin/zeppelin-daemon.sh && \ | ||
| # mkdir ~/.config/matplotlib && \ | ||
| # echo "backend : Agg" >> ~/.config/matplotlib/matplotlibrc | ||
|
|
||
| RUN ln -sf /usr/bin/pip3 /usr/bin/pip | ||
| RUN ln -sf /usr/bin/python3 /usr/bin/python | ||
|
|
||
| ADD about.json $ZEPPELIN_NOTEBOOK_DIR/2BTRWA9EV/note.json | ||
| WORKDIR $ZEPPELIN_HOME | ||
| CMD ["bin/zeppelin.sh"] | ||
|
|
||
|
|
||
| #ENV ZEPPELIN_HOME /usr/zeppelin/zeppelin-${VERSION}-bin-all | ||
| #ENV ZEPPELIN_CONF_DIR $ZEPPELIN_HOME/conf | ||
| #ENV ZEPPELIN_NOTEBOOK_DIR $ZEPPELIN_HOME/notebook | ||
|
|
||
| #RUN export ZEPPELIN_HOME=/usr/zeppelin/zeppelin-${VERSION}-bin-all | ||
|
|
||
| # Pid dir doesn't exist, create /usr/zeppelin/run | ||
| #RUN mkdir -p $ZEPPELIN_RUN_DIR | ||
|
|
||
| VOLUME $ZEPPELIN_LOGS_DIR \ | ||
| $ZEPPELIN_NOTEBOOK_DIR | ||
|
|
||
| WORKDIR ${ZEPPELIN_HOME} | ||
| CMD ./bin/zeppelin.sh run | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib | ||
| deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib | ||
| deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib | ||
| deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use close mirror for dowload. for example:
https://www.apache.org/dyn/closer.cgi?filename=zeppelin/zeppelin-0.8.0/zeppelin-0.8.0.tgz&action=download