Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
version: 2
version: 2.1

workflows:
build-and-publish-workflow:
jobs:
- build-and-publish:
context:
- Internal

jobs:
build-and-publish:
Expand All @@ -22,12 +29,4 @@ jobs:
-p "${DOCKER_PASS}" \
"${TARGET%%/*}"
docker build --build-arg GRAFANA_VERSION -t "${TARGET}" .
docker push "${TARGET}"

workflows:
version: 2
build-and-publish-workflow:
jobs:
- build-and-publish:
context:
- Internal
docker push "${TARGET}"
51 changes: 26 additions & 25 deletions grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,48 @@ USER root

RUN apk --no-cache upgrade
RUN apk add --quiet --no-cache \
ca-certificates wget curl jq udev ttf-opensans chromium; \
update-ca-certificates;
ca-certificates wget curl jq udev ttf-opensans chromium; \
update-ca-certificates;


# list of existing plugins
# https://grafana.net/api/plugins?orderBy=name
ENV PLUGINS="\
alexanderzobnin-zabbix-app \
grafana-azure-data-explorer-datasource \
grafana-bigquery-datasource \
grafana-github-datasource \
grafana-googlesheets-datasource \
grafana-iot-sitewise-datasource \
grafana-strava-datasource \
grafana-timestream-datasource \
grafana-x-ray-datasource \
marcusolsson-csv-datasource \
oci-logs-datasource \
oci-metrics-datasource \
redis-datasource \
vertamedia-clickhouse-datasource \
vertica-grafana-datasource \
"
alexanderzobnin-zabbix-app \
grafana-azure-data-explorer-datasource \
grafana-bigquery-datasource \
grafana-github-datasource \
grafana-googlesheets-datasource \
grafana-iot-sitewise-datasource \
grafana-strava-datasource \
grafana-timestream-datasource \
grafana-x-ray-datasource \
marcusolsson-csv-datasource \
oci-logs-datasource \
oci-metrics-datasource \
redis-datasource \
vertamedia-clickhouse-datasource \
vertica-grafana-datasource \
"

RUN \
for plugin in ${PLUGINS}; do \
grafana-cli plugins install "${plugin}" | \
grep '^✔ Downloaded.*successfully' || \
{ echo "failed ${plugin}"; exit 1; }; \
grafana-cli plugins install "${plugin}" | \
grep '^✔ Downloaded.*successfully' || \
{ echo "failed ${plugin}"; exit 1; }; \
done

# workaround https://github.com/sbueringer/grafana-consul-datasource/issues/29
RUN grafana-cli \
--pluginUrl https://github.com/sbueringer/grafana-consul-datasource/releases/download/v0.2.1/sbueringer-consul-datasource-0.2.1.zip \
plugins install sbueringer-consul-datasource
--pluginUrl https://github.com/sbueringer/grafana-consul-datasource/releases/download/v0.2.1/sbueringer-consul-datasource-0.2.1.zip \
plugins install sbueringer-consul-datasource

# picking upstream Grafana Image Renderer because it can be installed without chromium
# the latest versions only come with chromium so pinning an old one
ENV GF_PLUGIN_RENDERING_CHROME_BIN="/usr/bin/chromium-browser"
RUN grafana-cli \
--pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-linux-x64-glibc-no-chromium.zip \
plugins install grafana-image-renderer
--pluginUrl https://github.com/grafana/grafana-image-renderer/releases/download/v3.8.0/plugin-linux-x64-glibc-no-chromium.zip \
plugins install grafana-image-renderer

# Run as regular user
USER grafana
8 changes: 4 additions & 4 deletions java11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive \
JAVA_HOME=/usr/lib/jvm/zulu11
Expand All @@ -10,15 +10,15 @@ RUN apt-get update -qq && \
apt-get update -qq && \
apt-get install -y python3.12 python3.12-dev libpython3.12-dev && \
curl -s -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
apt-get install -y python3.12-distutils && \
apt-get install -y python3-setuptools && \
python3.12 /tmp/get-pip.py && rm /tmp/get-pip.py && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.12 3 && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 3

# Maven
RUN curl -k -sSL -o - https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz \
RUN curl -k -sSL -o - https://dlcdn.apache.org/maven/maven-3/3.9.11/binaries/apache-maven-3.9.11-bin.tar.gz \
| tar xzf - -C /usr/local/ \
&& ln -sf /usr/local/apache-maven-3.9.4/bin/mvn /usr/bin/mvn
&& ln -sf /usr/local/apache-maven-3.9.11/bin/mvn /usr/bin/mvn

# Zulu Java 11
# https://docs.azul.com/zulu/zuludocs/#ZuluUserGuide/InstallingZulu/InstallOnLinuxUsingAPTRepository.htm
Expand Down