This is an automated email from the ASF dual-hosted git repository.
xxyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/main by this push:
new 57f6a27 KYLIN-5051, minor fix and add quick start about docker in
README.md
57f6a27 is described below
commit 57f6a272c96af7d5ee8cb2e035376fe452c57c35
Author: Mukvin <[email protected]>
AuthorDate: Thu Sep 2 11:56:10 2021 +0800
KYLIN-5051, minor fix and add quick start about docker in README.md
---
README.md | 31 +++++++++++++++++++++-
docker/README-standalone.md | 2 +-
docker/build_standalone_image.sh | 27 -------------------
docker/dockerfile/standalone/Dockerfile | 2 +-
.../standalone/build_standalone_image.sh | 2 +-
docker/setup_standalone.sh | 3 ++-
6 files changed, 35 insertions(+), 32 deletions(-)
diff --git a/README.md b/README.md
index 759e07c..47eb59e 100644
--- a/README.md
+++ b/README.md
@@ -20,9 +20,38 @@ Develop
=============
Please refer to
[https://github.com/Kyligence/kylin-on-parquet-v2/wiki/Development-document](https://github.com/Kyligence/kylin-on-parquet-v2/wiki/Development-document).
+Get started with Kylin in 5 minutes with Docker
+=============
+In order to allow users to try Kylin easily, we provide a docker image for
Kylin.
+
+Just run the following commands in your terminal. After 3~5 mins, you can
access Kylin WebUI http://127.0.0.1:7070/kylin/login in your browser.
+
+1. pull docker image
+```shell
+docker pull apachekylin/apache-kylin-standalone:4.0.0
+```
+
+2. start the container
+```shell
+docker run -d \
+-m 8G \
+-p 7070:7070 \
+-p 8088:8088 \
+-p 50070:50070 \
+-p 8032:8032 \
+-p 8042:8042 \
+-p 2181:2181 \
+--name kylin-4.0.0 \
+apachekylin/apache-kylin-standalone:4.0.0
+```
+
+You can learn more about this docker image on Kylin's
[website](http://kylin.apache.org/docs40/install/kylin_docker.html).
+
+
+
Documentation
=============
-Please refer to [http://kylin.apache.org/docs/](http://kylin.apache.org/docs/).
+Please refer to
[http://kylin.apache.org/docs40/](http://kylin.apache.org/docs40/).
Get Help
============
diff --git a/docker/README-standalone.md b/docker/README-standalone.md
index adc7561..5ea6c36 100644
--- a/docker/README-standalone.md
+++ b/docker/README-standalone.md
@@ -124,7 +124,7 @@ The new package is generated in "dist/" folder; Copy it to
the "docker" folder:
cp ./dist/apache-kylin-3.1.0-SNAPSHOT-bin.tar.gz ./docker
```
-Use the "Dockerfile_dev" file to build:
+Use the "Dockerfile_dev" file customized by yourself to build:
```
docker build -f Dockerfile_dev -t apache-kylin-standalone:test .
diff --git a/docker/build_standalone_image.sh b/docker/build_standalone_image.sh
deleted file mode 100755
index 749ebbc..0000000
--- a/docker/build_standalone_image.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env bash
-
-#
-# 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.
-#
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
-cd ${DIR}
-echo "build image in dir "${DIR}
-
-
-echo "start build Hadoop docker image"
-docker build -f Dockerfile_hadoop -t hadoop2.7-all-in-one-for-kylin4-beta .
-docker build -f Dockerfile -t apachekylin/apache-kylin-standalone:4.0.0-beta .
diff --git a/docker/dockerfile/standalone/Dockerfile
b/docker/dockerfile/standalone/Dockerfile
index d12a4a8..c165c6d 100644
--- a/docker/dockerfile/standalone/Dockerfile
+++ b/docker/dockerfile/standalone/Dockerfile
@@ -16,7 +16,7 @@
#
# Docker image for apache kylin, based on the Hadoop image
-FROM hadoop2.7-all-in-one-for-kylin4
+FROM hadoop2.8-all-in-one-for-kylin4
ENV RELATED_SPARK_VERSION spark2
ENV KYLIN_VERSION 4.0.0
diff --git a/docker/dockerfile/standalone/build_standalone_image.sh
b/docker/dockerfile/standalone/build_standalone_image.sh
index 8c3b96d..ee7ab7d 100755
--- a/docker/dockerfile/standalone/build_standalone_image.sh
+++ b/docker/dockerfile/standalone/build_standalone_image.sh
@@ -22,5 +22,5 @@ cd ${DIR}
echo "build image in dir "${DIR}
echo "start build Hadoop docker image"
-docker build -f Dockerfile_hadoop -t hadoop2.7-all-in-one-for-kylin4 .
+docker build -f Dockerfile_hadoop -t hadoop2.8-all-in-one-for-kylin4 .
docker build -f Dockerfile -t apachekylin/apache-kylin-standalone:4.0.0 .
diff --git a/docker/setup_standalone.sh b/docker/setup_standalone.sh
index a6289af..5ae66fe 100755
--- a/docker/setup_standalone.sh
+++ b/docker/setup_standalone.sh
@@ -23,4 +23,5 @@ docker run -d \
-p 8032:8032 \
-p 8042:8042 \
-p 2181:2181 \
-apachekylin/apache-kylin-standalone:4.0.0-beta
+--name kylin-4.0.0 \
+apachekylin/apache-kylin-standalone:4.0.0