mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-26 05:27:31 +02:00
update superset-arm
This commit is contained in:
parent
6321532737
commit
e98e8437ee
@ -1,75 +0,0 @@
|
|||||||
#
|
|
||||||
# Dockerfile for superset-arm
|
|
||||||
#
|
|
||||||
|
|
||||||
FROM resin/rpi-raspbian:stretch
|
|
||||||
MAINTAINER EasyPi Software Foundation
|
|
||||||
|
|
||||||
# Superset version
|
|
||||||
ARG SUPERSET_VERSION=0.26.3
|
|
||||||
|
|
||||||
# Configure environment
|
|
||||||
ENV LANG=C.UTF-8 \
|
|
||||||
LC_ALL=C.UTF-8 \
|
|
||||||
PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH \
|
|
||||||
SUPERSET_REPO=apache/incubator-superset \
|
|
||||||
SUPERSET_VERSION=${SUPERSET_VERSION} \
|
|
||||||
SUPERSET_HOME=/var/lib/superset
|
|
||||||
|
|
||||||
# Create superset user & install dependencies
|
|
||||||
RUN useradd -U -m superset && \
|
|
||||||
mkdir /etc/superset && \
|
|
||||||
mkdir ${SUPERSET_HOME} && \
|
|
||||||
chown -R superset:superset /etc/superset && \
|
|
||||||
chown -R superset:superset ${SUPERSET_HOME} && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
curl \
|
|
||||||
default-libmysqlclient-dev \
|
|
||||||
freetds-dev \
|
|
||||||
freetds-bin \
|
|
||||||
libffi-dev \
|
|
||||||
libldap2-dev \
|
|
||||||
libpq-dev \
|
|
||||||
libsasl2-dev \
|
|
||||||
libssl-dev \
|
|
||||||
python3-dev && \
|
|
||||||
apt-get clean && \
|
|
||||||
rm -r /var/lib/apt/lists/* && \
|
|
||||||
curl https://raw.githubusercontent.com/${SUPERSET_REPO}/${SUPERSET_VERSION}/requirements.txt -o requirements.txt && \
|
|
||||||
curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 && \
|
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
|
||||||
pip3 install --no-cache-dir \
|
|
||||||
Werkzeug==0.12.1 \
|
|
||||||
flask-cors==3.0.3 \
|
|
||||||
flask-mail==0.9.1 \
|
|
||||||
flask-oauth==0.12 \
|
|
||||||
flask_oauthlib==0.9.3 \
|
|
||||||
gevent==1.2.2 \
|
|
||||||
impyla==0.14.0 \
|
|
||||||
infi.clickhouse-orm==0.9.8 \
|
|
||||||
mysqlclient==1.3.7 \
|
|
||||||
psycopg2==2.6.1 \
|
|
||||||
pyathena==1.2.5 \
|
|
||||||
pyhive==0.5.1 \
|
|
||||||
pyldap==2.4.28 \
|
|
||||||
pymssql==2.1.3 \
|
|
||||||
redis==2.10.5 \
|
|
||||||
sqlalchemy-clickhouse==0.1.3.post0 \
|
|
||||||
sqlalchemy-redshift==0.5.0 \
|
|
||||||
superset==${SUPERSET_VERSION} && \
|
|
||||||
rm requirements.txt
|
|
||||||
|
|
||||||
# Configure Filesystem
|
|
||||||
COPY superset /usr/local/bin
|
|
||||||
VOLUME /home/superset \
|
|
||||||
/etc/superset \
|
|
||||||
/var/lib/superset
|
|
||||||
WORKDIR /home/superset
|
|
||||||
|
|
||||||
# Deploy application
|
|
||||||
EXPOSE 8088
|
|
||||||
HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health"]
|
|
||||||
CMD ["gunicorn", "-w", "2", "--timeout", "60", "-b", "0.0.0.0:8088", "--limit-request-line", "0", "--limit-request-field_size", "0", "superset:app"]
|
|
||||||
USER superset
|
|
@ -34,11 +34,11 @@ RUN useradd -U -m superset && \
|
|||||||
libpq-dev \
|
libpq-dev \
|
||||||
libsasl2-dev \
|
libsasl2-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
python3-dev \
|
python3-dev && \
|
||||||
python3-pip && \
|
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -r /var/lib/apt/lists/* && \
|
rm -r /var/lib/apt/lists/* && \
|
||||||
curl https://raw.githubusercontent.com/${SUPERSET_REPO}/${SUPERSET_VERSION}/requirements.txt -o requirements.txt && \
|
curl https://raw.githubusercontent.com/${SUPERSET_REPO}/${SUPERSET_VERSION}/requirements.txt -o requirements.txt && \
|
||||||
|
curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 && \
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --no-cache-dir -r requirements.txt && \
|
||||||
pip3 install --no-cache-dir \
|
pip3 install --no-cache-dir \
|
||||||
Werkzeug==0.12.1 \
|
Werkzeug==0.12.1 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user