From a4ccd378619dc905469e3c8add7c46e6f5984e03 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 20 Oct 2019 17:09:50 +0800 Subject: [PATCH] update --- jenkins/README.md | 8 ++++++++ superset/arm/Dockerfile | 3 ++- superset/arm/data/superset_config.py | 3 +++ superset/arm/docker-compose.yml | 1 + superset/arm/superset/superset-init | 2 +- superset/systemd/superset | 1 - 6 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 superset/arm/data/superset_config.py diff --git a/jenkins/README.md b/jenkins/README.md index b336b85..4340a83 100644 --- a/jenkins/README.md +++ b/jenkins/README.md @@ -40,4 +40,12 @@ $ docker-compose exec --user root jenkins apk add -U git $ firefox http://localhost:8080/ ``` +## fix slow network + +``` +$ vim data/war/jsbundles/pluginSetupWizard.js + // default 10 seconds for AJAX responses to return before triggering an error condition + var pluginManagerErrorTimeoutMillis = 10 * 1000; +``` + [1]: https://jenkins.io/index.html diff --git a/superset/arm/Dockerfile b/superset/arm/Dockerfile index b83cd33..95c679e 100644 --- a/superset/arm/Dockerfile +++ b/superset/arm/Dockerfile @@ -53,6 +53,7 @@ RUN set -xe \ mysqlclient \ psycopg2-binary \ pyhive[hive,presto] \ + redis \ && apt-get remove -y \ build-essential \ freetds-dev \ @@ -64,7 +65,7 @@ RUN set -xe \ libssl-dev \ python3-dev \ && apt-get clean \ - && rm -r requirements.txt requirements-db.txt /var/lib/apt/lists/* + && rm -r /var/lib/apt/lists/* # Configure Filesystem COPY superset /usr/local/bin diff --git a/superset/arm/data/superset_config.py b/superset/arm/data/superset_config.py new file mode 100644 index 0000000..ff1876e --- /dev/null +++ b/superset/arm/data/superset_config.py @@ -0,0 +1,3 @@ +LOG_LEVEL = 'WARN' +ENABLE_PROXY_FIX = True +SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h' diff --git a/superset/arm/docker-compose.yml b/superset/arm/docker-compose.yml index 51ca714..f6d08b3 100644 --- a/superset/arm/docker-compose.yml +++ b/superset/arm/docker-compose.yml @@ -4,4 +4,5 @@ superset: - "8088:8088" volumes: - ./data:/var/lib/superset + - ./data/superset_config.py:/etc/superset/superset_config.py:ro restart: always diff --git a/superset/arm/superset/superset-init b/superset/arm/superset/superset-init index bf3d0b0..debf462 100755 --- a/superset/arm/superset/superset-init +++ b/superset/arm/superset/superset-init @@ -3,7 +3,7 @@ set -e # Create an admin user -fabmanager create-admin --app superset $@ +FLASK_APP=superset flask fab create-admin # Initialize the database superset db upgrade diff --git a/superset/systemd/superset b/superset/systemd/superset index e57cd3b..8b8870f 100644 --- a/superset/systemd/superset +++ b/superset/systemd/superset @@ -1,4 +1,3 @@ PYTHONPATH=/home/superset/superset SUPERSET_HOME=/home/superset/superset -FLASK_APP=superset GUNICORN_CMD_ARGS="--workers=4 --timeout=60 --bind=0.0.0.0:8088 --limit-request-line=0 --limit-request-field_size=0"