Skip to content

Commit 231a414

Browse files
committed
Add zeppelin-base image
1 parent ac06f3a commit 231a414

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

dev/create_release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ done
4343
RELEASE_VERSION="$1"
4444
GIT_TAG="$2"
4545

46+
function build_docker_base() {
47+
# build base image
48+
docker build -t ${DOCKER_USERNAME}/zeppelin-base:latest "${WORKING_DIR}/zeppelin/scripts/docker/zeppelin-base"
49+
}
4650
function build_docker_image() {
51+
# build release image
4752
echo "FROM ${DOCKER_USERNAME}/zeppelin-base:latest
4853
RUN mkdir /usr/local/zeppelin/
4954
ADD zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME} /usr/local/zeppelin/" > "Dockerfile"
@@ -117,6 +122,7 @@ function make_binary_release() {
117122

118123
git_clone
119124
make_source_package
125+
build_docker_base
120126
make_binary_release all "-Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr -Pscala-2.11"
121127
make_binary_release netinst "-Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr -Pscala-2.11 -pl !alluxio,!angular,!cassandra,!elasticsearch,!file,!flink,!hbase,!ignite,!jdbc,!kylin,!lens,!livy,!markdown,!postgresql,!python,!shell,!bigquery"
122128

dev/publish_release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ function curl_error() {
6868
}
6969

7070
function publish_to_dockerhub() {
71-
# publish image
71+
# publish images
7272
docker login --username="${DOCKER_USERNAME}" --password="${DOCKER_PASSWORD}" --email="${DOCKER_EMAIL}"
73+
docker push ${DOCKER_USERNAME}/zeppelin-base:latest
7374
docker push ${DOCKER_USERNAME}/zeppelin-release:"${RELEASE_VERSION}"
75+
7476
}
7577

7678
function publish_to_maven() {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM alpine:3.3
2+
MAINTAINER Mahmoud Elgamal <[email protected]>
3+
4+
RUN apk add --update bash curl openjdk7-jre wget ca-certificates openssl && rm -rf /var/cache/apk/*
5+
6+
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
7+
RUN chmod +x /usr/local/bin/dumb-init
8+
9+
# set jave environment variable
10+
ENV JAVA_HOME /usr/lib/jvm/java-1.7-openjdk
11+
ENV PATH $PATH:$JAVA_HOME/bin
12+
13+
# ports for zeppelin
14+
EXPOSE 8080 8081
15+
16+
ENTRYPOINT ["/usr/local/bin/dumb-init"]

0 commit comments

Comments
 (0)