forked from openshift-psap/kvc-simple-kmod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rhel
25 lines (20 loc) · 860 Bytes
/
Dockerfile.rhel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM registry.access.redhat.com/ubi8:latest
MAINTAINER "[email protected]"
WORKDIR /build/
# First update the base container to latest versions of everything
RUN yum update -y
# Expecting kmod software version as an input to the build
ARG KMODVER
# Grab the software from upstream
ADD https://github.com/kmods-via-containers/simple-kmod/archive/${KMODVER}.tar.gz ./file.tar.gz
RUN tar -x --strip-components=1 -f ./file.tar.gz
# Expecting kernel version as an input to the build
ARG KVER
# Note, your host must have access to repos where kernel developement
# packages can be installed. If it doesn't the following steps will
# fail
# Prep and build the module
RUN yum install -y make sudo
RUN make buildprep KVER=${KVER} KMODVER=${KMODVER}
RUN make all KVER=${KVER} KMODVER=${KMODVER}
RUN make install KVER=${KVER} KMODVER=${KMODVER}