swh:1:snp:2ea44c7c86241d081851907e778a41260304d898
Raw File
Tip revision: 36bade7a2d7b69d1c0b0c4d41191f792a847d61c authored by Alexander Matyushentsev on 05 May 2020, 18:58:30 UTC
Update manifests to v1.5.4
Tip revision: 36bade7
uid_entrypoint.sh
#!/bin/bash

# Make sure that if we are using an arbitrary UID that it appears in /etc/passwd,
# otherwise this will cause issues with things like cloning with git+ssh
# reference: https://access.redhat.com/documentation/en-us/openshift_container_platform/3.11/html/creating_images/creating-images-guidelines#use-uid
if ! whoami &> /dev/null; then
  if [ -w /etc/passwd ]; then
    echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:/home/argocd:/sbin/nologin" >> /etc/passwd
  fi
fi

exec "$@"
back to top