summaryrefslogtreecommitdiff
path: root/Dockerfile.in
blob: 0ac8071c5331539435b831eee3bfb7263e425111 (plain)
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
26
27
28
29
30
FROM rockylinux:9

ENV kernel=KERNEL

RUN case "${kernel}" in \
	*.el9*) ;; \
	*) echo "KERNEL must be a Rocky Linux 9 kernel release, for example 5.14.0-611.36.1.el9_7.x86_64"; exit 1 ;; \
	esac

RUN dnf install -y --setopt=install_weak_deps=False \
		dnf-plugins-core \
		gcc \
		make \
		systemtap \
		wget && \
	dnf config-manager --set-enabled baseos-debug && \
	dnf install -y --setopt=install_weak_deps=False \
		kernel-devel-${kernel} \
		kernel-debuginfo-${kernel} \
		kernel-debuginfo-common-$(uname -m)-${kernel} && \
	dnf clean all

WORKDIR /ioriot
ADD ./ /ioriot

RUN mkdir -p /ioriot/systemtap/downloads
RUN mkdir -p /opt/ioriot

VOLUME /opt
VOLUME /ioriot/systemtap/downloads