Block a user
grafana (0.1)
Published 2024-04-09 22:10:05 +03:00 by andreas
Installation
docker pull gitea.phadric.de/andreas/grafana:0.1sha256:b64bc18fc4bba09ae9379f367d50d9fb55652a2ec5c066c99d98c9dfe70aad94
Images
| Digest | OS / Arch | Size |
|---|---|---|
| 85136ca70b | linux/amd64 | 61 MiB |
Image Layers ( linux/amd64)
| ADD file:7fd90c097e2c4587dee91726d71abc02fa1aa6a3a3395c862206a4e14e0c299c in / |
| CMD ["/bin/sh"] |
| ARG GF_UID=472 |
| ARG GF_GID=0 |
| ENV PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GF_PATHS_CONFIG=/etc/grafana/grafana.ini GF_PATHS_DATA=/var/lib/grafana GF_PATHS_HOME=/usr/share/grafana GF_PATHS_LOGS=/var/log/grafana GF_PATHS_PLUGINS=/var/lib/grafana/plugins GF_PATHS_PROVISIONING=/etc/grafana/provisioning |
| WORKDIR /usr/share/grafana |
| RUN |2 GF_UID=472 GF_GID=0 /bin/sh -c apk add --no-cache ca-certificates bash tzdata && apk add --no-cache openssl musl-utils # buildkit |
| RUN |2 GF_UID=472 GF_GID=0 /bin/sh -c if [ `arch` = "x86_64" ]; then apk add --no-cache libaio libnsl && ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1 && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk -O /tmp/glibc-2.30-r0.apk && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-bin-2.30-r0.apk -O /tmp/glibc-bin-2.30-r0.apk && apk add --no-cache --allow-untrusted /tmp/glibc-2.30-r0.apk /tmp/glibc-bin-2.30-r0.apk && rm -f /tmp/glibc-2.30-r0.apk && rm -f /tmp/glibc-bin-2.30-r0.apk && rm -f /lib/ld-linux-x86-64.so.2 && rm -f /etc/ld.so.cache; fi # buildkit |
| COPY /tmp/grafana /usr/share/grafana # buildkit |
| RUN |2 GF_UID=472 GF_GID=0 /bin/sh -c if [ ! $(getent group "$GF_GID") ]; then addgroup -S -g $GF_GID grafana; fi # buildkit |
| RUN |2 GF_UID=472 GF_GID=0 /bin/sh -c export GF_GID_NAME=$(getent group $GF_GID | cut -d':' -f1) && mkdir -p "$GF_PATHS_HOME/.aws" && adduser -S -u $GF_UID -G "$GF_GID_NAME" grafana && mkdir -p "$GF_PATHS_PROVISIONING/datasources" "$GF_PATHS_PROVISIONING/dashboards" "$GF_PATHS_PROVISIONING/notifiers" "$GF_PATHS_PROVISIONING/plugins" "$GF_PATHS_LOGS" "$GF_PATHS_PLUGINS" "$GF_PATHS_DATA" && cp "$GF_PATHS_HOME/conf/sample.ini" "$GF_PATHS_CONFIG" && cp "$GF_PATHS_HOME/conf/ldap.toml" /etc/grafana/ldap.toml && chown -R "grafana:$GF_GID_NAME" "$GF_PATHS_DATA" "$GF_PATHS_HOME/.aws" "$GF_PATHS_LOGS" "$GF_PATHS_PLUGINS" "$GF_PATHS_PROVISIONING" && chmod -R 777 "$GF_PATHS_DATA" "$GF_PATHS_HOME/.aws" "$GF_PATHS_LOGS" "$GF_PATHS_PLUGINS" "$GF_PATHS_PROVISIONING" # buildkit |
| EXPOSE map[3000/tcp:{}] |
| COPY ./run.sh /run.sh # buildkit |
| USER 472 |
| ENTRYPOINT ["/run.sh"] |
| COPY datasources /etc/grafana/provisioning/datasources/ # buildkit |
| COPY swarmprom_dashboards.yml /etc/grafana/provisioning/dashboards/ # buildkit |
| COPY dashboards /etc/grafana/dashboards/ # buildkit |
| ENV GF_SECURITY_ADMIN_PASSWORD=admin GF_SECURITY_ADMIN_USER=admin GF_PATHS_PROVISIONING=/etc/grafana/provisioning/ |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2024-04-09T19:09:56.998Z |
| org.opencontainers.image.description | Docker Swarm - Promitheus, Grafana, Node Exporter, Loki, Promtail, Caddy |
| org.opencontainers.image.licenses | |
| org.opencontainers.image.revision | 5136300a7fba132d363105da3492aeff7eeb2bae |
| org.opencontainers.image.source | https://gitea.phadric.de/andreas/promitheus_monitoring |
| org.opencontainers.image.title | promitheus_monitoring |
| org.opencontainers.image.url | https://gitea.phadric.de/andreas/promitheus_monitoring |
| org.opencontainers.image.version | 0.1.0 |