Skip to content

Commit

Permalink
Added setuid for necessary files/tools, so they remain usable when ru…
Browse files Browse the repository at this point in the history
…n on openshift.
  • Loading branch information
KamranAzeem committed Oct 22, 2021
1 parent 3dce502 commit df6c94d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ EXPOSE 1180 11443

# Install some tools in the container and generate self-signed SSL certificates.
# Packages are listed in alphabetical order, for ease of readability and ease of maintenance.
# Some files need setuid permissions to be able to run on openshift.
# Otherwise those tools are unusable.

RUN apk update \
&& apk add bash bind-tools busybox-extras curl \
iproute2 iputils jq mtr \
net-tools nginx openssl \
perl-net-telnet procps tcpdump tcptraceroute wget \
&& chmod u+s /sbin/apk /bin/busybox /usr/sbin/arping \
/usr/bin/tcpdump /usr/bin/tcptraceroute \
&& mkdir /certs /docker /usr/share/nginx/html \
&& openssl req \
-x509 -newkey rsa:2048 -nodes -days 3650 \
Expand Down

0 comments on commit df6c94d

Please sign in to comment.