Skip to content

Commit aabd80b

Browse files
authored
chore: update base image of topology mapper to minimal ubi9 image (#78)
* bump: update SRE tools to v0.0.3 Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> * chore: update base image of topology mapper to minimal ubi9 image Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> * bump: update topology mapper dependencies Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> * chore: let dependabot update the deployment file Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> --------- Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com>
1 parent 377b0bd commit aabd80b

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ updates:
1313
directories:
1414
- "ciso/"
1515
- "sre/tools/kubernetes-topology-mapper/"
16+
- "sre/tools/kubernetes-topology-mapper/charts/kubernetes-topology-mapper/templates/"
1617
groups:
1718
docker-production-dependencies:
1819
dependency-type: "production"
@@ -39,7 +40,5 @@ updates:
3940
dependency-type: "production"
4041
pip-development-dependencies:
4142
dependency-type: "development"
42-
exclude-patterns:
43-
- elasticsearch
4443
schedule:
4544
interval: "daily"

.github/workflows/sre-build-push-images.yaml renamed to .github/workflows/sre-build-push-tools.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
linux/arm64
3636
push: true
3737
tags: |
38-
quay.io/it-bench/topology-monitor:0.0.2
38+
quay.io/it-bench/topology-monitor:0.0.3
3939
quay.io/it-bench/topology-monitor:latest
4040
unsupported-checkout-service:
4141
runs-on: ubuntu-latest
@@ -62,7 +62,7 @@ jobs:
6262
linux/amd64
6363
push: true
6464
tags: |
65-
quay.io/it-bench/unsupported-checkout-service-amd64:0.0.2
65+
quay.io/it-bench/unsupported-checkout-service-amd64:0.0.3
6666
quay.io/it-bench/unsupported-checkout-service-amd64:latest
6767
- name: Build and push Unsupported Astronomy Shop Checkout Service image (arm)
6868
uses: docker/build-push-action@v6
@@ -74,5 +74,5 @@ jobs:
7474
linux/arm64
7575
push: true
7676
tags: |
77-
quay.io/it-bench/unsupported-checkout-service-arm64:0.0.2
77+
quay.io/it-bench/unsupported-checkout-service-arm64:0.0.3
7878
quay.io/it-bench/unsupported-checkout-service-arm64:latest

sre/roles/fault_injection/tasks/run_unsupported_image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
patch:
7070
- op: replace
7171
path: /spec/template/spec/containers/0/image
72-
value: quay.io/it-bench/unsupported-checkout-service-{{ image_arch }}:0.0.2
72+
value: quay.io/it-bench/unsupported-checkout-service-{{ image_arch }}:0.0.3
7373
tags:
7474
- incident_23
7575
when:

sre/tools/kubernetes-topology-mapper/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
FROM registry.access.redhat.com/ubi9/python-312:9.5-1744198409
1+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5-1742914212
22

33
ENV DATA_DIRECTORY /app/topology_data
44

55
WORKDIR /app
66

7+
RUN microdnf update -y && \
8+
microdnf install -y python3.12 python3.12-pip
9+
710
COPY requirements.txt requirements.txt
8-
RUN pip install --no-cache-dir -r requirements.txt
11+
RUN python3.12 -m pip install --no-cache-dir -r requirements.txt
912

1013
COPY __init__.py __init__.py
1114
COPY app.py app.py
@@ -24,4 +27,4 @@ RUN mkdir ${DATA_DIRECTORY} && \
2427

2528
USER 1001
2629

27-
CMD ["python", "main.py"]
30+
CMD ["python3.12", "main.py"]
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
kubernetes==29.0.0
2-
openshift-client==1.0.18
1+
kubernetes==32.0.1
2+
openshift-client==1.0.24
33
openshift==0.13.2
4-
networkx==3.2.1
5-
Flask==3.0.0
6-
PyYAML==6.0.1
4+
networkx==3.4.2
5+
Flask==3.1.0
6+
PyYAML==6.0.2

0 commit comments

Comments
 (0)