Skip to content

Commit 0e33cf0

Browse files
committed
added option to specify mitm log file name
1 parent 540288f commit 0e33cf0

38 files changed

+40
-1
lines changed

dockerfiles/addons/minlog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
LOG_DIR = os.getenv("MITM_LOG_DIR", "/logs")
55
os.makedirs(LOG_DIR, exist_ok=True)
66

7-
LOG_FILE = os.path.join(LOG_DIR, "minlog.csv")
7+
LOG_FILE_NAME = os.getenv("MITM_LOG_FILE","minlog.csv")
8+
9+
LOG_FILE = os.path.join(LOG_DIR, LOG_FILE_NAME)
810

911
if not os.path.exists(LOG_FILE):
1012
with open(LOG_FILE, "w", newline="", encoding="utf-8") as f:

dockerfiles/bibliothek.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-bibliothek:8080

dockerfiles/blogapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-blogapi:8080

dockerfiles/catwatch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-catwatch:8080

dockerfiles/cwa-verification.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-cwa-verification:8080

dockerfiles/erc20-rest-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-erc20-rest-service:8080

dockerfiles/familie-ba-sak.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-familie-ba-sak:8080

dockerfiles/features-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-features-service:8080

dockerfiles/genome-nexus.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-genome-nexus:8080

dockerfiles/gestaohospital.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
user: "0:0"
55
environment:
66
MITM_LOG_DIR: /custom-logs
7+
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
78
command: >
89
mitmdump
910
--mode reverse:http://sut-gestaohospital:8080

0 commit comments

Comments
 (0)