Add docker-ce and enable on boot

This commit is contained in:
badblocks 2024-11-13 15:47:00 -08:00
parent 96eb99ecb3
commit 085c0da90d
No known key found for this signature in database

View file

@ -5,6 +5,8 @@ set +u
RELEASE="$(rpm -E %fedora)" RELEASE="$(rpm -E %fedora)"
### Add repos
rpm-ostree install https://download.docker.com/linux/fedora/docker-ce.repo
### Install packages ### Install packages
@ -44,7 +46,16 @@ rpm-ostree install \
rpm-ostree groupinstall "C Development Tools and Libraries" "Development Tools" rpm-ostree groupinstall "C Development Tools and Libraries" "Development Tools"
# from rpmfusion # from rpmfusion
rpm-ostree install vlc rpm-ostree install \
vlc
# from custom repos
rpm-ostree install \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin
# TODO: Add rpm building with FPM # TODO: Add rpm building with FPM
@ -71,6 +82,8 @@ done
#### Change to System Configuration Files #### Change to System Configuration Files
# Enable docker.service
ln -s /etc/systemd/system/docker.service /etc/systemd/system/multi-user.target.wants/
# this example modifies default timeouts to prevent slow reboots from services that won't stop # this example modifies default timeouts to prevent slow reboots from services that won't stop
#sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf #sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf