github.com/fabianvf/ocp-release-operator-sdk@v0.0.0-20190426141702-57620ee2f090/bin/entrypoint (about)

     1  #!/bin/bash -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:-runner}:x:$(id -u):$(id -g):${USER_NAME:-runner} user:${HOME}:/sbin/nologin" >> /etc/passwd
     9    fi
    10  fi
    11  
    12  exec ${OPERATOR} run ansible --watches-file=/opt/ansible/watches.yaml $@