|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: "Apache Zeppelin Releases Docker Images" |
| 4 | +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." |
| 5 | +group: install |
| 6 | +--- |
| 7 | +<!-- |
| 8 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | +you may not use this file except in compliance with the License. |
| 10 | +You may obtain a copy of the License at |
| 11 | +
|
| 12 | +http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +
|
| 14 | +Unless required by applicable law or agreed to in writing, software |
| 15 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | +See the License for the specific language governing permissions and |
| 18 | +limitations under the License. |
| 19 | +--> |
| 20 | +{% include JB/setup %} |
| 21 | + |
| 22 | +# Apache Zeppelin Releases Docker Images |
| 23 | + |
| 24 | +<div id="toc"></div> |
| 25 | + |
| 26 | +## Overview |
| 27 | +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. |
| 28 | + |
| 29 | +## Quick Start |
| 30 | +### Installing Docker |
| 31 | +You need to [install docker](https://docs.docker.com/engine/installation/) on your machine. |
| 32 | + |
| 33 | +### Creating and Publishing Zeppelin docker image |
| 34 | +* 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. |
| 35 | + |
| 36 | +* To create an image for some release use : |
| 37 | +`create_release.sh <release-version> <git-tag>`. |
| 38 | +* To publish the created image use : |
| 39 | +`publish_release.sh <release-version> <git-tag>` |
| 40 | + |
| 41 | +### Running a Zeppelin docker image |
| 42 | + |
| 43 | +* To start Zeppelin, you need to pull the zeppelin release image: |
| 44 | +``` |
| 45 | +docker pull ${DOCKER_USERNAME}/zeppelin-release:<release-version> |
| 46 | +docker run --rm -p 8080:8080 -p 8081:8081 ${DOCKER_USERNAME}/zeppelin-release:<release-version> bash |
| 47 | +``` |
| 48 | +* Then a docker container will start with a Zeppelin release on path : |
| 49 | +`/usr/local/zeppelin/` |
| 50 | + |
| 51 | +* Run zeppelin inside docker: |
| 52 | +``` |
| 53 | +/usr/local/zeppelin/bin/zeppelin-daemon start |
| 54 | +``` |
| 55 | + |
| 56 | +* Zeppelin will run at `http://localhost:8080`. |
| 57 | + |
0 commit comments