github.com/lablabs/operator-sdk@v0.8.2/images/scorecard-proxy/bin/entrypoint (about)

     1  #!/bin/sh -e
     2  
     3  # This is documented here:
     4  # https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#openshift-specific-guidelines
     5  
     6  if ! whoami &>/dev/null; then
     7    if [ -w /etc/passwd ]; then
     8      echo "${USER_NAME:-proxy}:x:$(id -u):$(id -g):${USER_NAME:-proxy} user:${HOME}:/sbin/nologin" >> /etc/passwd
     9    fi
    10  fi
    11  
    12  exec ${PROXY} $@