Skip to content

Instantly share code, notes, and snippets.

@oglok
Created December 20, 2023 15:01
Show Gist options
  • Select an option

  • Save oglok/8ac0718c0dbd434b724d216c2ea8aef3 to your computer and use it in GitHub Desktop.

Select an option

Save oglok/8ac0718c0dbd434b724d216c2ea8aef3 to your computer and use it in GitHub Desktop.
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
@oglok
Copy link
Author

oglok commented Dec 20, 2023

ok, symlinks to /usr/lib seem to work now. Thanks for the tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment