-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-1386] Docker images for running Apache Zeppelin releases #1538
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
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
48d0a01
Merge pull request #1 from apache/master
mfelgamal ac06f3a
Make docker image for zeppelin release
mfelgamal 231a414
Add zeppelin-base image
mfelgamal e642309
Add documentation and some modifications
mfelgamal e731cb4
Add java-cacerts to zeppelin-base
mfelgamal e1d4b77
add R and python to zeppelin-base
mfelgamal fd23970
remove bash erorr message.
mfelgamal d2c744e
add scala to zeppelin-base
mfelgamal 1f093d4
Add script start-zeppelin to zeppelin-base
mfelgamal b64c680
Remove gcc and g++ for decreasing the size
mfelgamal d48ecef
fix: Remove start-zeppelin.sh
1ambda cc8493f
Merge pull request #3 from 1ambda/fix/remove-startzeppelinsh
mfelgamal 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
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,70 @@ | ||
| --- | ||
| layout: page | ||
| title: "Apache Zeppelin Releases Docker Images" | ||
| description: "This document contains instructions about making docker containers for Zeppelin. It mainly provides guidance into how to create, publish and run docker images for zeppelin releases." | ||
| group: install | ||
| --- | ||
| <!-- | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| {% include JB/setup %} | ||
|
|
||
| # Apache Zeppelin Releases Docker Images | ||
|
|
||
| <div id="toc"></div> | ||
|
|
||
| ## Overview | ||
| This document contains instructions about making docker containers for Zeppelin. It mainly provides guidance into how to create, publish and run docker images for zeppelin releases. | ||
|
|
||
| ## Quick Start | ||
| ### Installing Docker | ||
| You need to [install docker](https://docs.docker.com/engine/installation/) on your machine. | ||
|
|
||
| ### Creating and Publishing Zeppelin docker image | ||
| * In order to be able to create and/or publish an image, you need to set the **DockerHub** credentials `DOCKER_USERNAME, DOCKER_PASSWORD, DOCKER_EMAIL` variables as environment variables. | ||
|
|
||
| * To create an image for some release use : | ||
| `create_release.sh <release-version> <git-tag>`. | ||
| * To publish the created image use : | ||
| `publish_release.sh <release-version> <git-tag>` | ||
|
|
||
| ### Running a Zeppelin docker image | ||
|
|
||
| * To start Zeppelin, you need to pull the zeppelin release image: | ||
| ``` | ||
| docker pull ${DOCKER_USERNAME}/zeppelin-release:<release-version> | ||
|
|
||
| docker run --rm -it -p 7077:7077 -p 8080:8080 ${DOCKER_USERNAME}/zeppelin-release:<release-version> -c bash | ||
| ``` | ||
| * Then a docker container will start with a Zeppelin release on path : | ||
| `/usr/local/zeppelin/` | ||
|
|
||
| * Run zeppelin inside docker: | ||
| ``` | ||
| /usr/local/zeppelin/bin/zeppelin.sh | ||
| ``` | ||
|
|
||
| * To Run Zeppelin in daemon mode | ||
| Mounting logs and notebooks zeppelin to folders on your host machine | ||
|
|
||
| ``` | ||
| docker run -p 7077:7077 -p 8080:8080 --privileged=true -v $PWD/logs:/logs -v $PWD/notebook:/notebook \ | ||
| -e ZEPPELIN_NOTEBOOK_DIR='/notebook' \ | ||
| -e ZEPPELIN_LOG_DIR='/logs' \ | ||
| -d ${DOCKER_USERNAME}/zeppelin-release:<release-version> \ | ||
| /usr/local/zeppelin/bin/zeppelin.sh | ||
| ``` | ||
|
|
||
|
|
||
| * Zeppelin will run at `http://localhost:8080`. | ||
|
|
||
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,42 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| FROM alpine:3.4 | ||
| MAINTAINER Apache Software Foundation <dev@zeppelin.apache.org> | ||
|
|
||
| ENV JAVA_HOME /usr/lib/jvm/java-1.7-openjdk | ||
| ENV PATH $PATH:$JAVA_HOME/bin | ||
|
|
||
| RUN apk add --update bash curl openjdk7-jre wget ca-certificates python build-base make gcc g++ java-cacerts openssl && \ | ||
| rm /usr/lib/jvm/java-1.7-openjdk/jre/lib/security/cacerts && \ | ||
| ln -s /etc/ssl/certs/java/cacerts /usr/lib/jvm/java-1.7-openjdk/jre/lib/security/cacerts && \ | ||
| curl --silent \ | ||
| --location https://github.com/sgerrand/alpine-pkg-R/releases/download/3.3.1-r0/R-3.3.1-r0.apk --output /var/cache/apk/R-3.3.1-r0.apk && \ | ||
| apk add --update --allow-untrusted /var/cache/apk/R-3.3.1-r0.apk && \ | ||
| curl --silent \ | ||
| --location https://github.com/sgerrand/alpine-pkg-R/releases/download/3.3.1-r0/R-dev-3.3.1-r0.apk --output /var/cache/apk/R-dev-3.3.1-r0.apk && \ | ||
| apk add --update --allow-untrusted /var/cache/apk/R-dev-3.3.1-r0.apk && \ | ||
| R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org')" && \ | ||
| apk del curl build-base make gcc g++ && \ | ||
| rm -rf /var/cache/apk/* | ||
|
|
||
| RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64 | ||
| RUN chmod +x /usr/local/bin/dumb-init | ||
|
|
||
| # ports for zeppelin | ||
| EXPOSE 8080 7077 | ||
|
|
||
| ENTRYPOINT ["/usr/local/bin/dumb-init", "--"] |
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.
Could you add a newline below this line? Or it'll rendered like this

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.
@AhyoungRyu Thank you for your reviews, I changed it, you can check now. ;)