actions:
- trigger: post-packages
# Enable services
for svc_name in bootmisc syslog; do
ln -s /etc/init.d/${svc_name} /etc/runlevels/boot/${svc_name}
done
types:
- container
missing hostname.
This would work better:
for svc_name in bootmisc syslog hostname; do
ln -s /etc/init.d/${svc_name} /etc/runlevels/boot/${svc_name}
done
also local apk cache which created during installation of packages remains there and causes a larger packed image size (rootfs 5M vs. 2M)
rm -rf /var/cache/apk/*
somewhere in post-packages actions would clean up the local cache.
No, it doesn’t need to be activated. There’s no logrotate service in /etc/init.d. Instead, there is /etc/periodic/daily/logrotate which is run by crond.