forked from openvinotoolkit/model_server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CVS-50623 GPU dependencies for RH8 OS (openvinotoolkit#589)
- build GPU dependencies on UBI based image - support two driver versions (19 and 20)
- Loading branch information
Showing
9 changed files
with
164 additions
and
21 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
# | ||
# Copyright (c) 2021 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi:8.2 as rpmbuild | ||
|
||
WORKDIR /root | ||
COPY rpmbuild.sh /root/ | ||
RUN /root/rpmbuild.sh | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi:8.2 | ||
|
||
RUN mkdir /rpmbuild/ | ||
COPY --from=rpmbuild /ovms-rpmbuild-deps.tar.xz /rpmbuild/ | ||
COPY get.sh / | ||
RUN /get.sh | ||
|
||
ENTRYPOINT [ "sleep", "360" ] |
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,39 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2021 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
set -e | ||
set -x | ||
|
||
mkdir -vp /root/pkg/{src,bin,internal_src} | ||
|
||
yum install -y xz pkg-config | ||
|
||
cd /rpmbuild | ||
tar -xf ovms-rpmbuild-deps.tar.xz | ||
cp -v pkg/src/* /root/pkg/internal_src/ | ||
cp -v pkg/bin/* /root/pkg/bin/ | ||
|
||
cd /root/pkg/bin/ | ||
rpm -i *.rpm | ||
cd ../ | ||
|
||
ls -lah ./src/ | ||
ls -lah ./internal_src/ | ||
ls -lah ./bin/ | ||
|
||
cd .. | ||
tar cvzf rpms.tar.xz ./pkg |
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,44 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2021 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
set -e | ||
set -x | ||
|
||
yum update -y | ||
yum install -y ruby curl wget rpm-build autoconf automake gcc libtool make pkg-config | ||
|
||
wget http://vault.centos.org/8.3.2011/PowerTools/Source/SPackages/opencl-headers-2.2-1.20180306gite986688.el8.src.rpm | ||
wget http://vault.centos.org/8.3.2011/AppStream/Source/SPackages/ocl-icd-2.2.12-1.el8.src.rpm | ||
wget http://vault.centos.org/8.3.2011/BaseOS/Source/SPackages/numactl-2.0.12-11.el8.src.rpm | ||
|
||
mkdir -vp /pkg/{src,bin} | ||
cp *.src.rpm /pkg/src | ||
|
||
rpmbuild --rebuild opencl-headers*.src.rpm | ||
rpm -i /root/rpmbuild/RPMS/noarch/opencl-headers-2.2-1*.rpm | ||
|
||
rpmbuild --rebuild ocl-icd-*.src.rpm | ||
rpm -i /root/rpmbuild/RPMS/x86_64/ocl-icd-*.rpm | ||
|
||
rpmbuild --rebuild numactl-*.src.rpm | ||
rpm -i /root/rpmbuild/RPMS/x86_64/numactl-*.rpm | ||
|
||
cp -v /root/rpmbuild/RPMS/noarch/opencl-headers-2.2-1*.rpm /pkg/bin/ | ||
cp -v /root/rpmbuild/RPMS/x86_64/ocl-icd-2*.rpm /pkg/bin/ | ||
cp -v /root/rpmbuild/RPMS/x86_64/numactl*.rpm /pkg/bin/ | ||
|
||
tar cvJf /ovms-rpmbuild-deps.tar.xz /pkg |