[test_infra] Add systemtap devel header and ruby to fedora docker
Just compile ruby manually similarly to the Ubuntu test image.
Systemtap devel header is needed for sdt.h, so that ruby can be
compiled with USDTs.
@@ -27,7 +27,8 @@ RUN dnf -y install \
luajit-devel \
python3-devel \
libstdc++ \
- libstdc++-devel
+ libstdc++-devel \
+ systemtap-sdt-devel
RUN dnf -y install \
python3 \
@@ -46,3 +47,12 @@ RUN dnf -y install \
bpftool
RUN pip3 install pyroute2==0.5.18 netaddr==0.8.0 dnslib==0.9.14 cachetools==3.1.1
+
+RUN wget -O ruby-install-0.7.0.tar.gz \
+ https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz && \
+ tar -xzvf ruby-install-0.7.0.tar.gz && \
+ cd ruby-install-0.7.0/ && \
+ make install
+
+RUN ruby-install --system ruby 2.6.0 -- --enable-dtrace
+
