- Consistent UserID/GroupID across all containers so that permissions are always correct
- A DNS service that resolves containers with a nice (real) hostname
*.depot.lan
from other computers on your home network, and for container to container communication - A JBOD disk management system with minimal configuration, and fully transparent recovery/failure. MergerFS acts like a simple file proxy, and removed disks can be read on other computers with no additional tooling
- Ensure that virtual/JBOD disk is correctly mounted before allowing dependent programs/containers to start up.
- A lightweight status dashboard for checking system metrics
- A lightweight docker management system (Portainer) with customized templates for popular media-center applications
- Samba (SMB) shares automatically served from JBOD disk.
- Hard Disk montoring that uses S.M.A.R.T disk status to notify you if disks become unhealthy.
- NVIDIA driver installation (optional)
- MOTD dropins.
-
Download bootable CoreOS image from https://coreos.com/os/docs/latest/booting-with-iso.html
-
Create bootable USB/CD with contents of CoreOS image
-
Start server and boot from CoreOS USB/CD.
-
Determine the OS installation disk
sudo fdisk -l # note, the boot disk will probably be /dev/loop0
-
Copy the ignition remote config bootstrap file to the file system
curl -O https://mediadepot.github.io/ignition/ignition-remote.json
-
Begin CoreOS installation on specified disk, NOTE: specified disk will be reformatted
sudo coreos-install -d /dev/sda -C stable -i ignition-remote.json
-
On installation completion, remove bootable USB/CD
-
Restart server
-
Wait for CoreOS to start and
cloud-init
process to complete. -
Go to
https://admin.depot.lan
to see Portainer dashboard and begin setup.
passwd.users.*.sshAuthorizedKeys.*
- Have atleast 1 data drive (> 1TB) formatted with ext4
- if your data disk isn't formatted yet, you can do so during installation, using
cfdisk
tool, or using "disk" attribute in
- if your data disk isn't formatted yet, you can do so during installation, using
storage.filesystem.*
#prerequsites:
- node has a static IP, using DHCP or route reservation
- https://coreos.com/os/docs/latest/overview-of-ct.html
- https://github.com/coreos/container-linux-config-transpiler/blob/master/doc/configuration.md
- https://coreos.com/os/docs/latest/booting-with-iso.html
- https://davranetworks.atlassian.net/wiki/spaces/MAN/pages/80936975/Bare+metal+install+of+CoreOS
- https://coreos.com/os/docs/latest/installing-to-disk.html
- https://gist.github.com/phumpal/d0007d314a12ee9c015e
- https://coreos.com/ignition/docs/latest/
- https://coreos.com/ignition/docs/latest/examples.html
- https://coreos.com/validate/
- https://github.com/coreos/ignition/blob/master/doc/configuration-v2_2.md
journalctl --identifier=ignition
- https://container-solutions.com/running-docker-containers-with-systemd/
- https://developer.atlassian.com/blog/2015/03/docker-systemd-socket-activation/
- https://karlstoney.com/2017/03/03/docker-containers-as-systemd-services/
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/managing_containers/using_systemd_with_containers
- https://forums.docker.com/t/running-docker-containers-with-systemd-question/52681
- https://forums.docker.com/t/any-simple-and-safe-way-to-start-services-on-centos7-systemd/5695/11
- https://fardog.io/blog/2017/12/30/running-docker-containers-with-systemd/
- https://blog.marcnuri.com/docker-container-as-linux-system-service/
- https://unix.stackexchange.com/questions/441894/wait-to-start-transmission-daemon-until-after-usb-drive-has-mounted
systemctl list-units --all
- https://fedoraproject.org/wiki/Packaging:Systemd#EnvironmentFiles_and_support_for_.2Fetc.2Fsysconfig_files
- https://github.com/mitre/fusera/wiki/FUSE-and-Docker
- https://serverfault.com/questions/632075/convert-an-fstab-entry-to-a-systemd-mount-unit-on-coreos
- https://hynek.me/articles/docker-signals/
- https://blog.packagecloud.io/eng/2015/10/13/inspect-extract-contents-rpm-packages/
- coreos/bugs#641
- coreos/bugs#358
- https://webcache.googleusercontent.com/search?q=cache:NVzT88tLQD0J:www.ulabs.uservers.net/howtos/glusterfs-coreos.php+&cd=6&hl=en&ct=clnk&gl=us
- https://www.mikenowak.org/working-around-read-file-systems-coreos-overlay/
docker run -it -v `pwd`:/mounted centos /bin/bash
curl -O -L https://github.com/trapexit/mergerfs/releases/download/2.25.1/mergerfs-2.25.1-1.el7.x86_64.rpm
rpm2cpio mergerfs-2.25.1-1.el7.x86_64.rpm | cpio -idmv
cp -r bin/ /mounted/files/
mount -o "lowerdir=/usr/sbin,upperdir=/opt/sbin,workdir=/opt/sbin.workdir" -t overlay overlay /usr/sbin
- https://github.com/jmreicha/awesome-rancher
- https://rancher.com/docs/rancher/v2.x/en/upgrades/rollbacks/single-node-rollbacks/
- https://rancher.com/docs/rancher/v2.x/en/installation/single-node/
- https://rancher.com/docs/rancher/v2.x/en/backups/backups/single-node-backups/
- https://gist.github.com/superseb/c363247c879e96c982495daea1125276
- rancher/rancher#16225
- rancher/rancher#15477
- rancher/rancher#13271
- https://github.com/rancher/cli
- https://portainer.readthedocs.io/en/stable/configuration.html
- https://app.swaggerhub.com/apis/deviantony/Portainer/1.19.2/#/templates/TemplateList
- https://tools.linuxserver.io/portainer.json
- https://blog.linuxserver.io/2017/11/28/how-to-setup-a-reverse-proxy-with-letsencrypt-ssl-for-all-your-docker-apps/
- https://blog.linuxserver.io/2018/02/03/using-traefik-as-a-reverse-proxy-with-docker/