Skip to content

Commit

Permalink
fix: change /dev/crypto/nx-gzip to privileged
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Oct 2, 2024
1 parent e6604db commit f503a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/nx-gzip/manifests/04-buildconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
FROM quay.io/fedora/nginx-126:latest
USER root
RUN dnf install -y libnxz
RUN rf -f /usr/lib64/libz.so.1* || true
RUN ln -s /usr/lib/libnxz.so.0.0 /usr/lib/libz.so
RUN ln -s /usr/lib64/libnxz.so.0.0 /usr/lib/libz.so
ENTRYPOINT ["LD_PRELOAD=/usr/lib64/libnxz.so.0", "NX_GZIP_TRACE=8", "nginx", "-g", "daemon", "off;"]
runPolicy: Serial
2 changes: 1 addition & 1 deletion scripts/nx-gzip/manifests/05-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
serviceAccount: ocp4-workload-sa
serviceAccountName: ocp4-workload-sa
securityContext:
privileged: false
privileged: true
capabilities:
drop:
- ALL
Expand Down

0 comments on commit f503a2b

Please sign in to comment.