Merge ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:7.4-21.04 into ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:edge

Proposed by Sergio Durigan Junior
Status: Superseded
Proposed branch: ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:7.4-21.04
Merge into: ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:edge
Diff against target: 43 lines (+8/-3)
1 file modified
Dockerfile (+8/-3)
Reviewer Review Type Date Requested Status
Bryce Harrington Pending
Canonical Server Pending
Review via email: mp+398403@code.launchpad.net

Description of the change

This updates grafana to 7.4.1 and the base image to hirsute.

Tested with our unit tests. I've also set up a docker container with the image and made sure that I could access the site and view everything there.

To post a comment you must log in.

Unmerged commits

ca9476a... by Sergio Durigan Junior

Update Dockerfile to use hirsute, and grafana to 7.4.1

The grafana snap has been recently updated to 7.4.1, and we are now
using hirsute as the base for the images.

Signed-off-by: Sergio Durigan Junior <email address hidden>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/Dockerfile b/Dockerfile
index 5ad296d..b2dba39 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@
4# and adapted to use the grafana snap built from4# and adapted to use the grafana snap built from
5# https://github.com/auria/snap-grafana and installed from5# https://github.com/auria/snap-grafana and installed from
6# https://snapcraft.io/grafana6# https://snapcraft.io/grafana
7FROM ubuntu:focal AS snap-installer7FROM ubuntu:hirsute AS snap-installer
88
9RUN apt-get update && \9RUN apt-get update && \
10 DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y && \10 DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y && \
@@ -18,7 +18,7 @@ RUN curl -L $(curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/sna
18RUN mkdir -p /snap && unsquashfs -d /snap/grafana grafana.snap18RUN mkdir -p /snap && unsquashfs -d /snap/grafana grafana.snap
1919
2020
21FROM ubuntu:focal21FROM ubuntu:hirsute
2222
23EXPOSE 300023EXPOSE 3000
24LABEL maintainer="Ubuntu Server team <ubuntu-server@lists.ubuntu.com>"24LABEL maintainer="Ubuntu Server team <ubuntu-server@lists.ubuntu.com>"
@@ -57,7 +57,8 @@ RUN mkdir -p "$GF_PATHS_HOME/.aws" && \
57 "$GF_PATHS_DATA" && \57 "$GF_PATHS_DATA" && \
58 cp conf/defaults.ini "$GF_PATHS_CONFIG" && \58 cp conf/defaults.ini "$GF_PATHS_CONFIG" && \
59 chown -R grafana:grafana "$GF_PATHS_DATA" "$GF_PATHS_HOME/.aws" "$GF_PATHS_LOGS" "$GF_PATHS_PLUGINS" "$GF_PATHS_PROVISIONING" && \59 chown -R grafana:grafana "$GF_PATHS_DATA" "$GF_PATHS_HOME/.aws" "$GF_PATHS_LOGS" "$GF_PATHS_PLUGINS" "$GF_PATHS_PROVISIONING" && \
60 chmod -R 777 "$GF_PATHS_DATA" "$GF_PATHS_HOME/.aws" "$GF_PATHS_LOGS" "$GF_PATHS_PLUGINS" "$GF_PATHS_PROVISIONING"60 chmod -R 777 "$GF_PATHS_DATA" "$GF_PATHS_HOME/.aws" "$GF_PATHS_LOGS" "$GF_PATHS_PLUGINS" "$GF_PATHS_PROVISIONING" && \
61 mkdir -p /usr/share/rocks
6162
62# XXX - removed from above RUN, not in the snap yet63# XXX - removed from above RUN, not in the snap yet
63RUN if [ -f conf/ldap.toml ]; then cp conf/ldap.toml /etc/grafana/ldap.toml; fi64RUN if [ -f conf/ldap.toml ]; then cp conf/ldap.toml /etc/grafana/ldap.toml; fi
@@ -66,6 +67,10 @@ COPY --from=snap-installer /snap/grafana/bin/grafana-server /snap/grafana/bin/gr
66COPY --from=snap-installer /snap/grafana/public public67COPY --from=snap-installer /snap/grafana/public public
67COPY --from=snap-installer /snap/grafana/tools tools68COPY --from=snap-installer /snap/grafana/tools tools
6869
70# Copy the manifest files from the snap
71COPY --from=snap-installer /snap/grafana/snap/snapcraft.yaml /usr/share/rocks/
72COPY --from=snap-installer /snap/grafana/snap/manifest.yaml /usr/share/rocks/
73
69COPY bin/docker-run.sh /run.sh74COPY bin/docker-run.sh /run.sh
7075
71USER grafana76USER grafana

Subscribers

People subscribed via source and target branches

to all changes: