Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A Argo Cd
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 小 白蛋
  • Argo Cd
  • Repository
Switch branch/tag
  • argo-cd
  • manifests
  • namespace-install.yaml
Find file BlameHistoryPermalink
  • Fred Dubois's avatar
    Make argo-cd docker images openshift friendly (#2362) · 01ce567b
    Fred Dubois authored Oct 01, 2019
    In openshift clusters, the user id of your container can be arbitrary,
    so you need to make the running images compatible with this behavior.
    
    The problematic application for argo-cd was the repo server. When trying
    to clone the repos it was getting the error "No user exists for uid
    100083000" (100083000 was the random user id being injected by
    openshift in my case). This was because the user 100083000 wasn't in the
    /etc/passwd file.
    
    The changes in this commit add a uid_entrypoint.sh script that, when the
    container starts, modifies the /etc/passwd file to add an entry with the
    current UID _only_ if the current UID isn't there.
    
    References:
    * Problematic behavior of ssh when user id isn't in the /etc/passwd file:
      https://unix.stackexchange.com/questions/524268/running-git-or-ssh-client-in-docker-as-user-no-user-exists-for-uid
    * OpenShift guidelines on how to make your docker image runnable by
      arbitrary user ids:
      https://access.redhat.com/documentation/en-us/openshift_container_platform/3.11/html/creating_images/creating-images-guidelines#use-uid
    01ce567b

免费DevSecOps平台,让您的项目体验完整的DevSecOps流程,让项目更安全