forked from cooperlees/monitord
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 1000 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (20 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use the latest Fedora Rawhide image for development
FROM fedora:rawhide
# Install Git and minimize the image size
RUN dnf install -y cargo git rust systemd && \
dnf clean all && \
rm -rf /var/cache/dnf
# Verify Git, Rust, and Cargo installation
RUN git --version
RUN rustc --version
RUN cargo --version
# Drop systemd-networkd config files for a dummy interface used in integration tests.
# The .netdev creates the virtual device, the .link sets a description, and the
# .network file causes networkd to manage it (no IP — it will stay in carrier/down state).
RUN printf '%s\n' '[NetDev]' 'Name=monitord0' 'Kind=dummy' \
> /etc/systemd/network/10-monitord-dummy.netdev && \
printf '%s\n' '[Match]' 'OriginalName=monitord0' '' '[Link]' \
'Description=Monitord integration-test dummy interface' \
> /etc/systemd/network/10-monitord-dummy.link && \
printf '%s\n' '[Match]' 'Name=monitord0' '' '[Network]' \
> /etc/systemd/network/10-monitord-dummy.network