2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 21:33:02 +01:00
This commit is contained in:
kev
2019-10-20 11:31:17 +08:00
parent 8f7eabdc88
commit 392b574128
10 changed files with 137 additions and 66 deletions

View File

@@ -22,7 +22,7 @@ RUN set -xe \
python3-dev \ python3-dev \
&& pip install cython numpy psycopg2-binary \ && pip install cython numpy psycopg2-binary \
&& pip install apache-airflow[${AIRFLOW_EXTRAS}]==${AIRFLOW_VERSION} \ && pip install apache-airflow[${AIRFLOW_EXTRAS}]==${AIRFLOW_VERSION} \
&& pip install "websocket-client<0.55.0,>=0.35" \ && pip install "websocket-client>=0.35,<0.55.0" \
&& apk del \ && apk del \
build-base \ build-base \
cyrus-sasl-dev \ cyrus-sasl-dev \

View File

@@ -2,22 +2,23 @@
# Dockerfile for gogs-arm # Dockerfile for gogs-arm
# #
FROM easypi/alpine-arm FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ENV GOSU_VERSION 1.11 ENV GOSU_VERSION 1.11
ENV GOGS_VERSION 0.11.91 ENV GOGS_VERSION 0.11.91
ENV GOGS_CUSTOM /data/gogs ENV GOGS_CUSTOM /data/gogs
RUN apk add --no-cache bash \ RUN apk add --no-cache \
ca-certificates \ bash \
curl \ ca-certificates \
git \ curl \
linux-pam \ git \
openssh \ linux-pam \
s6 \ openssh \
socat \ s6 \
tar socat \
tar
RUN set -xe \ RUN set -xe \
&& adduser -H -D -g 'Gogs Git User' -h /data/git -s /bin/bash git \ && adduser -H -D -g 'Gogs Git User' -h /data/git -s /bin/bash git \
@@ -32,9 +33,9 @@ RUN set -xe \
&& mkdir /app/ \ && mkdir /app/ \
&& cd /app/ \ && cd /app/ \
&& curl -LO https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/raspi_armv7.zip \ && curl -LO https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/raspi_armv7.zip \
&& unzip raspi2_armv6.zip \ && unzip raspi_armv7.zip \
&& rm raspi2_armv6.zip \ && rm raspi_armv7.zip \
&& ln -s /lib/libc.musl-armhf.so.1 /lib/ld-linux-armhf.so.3 && ln -s /lib/libc.musl-armv7.so.1 /lib/ld-linux-armhf.so.3
RUN set -xe \ RUN set -xe \
&& cd /app/gogs/ \ && cd /app/gogs/ \

View File

@@ -2,22 +2,25 @@
# Dockerfile for hass-arm (Home Assistant) # Dockerfile for hass-arm (Home Assistant)
# #
FROM easypi/alpine-arm FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ENV HASS_VERSION=0.100.2
ENV HASS_CLI_VERSION=3.1.0
RUN set -xe \ RUN set -xe \
&& apk update \ && apk update \
&& apk add --no-cache ca-certificates \ && apk add --no-cache \
build-base \ ca-certificates \
libffi-dev \ build-base \
linux-headers \ libffi-dev \
openssl-dev \ linux-headers \
python3 \ openssl-dev \
python3-dev \ python3 \
&& pip3 install --no-cache-dir homeassistant \ python3-dev \
&& wget https://github.com/home-assistant/hassio-cli/releases/download/1.3.1/hassio_armhf -O /usr/local/bin/hassio && pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \
&& wget https://github.com/home-assistant/hassio-cli/releases/download/${HASS_CLI_VERSION}/hassio_armhf -O /usr/local/bin/hassio
VOLUME /etc/hass VOLUME /etc/hass
EXPOSE 8123 EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"] ENTRYPOINT ["hass", "--config", "/etc/hass"]

View File

@@ -2,37 +2,42 @@
# Dockerfile for hass-arm (Home Assistant) # Dockerfile for hass-arm (Home Assistant)
# #
FROM resin/rpi-raspbian:jessie FROM balenalib/rpi-raspbian:buster
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ENV HASS_VERSION=0.100.2
ENV HASS_CLI_VERSION=3.1.0
RUN set -xe \ RUN set -xe \
&& apt-get update \ && apt-get update \
&& apt-get install -y build-essential \ && apt-get install -y \
bluez \ build-essential \
curl \ bluez \
libbluetooth3 \ curl \
libbluetooth-dev \ libbluetooth3 \
libboost-python-dev \ libbluetooth-dev \
libboost-thread-dev \ libboost-python-dev \
libglib2.0 \ libboost-thread-dev \
libglib2.0-dev \ libglib2.0 \
pkg-config \ libglib2.0-dev \
python-dev \ pkg-config \
python3-dev \ python-dev \
python3-dev \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \ && curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip3 install --no-cache-dir gattlib \ && pip3 install --no-cache-dir \
homeassistant \ gattlib \
pybluez \ homeassistant \
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.4 \ pybluez \
&& apt-get remove -y curl \ && setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.7 \
libbluetooth-dev \ && apt-get remove -y \
libboost-python-dev \ curl \
libboost-thread-dev \ libbluetooth-dev \
libglib2.0-dev \ libboost-python-dev \
pkg-config \ libboost-thread-dev \
python-dev libglib2.0-dev \
pkg-config \
python-dev
VOLUME /etc/hass VOLUME /etc/hass
EXPOSE 8123 EXPOSE 8123
ENTRYPOINT ["hass", "--config", "/etc/hass"] ENTRYPOINT ["hass", "--config", "/etc/hass"]

View File

@@ -2,7 +2,7 @@
# Dockerfile for hubot-arm # Dockerfile for hubot-arm
# #
FROM easypi/alpine-arm FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ENV HUBOT_NAME=Hubot ENV HUBOT_NAME=Hubot

View File

@@ -2,21 +2,22 @@
# Dockerfile for jenkins-arm # Dockerfile for jenkins-arm
# #
FROM easypi/alpine-arm:edge FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ENV JENKINS_HOME /var/jenkins_home ENV JENKINS_HOME /var/jenkins_home
RUN set -xe \ RUN set -xe \
&& apk add --no-cache bash \ && apk add --no-cache \
coreutils \ bash \
curl \ coreutils \
git \ curl \
openjdk8 \ git \
openssh-client \ openjdk8 \
ttf-dejavu \ openssh-client \
unzip \ ttf-dejavu \
zip \ unzip \
zip \
&& addgroup -g 1000 jenkins \ && addgroup -g 1000 jenkins \
&& adduser -h $JENKINS_HOME -u 1000 -G jenkins -s /bin/bash -D jenkins \ && adduser -h $JENKINS_HOME -u 1000 -G jenkins -s /bin/bash -D jenkins \
&& mkdir -p /usr/share/jenkins \ && mkdir -p /usr/share/jenkins \

View File

@@ -0,0 +1,28 @@
#
# Dockerfile for presto-ce
#
FROM openjdk:8-jre-alpine
MAINTAINER kev <noreply@easypi.pro>
ENV PRESTO_VERSION=322
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar
ENV PRESTO_HOME=/opt/presto
ENV PATH=${PRESTO_HOME}/bin:${PATH}
WORKDIR $PRESTO_HOME
RUN set -xe \
&& apk add --no-cache curl python tar \
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
&& chmod +x ./bin/presto \
&& apk del curl tar
VOLUME /data
EXPOSE 8080
ENTRYPOINT ["launcher"]
CMD ["run"]

View File

@@ -0,0 +1,30 @@
#
# Dockerfile for presto-ce
#
FROM openjdk:8-jre-slim-buster
MAINTAINER kev <noreply@easypi.pro>
ENV PRESTO_VERSION=322
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar
ENV PRESTO_HOME=/opt/presto
ENV PATH=${PRESTO_HOME}/bin:${PATH}
WORKDIR $PRESTO_HOME
RUN set -xe \
&& apt-get update \
&& apt-get install -y curl less python \
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
&& chmod +x ./bin/presto \
&& apt-get remove -y curl \
&& rm -rf /var/lib/apt/lists/*
VOLUME /data
EXPOSE 8080
ENTRYPOINT ["launcher"]
CMD ["run"]

View File

@@ -37,6 +37,7 @@ RUN set -xe \
libldap-2.4-2 \ libldap-2.4-2 \
libldap2-dev \ libldap2-dev \
libmariadb-dev \ libmariadb-dev \
libmariadb-dev-compat \
libmariadb3 \ libmariadb3 \
libpq-dev \ libpq-dev \
libpq5 \ libpq5 \
@@ -46,10 +47,12 @@ RUN set -xe \
libssl1.1 \ libssl1.1 \
python3 \ python3 \
python3-dev \ 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 \ && 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} \ && pip3 install --no-cache-dir \
apache-superset==${SUPERSET_VERSION} \
mysqlclient \
psycopg2-binary \
pyhive[hive,presto] \
&& apt-get remove -y \ && apt-get remove -y \
build-essential \ build-essential \
freetds-dev \ freetds-dev \

View File

@@ -20,7 +20,7 @@ services:
restart: always restart: always
superset: superset:
image: amancevice/superset:0.34.0 image: amancevice/superset:0.34.1
ports: ports:
- "8088:8088" - "8088:8088"
volumes: volumes:
@@ -33,7 +33,7 @@ services:
restart: always restart: always
worker: worker:
image: amancevice/superset:0.34.0 image: amancevice/superset:0.34.1
command: celery worker command: celery worker
volumes: volumes:
- ./data/superset:/etc/superset - ./data/superset:/etc/superset