You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2020/05/30 23:25:26 UTC

[incubator-pinot] branch upgrade_superset_docker_image_script created (now 3834da1)

This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a change to branch upgrade_superset_docker_image_script
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


      at 3834da1  Update Superset image build

This branch includes the following new commits:

     new 3834da1  Update Superset image build

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[incubator-pinot] 01/01: Update Superset image build

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch upgrade_superset_docker_image_script
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 3834da1da5e94f361f7f97dd553be94946331d0f
Author: Xiang Fu <fx...@gmail.com>
AuthorDate: Sat May 30 16:22:28 2020 -0700

    Update Superset image build
---
 docker/images/pinot-superset/Dockerfile          |  3 ++-
 docker/images/pinot-superset/bin/superset-init   | 13 +++++++++++++
 docker/images/pinot-superset/requirements-db.txt |  2 +-
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/docker/images/pinot-superset/Dockerfile b/docker/images/pinot-superset/Dockerfile
index 837b905..bc9c2e6 100644
--- a/docker/images/pinot-superset/Dockerfile
+++ b/docker/images/pinot-superset/Dockerfile
@@ -33,11 +33,12 @@ RUN mkdir /app \
 
 # Superset version to build
 ARG SUPERSET_VERSION=master
+ARG SUPERSET_REPO=https://github.com/apache/incubator-superset
 ENV SUPERSET_SRC=/app/superset-src
 
 # Download source
 WORKDIR ${SUPERSET_SRC}
-RUN wget -qO /tmp/superset.tar.gz https://github.com/apache/incubator-superset/archive/${SUPERSET_VERSION}.tar.gz \
+RUN wget -qO /tmp/superset.tar.gz ${SUPERSET_REPO}/archive/${SUPERSET_VERSION}.tar.gz \
       && tar xzf /tmp/superset.tar.gz -C ${SUPERSET_SRC} --strip-components=1
 
 # First, we just wanna install requirements, which will allow us to utilize the cache
diff --git a/docker/images/pinot-superset/bin/superset-init b/docker/images/pinot-superset/bin/superset-init
new file mode 100644
index 0000000..48208d7
--- /dev/null
+++ b/docker/images/pinot-superset/bin/superset-init
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -e
+
+# Create an admin user
+FLASK_APP=superset flask fab create-admin $@
+
+# Initialize the database
+superset db upgrade
+
+# Create default roles and permissions
+superset init
+
diff --git a/docker/images/pinot-superset/requirements-db.txt b/docker/images/pinot-superset/requirements-db.txt
index e778804..c123e63 100644
--- a/docker/images/pinot-superset/requirements-db.txt
+++ b/docker/images/pinot-superset/requirements-db.txt
@@ -20,4 +20,4 @@ gevent==1.4.0
 psycopg2-binary==2.7.5
 pyhive==0.6.1
 redis==3.2.1
-pinotdb==0.2.4
+pinotdb==0.2.5


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org