Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ FROM quay.io/fedora/fedora:37
ARG POETRY_VERSION=1.7.1

RUN dnf -y update && \
yum -y reinstall shadow-utils && \
yum install -y git \
dnf -y reinstall shadow-utils && \
dnf install -y git \
python3 \
python3-pip \
python3-devel \
gcc-c++ && \
dnf clean all && \
rm -rf /var/cache /var/log/dnf* /var/log/yum.*

RUN useradd -u 1000 complyscribe
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@ COPY ./actions/sync-upstreams/sync-upstreams-entrypoint.sh /

RUN chmod +x /auto-sync-entrypoint.sh /rules-transform-entrypoint.sh /create-cd-entrypoint.sh /sync-upstreams-entrypoint.sh

USER 1001

ENTRYPOINT ["python3.9", "-m" , "complyscribe"]
CMD ["--help"]
10 changes: 10 additions & 0 deletions tests/e2e/play-kube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@ metadata:
labels:
app: complyscribe-e2e
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1001
containers:
- name: mock-server-container
image: localhost/mock-server:latest
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
ports:
- containerPort: 8080
volumeMounts:
- name: tmp
mountPath: /home/wiremock
volumes:
- name: tmp
emptyDir: {}
Loading