Skip to content

Commit

Permalink
Merge pull request knative#167 from nak3/master-patch
Browse files Browse the repository at this point in the history
Add UID 65532 to run all containers as non-root user
  • Loading branch information
openshift-merge-robot authored Jun 24, 2019
2 parents d004fd1 + c516f6b commit d582787
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 7 deletions.
1 change: 1 addition & 0 deletions openshift/ci-operator/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD ${bin} /usr/bin/${bin}
ENTRYPOINT ["/usr/bin/${bin}"]
4 changes: 0 additions & 4 deletions openshift/ci-operator/generate-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ function generate_dockefiles() {
local image_base=$(basename $img)
mkdir -p $target_dir/$image_base
bin=$image_base envsubst < openshift/ci-operator/Dockerfile.in > $target_dir/$image_base/Dockerfile
# Add USER 1000 to runtime-unprivileged image
if [[ $image_base = "runtime-unprivileged" ]]; then
sed -i '/FROM/a\USER 1000' $target_dir/$image_base/Dockerfile
fi
done
}

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/activator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD activator /usr/bin/activator
ENTRYPOINT ["/usr/bin/activator"]
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/autoscaler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD autoscaler /usr/bin/autoscaler
ENTRYPOINT ["/usr/bin/autoscaler"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD certmanager /usr/bin/certmanager
ENTRYPOINT ["/usr/bin/certmanager"]
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD controller /usr/bin/controller
ENTRYPOINT ["/usr/bin/controller"]
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/istio/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD istio /usr/bin/istio
ENTRYPOINT ["/usr/bin/istio"]
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/queue/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD queue /usr/bin/queue
ENTRYPOINT ["/usr/bin/queue"]
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/webhook/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD webhook /usr/bin/webhook
ENTRYPOINT ["/usr/bin/webhook"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD autoscale /usr/bin/autoscale
ENTRYPOINT ["/usr/bin/autoscale"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD bloatingcow /usr/bin/bloatingcow
ENTRYPOINT ["/usr/bin/bloatingcow"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD failing /usr/bin/failing
ENTRYPOINT ["/usr/bin/failing"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD grpc-ping /usr/bin/grpc-ping
ENTRYPOINT ["/usr/bin/grpc-ping"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD hellovolume /usr/bin/hellovolume
ENTRYPOINT ["/usr/bin/hellovolume"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD helloworld /usr/bin/helloworld
ENTRYPOINT ["/usr/bin/helloworld"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD httpproxy /usr/bin/httpproxy
ENTRYPOINT ["/usr/bin/httpproxy"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD observed-concurrency /usr/bin/observed-concurrency
ENTRYPOINT ["/usr/bin/observed-concurrency"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD pizzaplanetv1 /usr/bin/pizzaplanetv1
ENTRYPOINT ["/usr/bin/pizzaplanetv1"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD pizzaplanetv2 /usr/bin/pizzaplanetv2
ENTRYPOINT ["/usr/bin/pizzaplanetv2"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD printport /usr/bin/printport
ENTRYPOINT ["/usr/bin/printport"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD protocols /usr/bin/protocols
ENTRYPOINT ["/usr/bin/protocols"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD runtime /usr/bin/runtime
ENTRYPOINT ["/usr/bin/runtime"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD singlethreaded /usr/bin/singlethreaded
ENTRYPOINT ["/usr/bin/singlethreaded"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD timeout /usr/bin/timeout
ENTRYPOINT ["/usr/bin/timeout"]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 1000
USER 65532

ADD runtime-unprivileged /usr/bin/runtime-unprivileged
ENTRYPOINT ["/usr/bin/runtime-unprivileged"]
ADD workingdir /usr/bin/workingdir
ENTRYPOINT ["/usr/bin/workingdir"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Do not edit! This file was generated via Makefile
FROM registry.svc.ci.openshift.org/openshift/origin-v3.11:base
USER 65532

ADD wsserver /usr/bin/wsserver
ENTRYPOINT ["/usr/bin/wsserver"]

0 comments on commit d582787

Please sign in to comment.