From c49c0303ca6f2d6bdd92f707ff57e59b1b8a8b46 Mon Sep 17 00:00:00 2001 From: meowjesty Date: Wed, 8 Jan 2025 17:34:15 -0300 Subject: [PATCH] Add some files to the python image so we can test FsPolicy. --- python/Dockerfile | 4 ++-- python/file.local | 1 + python/file.not-found | 1 + python/file.read-only | 1 + python/file.read-write | 1 + python/test.txt | 2 +- 6 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 python/file.local create mode 100644 python/file.not-found create mode 100644 python/file.read-only create mode 100644 python/file.read-write diff --git a/python/Dockerfile b/python/Dockerfile index cd07e16..ab78441 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -1,5 +1,5 @@ FROM python:3.9-slim-buster WORKDIR /app -COPY app.py test.txt . +COPY app.py test.txt file.local file.not-found file.read-only file.read-write . RUN pip3 install flask -ENTRYPOINT ["python3", "app.py"] \ No newline at end of file +ENTRYPOINT ["python3", "app.py"] diff --git a/python/file.local b/python/file.local new file mode 100644 index 0000000..0d205c0 --- /dev/null +++ b/python/file.local @@ -0,0 +1 @@ +Duke Siemowit diff --git a/python/file.not-found b/python/file.not-found new file mode 100644 index 0000000..a0029c0 --- /dev/null +++ b/python/file.not-found @@ -0,0 +1 @@ +Duke Siemomysł diff --git a/python/file.read-only b/python/file.read-only new file mode 100644 index 0000000..89bece0 --- /dev/null +++ b/python/file.read-only @@ -0,0 +1 @@ +Duke Lestek diff --git a/python/file.read-write b/python/file.read-write new file mode 100644 index 0000000..b6438ea --- /dev/null +++ b/python/file.read-write @@ -0,0 +1 @@ +Duke Mieszko I diff --git a/python/test.txt b/python/test.txt index 08e00ed..1b37687 100644 --- a/python/test.txt +++ b/python/test.txt @@ -1 +1 @@ -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \ No newline at end of file +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.