-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fb86a3
commit 76df096
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Parameters related to building rocPRIM | ||
ARG base_image | ||
|
||
FROM ${base_image} | ||
LABEL maintainer="[email protected]" | ||
|
||
USER root | ||
ARG user_uid | ||
|
||
RUN yum install -y --nogpgcheck\ | ||
sudo \ | ||
ca-certificates \ | ||
git \ | ||
make \ | ||
clang \ | ||
clang-devel \ | ||
gcc-c++ \ | ||
gcc-gfortran \ | ||
pkgconfig \ | ||
boost-devel \ | ||
numactl-libs \ | ||
rpm-build | ||
|
||
# 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 | ||
RUN useradd --create-home -u ${user_uid} -o -G video --shell /bin/bash jenkins && \ | ||
echo '%video ALL=(ALL) NOPASSWD:ALL' | tee /etc/sudoers.d/sudo-nopasswd && \ | ||
chmod 400 /etc/sudoers.d/sudo-nopasswd | ||
|