Skip to content

Commit e642309

Browse files
committed
Add documentation and some modifications
1 parent 231a414 commit e642309

File tree

3 files changed

+75
-2
lines changed

3 files changed

+75
-2
lines changed

dev/create_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ GIT_TAG="$2"
4545

4646
function build_docker_base() {
4747
# build base image
48-
docker build -t ${DOCKER_USERNAME}/zeppelin-base:latest "${WORKING_DIR}/zeppelin/scripts/docker/zeppelin-base"
48+
docker build -t ${DOCKER_USERNAME}/zeppelin-base:latest "${BASEDIR}/../scripts/docker/zeppelin-base"
4949
}
5050
function build_docker_image() {
5151
# build release image

docs/install/docker.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+

scripts/docker/zeppelin-base/Dockerfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
117
FROM alpine:3.3
2-
MAINTAINER Mahmoud Elgamal <[email protected]>
18+
MAINTAINER Apache Software Foundation <[email protected]>
319

420
RUN apk add --update bash curl openjdk7-jre wget ca-certificates openssl && rm -rf /var/cache/apk/*
521

0 commit comments

Comments
 (0)