mirror of
https://github.com/outbackdingo/ucore.git
synced 2026-01-27 18:20:42 +00:00
feat: enable cockpit-ws to run after reboot into this image
This commit is contained in:
@@ -35,6 +35,7 @@ RUN cd /etc/yum.repos.d/ \
|
||||
RUN sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
||||
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=60s/' /etc/systemd/user.conf && \
|
||||
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=60s/' /etc/systemd/system.conf && \
|
||||
systemctl enable cockpit.service && \
|
||||
systemctl enable rpm-ostreed-automatic.timer && \
|
||||
rpm-ostree cleanup -m && \
|
||||
ostree container commit
|
||||
|
||||
@@ -30,6 +30,10 @@ ificantly less disk space than [ucore-hci](https://github.com/bsherman/ucore-hci
|
||||
|
||||
One can also layer packages directly on a machine running this or use this image as a base for a further customized OCI.
|
||||
|
||||
Note: cockpit-ws runs as a podman container, not a direct systemd service. This image pre-configures it to run, but it can be disabled:
|
||||
|
||||
sudo systemctl disable --now cockpit.service
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
13
etc/systemd/system/cockpit.service
Normal file
13
etc/systemd/system/cockpit.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=quay.io/cockpit/ws:latest podman container
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=-/usr/bin/podman rm -f cockpit-ws
|
||||
ExecStart=/usr/bin/podman container runlabel --name cockpit-ws RUN quay.io/cockpit/ws:latest
|
||||
ExecStop=/usr/bin/podman rm -f cockpit-ws
|
||||
RemainAfterExit=yes
|
||||
KillMode=none
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user