-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tomáš Houfek
committed
Dec 16, 2024
1 parent
ff47188
commit df20db5
Showing
6 changed files
with
153 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM bitnami/python:3.10 | ||
|
||
RUN mkdir /uploader | ||
|
||
WORKDIR /uploader | ||
|
||
ADD requirements.txt . | ||
ADD main.py . | ||
ADD uploader/ uploader/ | ||
ADD tests/ tests/ | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
USER 1005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: ubuntu-running | ||
spec: | ||
securityContext: | ||
fsGroup: 1000 | ||
runAsNonRoot: true | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsUser: 1005 | ||
runAsGroup: 1000 | ||
fsGroupChangePolicy: "OnRootMismatch" | ||
containers: | ||
- name: ubuntu-running | ||
image: ubuntu:latest | ||
resources: | ||
limits: | ||
memory: 512Mi | ||
cpu: "1" | ||
requests: | ||
memory: 256Mi | ||
cpu: "0.2" | ||
imagePullPolicy: Always | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
command: ["/bin/bash", "-c", "--"] | ||
args: ["while true; do sleep 30; done;"] | ||
volumeMounts: | ||
- name: storage-catalogue-volume | ||
mountPath: /data/ | ||
- name: data-wsi-volume | ||
mountPath: /wsi/ | ||
subPath: tiff | ||
restartPolicy: "Never" | ||
volumes: | ||
- name: storage-catalogue-volume | ||
persistentVolumeClaim: | ||
claimName: pvc-storage-catalogue-secret | ||
- name: data-wsi-volume | ||
persistentVolumeClaim: | ||
claimName: pvc-osd-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters