Updated base image

pull/20/head
Heiner Peuser 2020-11-28 08:11:42 +01:00
rodzic 586ebebf16
commit 024c429579
5 zmienionych plików z 8 dodań i 10 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
FROM amd64/alpine:3.11
FROM amd64/alpine:3.12
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \

Wyświetl plik

@ -1,9 +1,9 @@
FROM alpine:3.11 AS qemu
FROM alpine:3.12 AS qemu
RUN apk --update add --no-cache curl
RUN cd /tmp && \
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .
FROM arm32v6/alpine:3.11
FROM arm32v6/alpine:3.12
COPY --from=qemu /tmp/qemu-arm-static /usr/bin/
ARG BUILD_DATE
ARG VCS_REF

Wyświetl plik

@ -1,9 +1,9 @@
FROM alpine:3.11 AS qemu
FROM alpine:3.12 AS qemu
RUN apk --update add --no-cache curl
RUN cd /tmp && \
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .
FROM arm32v7/alpine:3.11
FROM arm32v7/alpine:3.12
COPY --from=qemu /tmp/qemu-arm-static /usr/bin/
ARG BUILD_DATE
ARG VCS_REF

Wyświetl plik

@ -1,9 +1,9 @@
FROM alpine:3.11 AS qemu
FROM alpine:3.12 AS qemu
RUN apk --update add --no-cache curl
RUN cd /tmp && \
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-aarch64/qemu-aarch64-static .
FROM arm64v8/alpine:3.11
FROM arm64v8/alpine:3.12
COPY --from=qemu /tmp/qemu-aarch64-static /usr/bin/
ARG BUILD_DATE
ARG VCS_REF

Wyświetl plik

@ -7,7 +7,6 @@ docker pull virtualzone/docker-container-stats
docker run \
-d \
-p 8080:8080 \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/var/run/docker.sock:/var/run/docker.sock:ro \
--volume=/home/docker/storage/stats/db:/opt/docker-stats/db \
--name stats \
@ -28,7 +27,6 @@ services:
environment:
STATS_UPDATE_INTERVAL: 10
volumes:
- '/var/lib/docker/:/var/lib/docker:ro'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- '/home/docker/storage/stats/db:/opt/docker-stats/db'
```
@ -36,7 +34,7 @@ services:
To view your stats, open a web browser and visit http://localhost:8080 (replace localhost with your docker host's hostname or ip address).
Mounting the volumes /var/lib/docker and /var/run/docker.sock (read-only) is required so that the docker container can retrieve the statistics for the containers.
Mounting the volume /var/run/docker.sock (read-only) is required so that the docker container can retrieve the statistics for the containers.
Mounting the volume /opt/docker-stats/db is optional. You can use it if you want to persist the SQLite database.