Skip to content

Commit 9d7b4fc

Browse files
authored
Merge pull request #36 from scrapinghub/fix-circleci-workflow
[INFRA-104] Fix CircleCI workflow
2 parents e2eea9d + c736c44 commit 9d7b4fc

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

.circleci/config.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
version: 2
1+
version: 2.1
2+
3+
workflows:
4+
build-and-publish-workflow:
5+
jobs:
6+
- build-and-publish:
7+
context:
8+
- Internal
29

310
jobs:
411
build-and-publish:
@@ -22,12 +29,4 @@ jobs:
2229
-p "${DOCKER_PASS}" \
2330
"${TARGET%%/*}"
2431
docker build --build-arg GRAFANA_VERSION -t "${TARGET}" .
25-
docker push "${TARGET}"
26-
27-
workflows:
28-
version: 2
29-
build-and-publish-workflow:
30-
jobs:
31-
- build-and-publish:
32-
context:
33-
- Internal
32+
docker push "${TARGET}"

grafana/Dockerfile

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,48 @@ USER root
88

99
RUN apk --no-cache upgrade
1010
RUN apk add --quiet --no-cache \
11-
ca-certificates wget curl jq udev ttf-opensans chromium; \
12-
update-ca-certificates;
11+
ca-certificates wget curl jq udev ttf-opensans chromium; \
12+
update-ca-certificates;
1313

1414

1515
# list of existing plugins
1616
# https://grafana.net/api/plugins?orderBy=name
1717
ENV PLUGINS="\
18-
alexanderzobnin-zabbix-app \
19-
grafana-azure-data-explorer-datasource \
20-
grafana-bigquery-datasource \
21-
grafana-github-datasource \
22-
grafana-googlesheets-datasource \
23-
grafana-iot-sitewise-datasource \
24-
grafana-strava-datasource \
25-
grafana-timestream-datasource \
26-
grafana-x-ray-datasource \
27-
marcusolsson-csv-datasource \
28-
oci-logs-datasource \
29-
oci-metrics-datasource \
30-
redis-datasource \
31-
vertamedia-clickhouse-datasource \
32-
vertica-grafana-datasource \
33-
"
18+
alexanderzobnin-zabbix-app \
19+
grafana-azure-data-explorer-datasource \
20+
grafana-bigquery-datasource \
21+
grafana-github-datasource \
22+
grafana-googlesheets-datasource \
23+
grafana-iot-sitewise-datasource \
24+
grafana-strava-datasource \
25+
grafana-timestream-datasource \
26+
grafana-x-ray-datasource \
27+
marcusolsson-csv-datasource \
28+
oci-logs-datasource \
29+
oci-metrics-datasource \
30+
redis-datasource \
31+
vertamedia-clickhouse-datasource \
32+
vertica-grafana-datasource \
33+
"
3434

3535
RUN \
3636
for plugin in ${PLUGINS}; do \
37-
grafana-cli plugins install "${plugin}" | \
38-
grep '^✔ Downloaded.*successfully' || \
39-
{ echo "failed ${plugin}"; exit 1; }; \
37+
grafana-cli plugins install "${plugin}" | \
38+
grep '^✔ Downloaded.*successfully' || \
39+
{ echo "failed ${plugin}"; exit 1; }; \
4040
done
4141

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

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

5354
# Run as regular user
5455
USER grafana

java11/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

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

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

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

0 commit comments

Comments
 (0)