49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
# Build the Red Hat 8.0 version...
|
|
|
|
The Red Hat image isn't using the templates/* -- it was built as a POC to
|
|
verify that our repositories are working correctly for Red Hat.
|
|
|
|
```bash
|
|
TAG=test-build-rhel-8.0.0-$(date +%Y%m%d)
|
|
export $(grep ^FFMPEG SOLUTION)
|
|
envsubst < Dockerfile.solution.rhel-8.0.0 > Dockerfile.rhel-8.0.0
|
|
docker build -f Dockerfile.rhel-8.0.0 -t intel-media-ffmpeg:${TAG} --no-cache .
|
|
```
|
|
|
|
# To push the tag to Harbor
|
|
```bash
|
|
TAG=test-build-rhel-8.0.0-$(date +%Y%m%d)
|
|
docker tag intel-media-ffmpeg:${TAG} amr-registry.caas.intel.com/vtt-osgc/solutions/intel-media-ffmpeg:${TAG}
|
|
docker push amr-registry.caas.intel.com/vtt-osgc/solutions/intel-media-ffmpeg:${TAG}
|
|
```
|
|
|
|
# In a custom image...
|
|
|
|
## Installing certificates
|
|
|
|
This image isn't yet copying certificates which would
|
|
allow internal signed certs to be used, so turn
|
|
sslverify=0 on the repository.
|
|
|
|
To install the certs would be something like:
|
|
|
|
A. Copy ca certs to /etc/pki/ca-trust/source/anchors/
|
|
B. run update-ca-trust
|
|
|
|
## Installing the Intel Graphics Driver repository for Red Hat 8.0
|
|
|
|
cat << EOF > /etc/yum.repos.d/intel-graphics.repo
|
|
[intel-graphics]
|
|
name=Intel Graphics Drivers Repository
|
|
baseurl=https://osgc.jf.intel.com/graphics/rhel/8.0-devel/
|
|
sslverify=0
|
|
enabled=1
|
|
gpgcheck=0
|
|
EOF
|
|
|
|
## Configure YUM to not use the proxy for .intel.com domains
|
|
echo "no_proxy=.jf.intel.com" >> /etc/yum.conf
|
|
|
|
## Install some packages
|
|
dnf install intel-opencl
|