mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-19 22:23:22 +02:00
update node-red
This commit is contained in:
parent
7f527bf4d2
commit
cd20a59ba3
@ -6,27 +6,30 @@ FROM alpine
|
|||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache bash \
|
&& apk add --no-cache
|
||||||
build-base \
|
bash \
|
||||||
ca-certificates \
|
build-base \
|
||||||
curl \
|
ca-certificates \
|
||||||
nodejs \
|
curl \
|
||||||
nodejs-npm \
|
nodejs \
|
||||||
python3 \
|
nodejs-npm \
|
||||||
python3-dev \
|
python3 \
|
||||||
|
python3-dev \
|
||||||
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
||||||
&& pip3 install --no-cache-dir rpi.gpio \
|
&& pip3 install --no-cache-dir rpi.gpio \
|
||||||
&& npm install -g --unsafe-perm node-red \
|
&& npm install -g --unsafe-perm
|
||||||
node-red-admin \
|
node-red \
|
||||||
node-red-dashboard \
|
node-red-admin \
|
||||||
node-red-node-email \
|
node-red-dashboard \
|
||||||
node-red-node-feedparser \
|
node-red-node-email \
|
||||||
node-red-node-pi-gpio \
|
node-red-node-feedparser \
|
||||||
node-red-node-sentiment \
|
node-red-node-pi-gpio \
|
||||||
node-red-node-twitter \
|
node-red-node-sentiment \
|
||||||
|
node-red-node-twitter \
|
||||||
&& mkdir -p /usr/share/doc/python-rpi.gpio \
|
&& mkdir -p /usr/share/doc/python-rpi.gpio \
|
||||||
&& apk del build-base \
|
&& apk del
|
||||||
python3-dev \
|
build-base \
|
||||||
|
python3-dev \
|
||||||
&& rm -rf /tmp/npm-*
|
&& rm -rf /tmp/npm-*
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
@ -6,27 +6,30 @@ FROM arm32v7/alpine:3
|
|||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache bash \
|
&& apk add --no-cache
|
||||||
build-base \
|
bash \
|
||||||
ca-certificates \
|
build-base \
|
||||||
curl \
|
ca-certificates \
|
||||||
nodejs \
|
curl \
|
||||||
nodejs-npm \
|
nodejs \
|
||||||
python3 \
|
nodejs-npm \
|
||||||
python3-dev \
|
python3 \
|
||||||
|
python3-dev \
|
||||||
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
||||||
&& pip3 install --no-cache-dir rpi.gpio \
|
&& pip3 install --no-cache-dir rpi.gpio \
|
||||||
&& npm install -g --unsafe-perm node-red \
|
&& npm install -g --unsafe-perm
|
||||||
node-red-admin \
|
node-red \
|
||||||
node-red-dashboard \
|
node-red-admin \
|
||||||
node-red-node-email \
|
node-red-dashboard \
|
||||||
node-red-node-feedparser \
|
node-red-node-email \
|
||||||
node-red-node-pi-gpio \
|
node-red-node-feedparser \
|
||||||
node-red-node-sentiment \
|
node-red-node-pi-gpio \
|
||||||
node-red-node-twitter \
|
node-red-node-sentiment \
|
||||||
|
node-red-node-twitter \
|
||||||
&& mkdir -p /usr/share/doc/python-rpi.gpio \
|
&& mkdir -p /usr/share/doc/python-rpi.gpio \
|
||||||
&& apk del build-base \
|
&& apk del
|
||||||
python3-dev \
|
build-base \
|
||||||
|
python3-dev \
|
||||||
&& rm -rf /tmp/npm-*
|
&& rm -rf /tmp/npm-*
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
# Dockerfile for superset-arm
|
# Dockerfile for superset-arm
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM resin/rpi-raspbian:stretch
|
FROM arm32v7/debian:buster
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
# Superset version
|
# Superset version
|
||||||
ARG SUPERSET_VERSION=0.28.1
|
ARG SUPERSET_VERSION=0.34.0
|
||||||
|
|
||||||
# Configure environment
|
# Configure environment
|
||||||
ENV GUNICORN_BIND=0.0.0.0:8088 \
|
ENV GUNICORN_BIND=0.0.0.0:8088 \
|
||||||
@ -23,49 +23,48 @@ ENV GUNICORN_BIND=0.0.0.0:8088 \
|
|||||||
ENV GUNICORN_CMD_ARGS="--workers ${GUNICORN_WORKERS} --timeout ${GUNICORN_TIMEOUT} --bind ${GUNICORN_BIND} --limit-request-line ${GUNICORN_LIMIT_REQUEST_LINE} --limit-request-field_size ${GUNICORN_LIMIT_REQUEST_FIELD_SIZE}"
|
ENV GUNICORN_CMD_ARGS="--workers ${GUNICORN_WORKERS} --timeout ${GUNICORN_TIMEOUT} --bind ${GUNICORN_BIND} --limit-request-line ${GUNICORN_LIMIT_REQUEST_LINE} --limit-request-field_size ${GUNICORN_LIMIT_REQUEST_FIELD_SIZE}"
|
||||||
|
|
||||||
# Create superset user & install dependencies
|
# Create superset user & install dependencies
|
||||||
RUN useradd -U -m superset && \
|
RUN set -xe \
|
||||||
mkdir /etc/superset && \
|
&& useradd -U -m superset \
|
||||||
mkdir ${SUPERSET_HOME} && \
|
&& mkdir /etc/superset \
|
||||||
chown -R superset:superset /etc/superset && \
|
&& mkdir ${SUPERSET_HOME} \
|
||||||
chown -R superset:superset ${SUPERSET_HOME} && \
|
&& chown -R superset:superset /etc/superset \
|
||||||
apt-get update && \
|
&& chown -R superset:superset ${SUPERSET_HOME} \
|
||||||
apt-get install -y \
|
&& apt-get update \
|
||||||
|
&& apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
curl \
|
curl \
|
||||||
default-libmysqlclient-dev \
|
|
||||||
freetds-dev \
|
|
||||||
freetds-bin \
|
freetds-bin \
|
||||||
|
freetds-dev \
|
||||||
|
libffi-dev \
|
||||||
|
libffi6 \
|
||||||
|
libldap-2.4-2 \
|
||||||
|
libldap2-dev \
|
||||||
|
libmariadb-dev \
|
||||||
|
libmariadb3 \
|
||||||
|
libpq-dev \
|
||||||
|
libpq5 \
|
||||||
|
libsasl2-2 \
|
||||||
|
libsasl2-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libssl1.1 \
|
||||||
|
python3 \
|
||||||
|
python3-dev \
|
||||||
|
&& curl https://raw.githubusercontent.com/${SUPERSET_REPO}/${SUPERSET_VERSION}/requirements.txt -o requirements.txt \
|
||||||
|
&& curl https://raw.githubusercontent.com/amancevice/docker-superset/master/requirements-db.txt -o requirements-db.txt \
|
||||||
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 \
|
||||||
|
&& pip3 install --no-cache-dir -r requirements.txt -r requirements-db.txt superset==${SUPERSET_VERSION} \
|
||||||
|
&& apt-get remove -y \
|
||||||
|
build-essential \
|
||||||
|
freetds-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libldap2-dev \
|
libldap2-dev \
|
||||||
|
libmariadb-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libsasl2-dev \
|
libsasl2-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
python3-dev && \
|
python3-dev \
|
||||||
apt-get clean && \
|
&& apt-get clean \
|
||||||
rm -r /var/lib/apt/lists/* && \
|
&& rm -r requirements.txt requirements-db.txt /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==1.0.2 \
|
|
||||||
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.5.post0 \
|
|
||||||
sqlalchemy-redshift==0.7.1 \
|
|
||||||
superset==${SUPERSET_VERSION} && \
|
|
||||||
rm requirements.txt
|
|
||||||
|
|
||||||
# Configure Filesystem
|
# Configure Filesystem
|
||||||
COPY superset /usr/local/bin
|
COPY superset /usr/local/bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user