1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2019-10-20 17:09:50 +08:00
parent 392b574128
commit a4ccd37861
6 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,3 @@
LOG_LEVEL = 'WARN'
ENABLE_PROXY_FIX = True
SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h'

View File

@ -4,4 +4,5 @@ superset:
- "8088:8088"
volumes:
- ./data:/var/lib/superset
- ./data/superset_config.py:/etc/superset/superset_config.py:ro
restart: always

View File

@ -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

View File

@ -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"