Skip to content

msobczyk/use user uid in hived image

Marcin Sobczyk requested to merge msobczyk/use_user_uid_in_hived_image into develop

In this merge request we run hived container as host linux user, for using this feature with gitlab service few workarounds were required:

  • pass NEW_UID and environment variable then change uid via usermod
  • value of NEW_UID is in dotenv artifacts form job performing replay (as original owner is user in prepare_hived_data)
  • dotenv artifacts cant be used in service variables section, NEW_UID must be defined as NEW_UID: $NEW_UID in job variables section to be visible inside service

Additionaly new custom_docker image was build without root user as default user. This is to prevent replay and subsequent job running as root.

Merge request reports