Skip to content

Commit 1bc2b04

Browse files
authored
chore: address vulnerability issues (#5)
* chore: update package versions for vulnerability Signed-off-by: Takumi Yanagawa <yana@jp.ibm.com> * fix: typo Signed-off-by: Takumi Yanagawa <yana@jp.ibm.com> * chore: make setuptools up to date Signed-off-by: Takumi Yanagawa <yana@jp.ibm.com> * fix: missing to mount requirements.txt Signed-off-by: Takumi Yanagawa <yana@jp.ibm.com> --------- Signed-off-by: Takumi Yanagawa <yana@jp.ibm.com>
1 parent d59c561 commit 1bc2b04

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

docker/agent-harness/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM python:3.11.10-slim
1+
FROM python:3.11-slim
22

33
RUN apt update -y && apt install -y curl gnupg2
44
RUN mkdir /etc/agent-benchmark
55
COPY itbench_utilities /etc/agent-benchmark/itbench_utilities
66
COPY pyproject.toml /etc/agent-benchmark/pyproject.toml
77
COPY docker/agent-harness/entrypoint.sh /etc/entrypoint.sh
88
RUN chmod +x /etc/entrypoint.sh
9-
RUN pip install --upgrade setuptools==70.0.0
9+
RUN pip install --upgrade setuptools
1010
RUN pip install -e /etc/agent-benchmark --no-cache-dir
1111
RUN ln -sf /bin/bash /bin/sh
1212

docker/agent-harness/sre_agent_harness/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RUN apt update -y && apt install -y curl gnupg2 jq
66
RUN mkdir /app/agent-benchmark
77
COPY itbench_utilities /app/agent-benchmark/itbench_utilities
88
COPY pyproject.toml /app/agent-benchmark/pyproject.toml
9+
RUN pip install --upgrade setuptools
910
RUN pip install -e /app/agent-benchmark --no-cache-dir
1011
RUN ln -sf /bin/bash /bin/sh
1112

docker/bench-runner/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11.10-slim
1+
FROM python:3.11-slim
22

33
RUN apt update -y && apt install -y curl gnupg2 unzip
44
RUN mkdir /etc/agent-benchmark
@@ -7,7 +7,7 @@ COPY pyproject.toml /etc/agent-benchmark/pyproject.toml
77
COPY docker/bench-runner/entrypoint.sh /etc/entrypoint.sh
88
COPY docker/bench-runner/config.yaml /etc/config.yaml
99
RUN chmod +x /etc/entrypoint.sh
10-
RUN pip install --upgrade setuptools==70.0.0
10+
RUN pip install --upgrade setuptools
1111
RUN pip install -e /etc/agent-benchmark --no-cache-dir
1212
RUN ln -sf /bin/bash /bin/sh
1313

docker/bench-runner/sre_bench/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
FROM python:3.11.10-slim
1+
FROM python:3.11-slim
22

33
RUN apt update -y && apt install -y curl gnupg2 unzip
44
RUN mkdir /etc/agent-benchmark
55
COPY itbench_utilities /etc/agent-benchmark/itbench_utilities
6+
COPY docker /etc/agent-benchmark/docker
67
COPY pyproject.toml /etc/agent-benchmark/pyproject.toml
8+
RUN pip install --upgrade setuptools
79
RUN pip install -e /etc/agent-benchmark --no-cache-dir
8-
RUN pip install -r /etc/agent-benchmark/itbench_utilities/bench_runner/sre_bench/requirements.txt --no-cache-dir
9-
RUN ansible-galaxy install -r /etc/agent-benchmark/itbench_utilities/bench_runner/sre_bench/requirements.yaml
10+
RUN pip install -r /etc/agent-benchmark/docker/bench-runner/sre_bench/requirements.txt --no-cache-dir
11+
RUN ansible-galaxy install -r /etc/agent-benchmark/docker/bench-runner/sre_bench/requirements.yaml
1012
RUN ln -sf /bin/bash /bin/sh
1113

1214
# TODO: consider how to handle deps dynamically

docker/bench-runner/sre_bench/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible==10.6.0
1+
ansible==11.4.0
22
boto==2.49.0
33
boto3==1.35.62
44
jsonschema==4.23.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ classifiers = [
1313

1414
dependencies = [
1515
"fastapi==0.115.11",
16-
"Jinja2==3.1.4",
16+
"Jinja2==3.1.6",
1717
"pandas==2.2.3",
1818
"pydantic==2.9.1",
1919
"pydantic-settings==2.7.1",

0 commit comments

Comments
 (0)