1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 18:25:09 +00:00

Now based on Alpine Linux 3.12 with s6 overlay

This commit is contained in:
CrazyMax 2020-09-03 22:35:39 +02:00
parent 163dcdbb23
commit eecc7d8a59
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
3 changed files with 3 additions and 14 deletions

View file

@ -26,7 +26,7 @@ jobs:
id: prepare
run: |
DOCKER_IMAGE=librenms/librenms
DOCKER_PLATFORMS=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le
DOCKER_PLATFORMS=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
VERSION=edge
if [[ $GITHUB_REF == refs/tags/* ]]; then

View file

@ -1,4 +1,4 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.12
FROM --platform=${TARGETPLATFORM:-linux/amd64} crazymax/alpine-s6:3.12
ARG BUILD_DATE
ARG VCS_REF
@ -87,18 +87,6 @@ RUN apk --update --no-cache add \
mariadb-dev \
musl-dev \
python3-dev \
&& S6_ARCH=$(case ${TARGETPLATFORM:-linux/amd64} in \
"linux/amd64") echo "amd64" ;; \
"linux/arm/v6") echo "arm" ;; \
"linux/arm/v7") echo "armhf" ;; \
"linux/arm64") echo "aarch64" ;; \
"linux/386") echo "x86" ;; \
"linux/ppc64le") echo "ppc64le" ;; \
*) echo "" ;; esac) \
&& echo "S6_ARCH=$S6_ARCH" \
&& wget -q "https://github.com/just-containers/s6-overlay/releases/latest/download/s6-overlay-${S6_ARCH}.tar.gz" -qO "/tmp/s6-overlay-${S6_ARCH}.tar.gz" \
&& tar xzf /tmp/s6-overlay-${S6_ARCH}.tar.gz -C / \
&& s6-echo "s6-overlay installed" \
&& pip3 install --upgrade pip \
&& pip3 install python-memcached mysqlclient --upgrade \
&& curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \

View file

@ -51,6 +51,7 @@ Image: librenms/librenms:latest
- linux/arm64
- linux/386
- linux/ppc64le
- linux/s390x
```
## Documentation