Files
rocm-systems/docker/dockerfile-build-ubuntu-16.04
T

15 righe
524 B
Plaintext

# Parameters related to building hip
ARG base_image
FROM ${base_image}
2018-08-27 10:22:42 +05:30
MAINTAINER Maneesh Gupta <maneesh.gupta@amd>
ARG user_uid
# docker pipeline runs containers with particular uid
# create a jenkins user with this specific uid so it can use sudo priviledges
# Grant any member of sudo group password-less sudo privileges
2018-08-27 10:22:42 +05:30
RUN useradd --create-home -u ${user_uid} -G sudo,video --shell /bin/bash jenkins && \
mkdir -p /etc/sudoers.d/ && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' | tee /etc/sudoers.d/sudo-nopasswd