Skip to content

Commit

Permalink
Add centos8 CI (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
eidenyoshida committed May 25, 2020
1 parent 9fb86a3 commit 76df096
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .jenkins/common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def runCompileCommand(platform, project, jobName)
command = """#!/usr/bin/env bash
set -x
cd ${project.paths.project_build_prefix}
LD_LIBRARY_PATH=/opt/rocm/hcc/lib CXX=/opt/rocm/bin/hipcc ${project.paths.build_command} --hip-clang
CXX=/opt/rocm/bin/hipcc ${project.paths.build_command} --hip-clang
"""
}
else
Expand Down
4 changes: 2 additions & 2 deletions .jenkins/precheckin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ ci: {
propertyList = auxiliary.appendPropertyList(propertyList)

def jobNameList = ["compute-rocm-dkms-no-npi":([ubuntu16:['gfx900'],centos7:['gfx906'],sles15sp1:['gfx908']]),
"compute-rocm-dkms-no-npi-hipclang":([ubuntu16:['gfx900'],centos7:['gfx906'],sles15sp1:['gfx908']]),
"compute-rocm-dkms-no-npi-hipclang":([ubuntu16:['gfx900'],centos7:['gfx906'],centos8:['gfx906'],sles15sp1:['gfx908']]),
"rocm-docker":([ubuntu16:['gfx900'],ubuntu18:['gfx906'],centos7:['gfx906'],sles15sp1:['gfx908']])]
jobNameList = auxiliary.appendJobNameList(jobNameList)
jobNameList = auxiliary.appendJobNameList(jobNameList, 'rocPRIM')

propertyList.each
{
Expand Down
30 changes: 30 additions & 0 deletions docker/dockerfile-build-centos8
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

0 comments on commit 76df096

Please sign in to comment.