Updated base image
rodzic
586ebebf16
commit
024c429579
|
@ -1,4 +1,4 @@
|
||||||
FROM amd64/alpine:3.11
|
FROM amd64/alpine:3.12
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
LABEL org.label-schema.build-date=$BUILD_DATE \
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
FROM alpine:3.11 AS qemu
|
FROM alpine:3.12 AS qemu
|
||||||
RUN apk --update add --no-cache curl
|
RUN apk --update add --no-cache curl
|
||||||
RUN cd /tmp && \
|
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 .
|
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/
|
COPY --from=qemu /tmp/qemu-arm-static /usr/bin/
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
FROM alpine:3.11 AS qemu
|
FROM alpine:3.12 AS qemu
|
||||||
RUN apk --update add --no-cache curl
|
RUN apk --update add --no-cache curl
|
||||||
RUN cd /tmp && \
|
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 .
|
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/
|
COPY --from=qemu /tmp/qemu-arm-static /usr/bin/
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
FROM alpine:3.11 AS qemu
|
FROM alpine:3.12 AS qemu
|
||||||
RUN apk --update add --no-cache curl
|
RUN apk --update add --no-cache curl
|
||||||
RUN cd /tmp && \
|
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 .
|
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/
|
COPY --from=qemu /tmp/qemu-aarch64-static /usr/bin/
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
|
@ -7,7 +7,6 @@ docker pull virtualzone/docker-container-stats
|
||||||
docker run \
|
docker run \
|
||||||
-d \
|
-d \
|
||||||
-p 8080:8080 \
|
-p 8080:8080 \
|
||||||
--volume=/var/lib/docker/:/var/lib/docker:ro \
|
|
||||||
--volume=/var/run/docker.sock:/var/run/docker.sock:ro \
|
--volume=/var/run/docker.sock:/var/run/docker.sock:ro \
|
||||||
--volume=/home/docker/storage/stats/db:/opt/docker-stats/db \
|
--volume=/home/docker/storage/stats/db:/opt/docker-stats/db \
|
||||||
--name stats \
|
--name stats \
|
||||||
|
@ -28,7 +27,6 @@ services:
|
||||||
environment:
|
environment:
|
||||||
STATS_UPDATE_INTERVAL: 10
|
STATS_UPDATE_INTERVAL: 10
|
||||||
volumes:
|
volumes:
|
||||||
- '/var/lib/docker/:/var/lib/docker:ro'
|
|
||||||
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
||||||
- '/home/docker/storage/stats/db:/opt/docker-stats/db'
|
- '/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).
|
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.
|
Mounting the volume /opt/docker-stats/db is optional. You can use it if you want to persist the SQLite database.
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue