Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Add Flatcar OS support #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add Flatcar OS support #38

wants to merge 2 commits into from

Conversation

HoKim98
Copy link

@HoKim98 HoKim98 commented Dec 8, 2022

Hello, first of all, thank you to those who lead such a great project.

Added Dockerfile and installation script to use ofed-docker Docker image in Flatcar Container Linux. Unlike other major Linux distributions, the kernel source code and build process in Flatcar Linux work similarly to Gentoo, so the installation script is slightly different, but the main functions are the same.

How to Build

Same as for other OS's.

docker build --tag ofed-driver:latest ./flatcar

How to Run

Since the /lib directory is read-only on Flatcar Linux, mounting the host directory does not change anything. However, general application is possible in a state where changes can be made, such as overlaying the /lib directory.

Made compatible with mofed Pod in network-operator provided through Helm in Kubernetes.

docker run -it --name mofed \
     --privileged --net host --ipc host \
     --volume /etc:/host/etc \
     --volume /lib:/host/lib \
     --tmpfs /tmp --tmpfs /run \
     ofed-driver:latest

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant