Skip to content

Commit 6cec463

Browse files
authored
feat: add docker build-push actions for SRE scenario tools (#49)
--------- Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com>
1 parent 124971a commit 6cec463

File tree

4 files changed

+75
-3
lines changed

4 files changed

+75
-3
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ updates:
88

99
- package-ecosystem: docker
1010
directories:
11-
- sre/tools/**/
11+
- sre/tools/kubernetes-topology-mapper/
12+
- sre/tools/elasticsearch-dummy-app/
1213
- ciso/
1314
schedule:
1415
interval: weekly
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build and push SRE tool images
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- sre/tools/kubernetes-topology-mapper/*
9+
- sre/tools/astronomy-shop-checkout-service/*
10+
11+
jobs:
12+
topology-monitor:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Login to Quay.io
16+
uses: docker/login-action@v3
17+
with:
18+
registry: quay.io
19+
username: ${{ secrets.QUAY_USERNAME }}
20+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v3
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
- name: Build and push Kubernetes Topology Mapper
26+
uses: docker/build-push-action@v6
27+
with:
28+
context: sre/tools/kubernetes-topology-mapper
29+
platform:
30+
- linux/amd64
31+
- linux/arm64
32+
push: true
33+
tags:
34+
- it-bench/topology-monitor:0.0.1
35+
- it-bench/topology-monitor:latest
36+
unsupported-checkout-service:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Login to Quay.io
40+
uses: docker/login-action@v3
41+
with:
42+
registry: quay.io
43+
username: ${{ secrets.QUAY_USERNAME }}
44+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
45+
- name: Set up QEMU
46+
uses: docker/setup-qemu-action@v3
47+
- name: Set up Docker Buildx
48+
uses: docker/setup-buildx-action@v3
49+
- name: Build and push Unsupported Astronomy Shop Checkout Service image (amd)
50+
uses: docker/build-push-action@v6
51+
with:
52+
context: sre/tools/astronomy-shop-checkout-service
53+
platform:
54+
- linux/amd64
55+
push: true
56+
tags:
57+
- it-bench/unsupported-checkout-service-amd64:0.0.1
58+
- it-bench/unsupported-checkout-service-amd64:latest
59+
- name: Build and push Unsupported Astronomy Shop Checkout Service image (arm)
60+
uses: docker/build-push-action@v6
61+
with:
62+
context: sre/tools/astronomy-shop-checkout-service
63+
platform:
64+
- linux/arm64
65+
push: true
66+
tags:
67+
- it-bench/unsupported-checkout-service-arm64:0.0.1
68+
- it-bench/unsupported-checkout-service-arm64:latest
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM ghcr.io/open-telemetry/demo:1.12.0-checkoutservice
2+
3+
ENTRYPOINT [ "./checkout" ]

sre/tools/kubernetes-topology-mapper/charts/kubernetes-topology-mapper/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ spec:
1818
fsGroup: 1000
1919
containers:
2020
- name: topology-monitor
21-
image: quay.io/it-bench/topology-monitor:latest
21+
image: quay.io/it-bench/topology-monitor:0.0.1
2222
imagePullPolicy: Always
2323
command: ["python"]
24-
args:
24+
args:
2525
- "main.py"
2626
- "--data-dir=/app/topology_data"
2727
- "--interval=300"

0 commit comments

Comments
 (0)