Created
December 20, 2023 15:01
-
-
Save oglok/8ac0718c0dbd434b724d216c2ea8aef3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM quay.io/centos-bootc/fedora-bootc:eln | |
| COPY rpmbuild/RPMS/x86_64/flightctl-agent-0.0.1-1.el9.x86_64.rpm /tmp/ | |
| COPY flightctl_rsa.pub /usr/etc-system/root.keys | |
| RUN touch /etc/ssh/sshd_config.d/30-auth-system.conf; \ | |
| mkdir -p /usr/etc-system/; \ | |
| echo 'AuthorizedKeysFile /usr/etc-system/%u.keys' >> /etc/ssh/sshd_config.d/30-auth-system.conf; \ | |
| chmod 0600 /usr/etc-system/root.keys | |
| VOLUME /var/roothome | |
| COPY .flightctl/config.yaml /etc/flightctl/ | |
| COPY .flightctl/certs/ca.crt /etc/flightctl | |
| COPY .flightctl/certs/client-enrollment.* /etc/flightctl/ | |
| RUN rpm-ostree install -y /tmp/flightctl-agent-0.0.1-1.el9.x86_64.rpm | |
| RUN ln -s /usr/lib/systemd/system/flightctl-agent.service /etc/systemd/system/multi-user.target.wants/ | |
| RUN ln -s /usr/lib/systemd/system/podman.service /etc/systemd/system/multi-user.target.wants/ | |
| RUN systemctl enable podman.service && \ | |
| systemctl enable flightctl-agent.service && \ | |
| ostree container commit |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok, symlinks to /usr/lib seem to work now. Thanks for the tip.