This is a personal blog focused on computer software and hardware. Most
projects are implementing software and hardware for a homelab. What is a
homelab? I would say a homelab could be a single computer or dozens of
computers connected in a network. You can also integrate with computers
in the Cloud.
Factorio is a game where you crash land on an alien planet and build a factory to create a space ship and escape the dangerous world you landed on.
factorio_logo
Configuring the server
Someone has already created an amazing container image that will start the game server as a non-root user and supports mods out of the box.
Only one volume/directory is needed to store the persistent data of the game server. In this example, the container will run on a Linux system with docker and the game server files will be stored in /opt/factorio. The game server runs on UDP port 34197 by default. This can be changed but the game client will expect the default port. If you are not familiar with running containers, see a previous post on how to get started with docker.
Cockpit is an open-source and easy to use web-based interface to manage a Linux system. It has features for users who may be new to Linux administration and provides information helpful to experienced administrators. By default, Cockpit will use the same user accounts that are present on the system. If the system is configured to use a directory service, Cockpit will forward the authorization to the directory service.
There are also other software packages supported to integrate with cockpit. It is available in distribution packages for Red Hat distros, Debian based distros, and Arch distros.
One of the most useful systems to set up in a homelab is shared storage. Making storage available over the network makes it easier to share files and make system backups.
A popular operating system for creating a network storage server is called TrueNAS which is based on FreeBSD and Linux and uses the OpenZFS file system. For a home lab, the BSD licensed free and public TrueNAS Core can be used in a homelab. This operating system is a stable base to set up SMB file shares for Windows clients, AFP for macOS, NFS for Linux, iSCSI for block storage, rsync daemons, and FTP servers.
This post is taking a look at another suite of software to create and manage Virtual Machines. For a background on computer virtualization, check out a previous post.
Linux distributions support virtualization through the Linux kernel which is why the software is called KVM. This stands for “Kernel-based virtual machine”. It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko.
Note (2025-10-12): This blog has been running on the same Amplify setup since this post. In 2025 the hugo build image was updated along with the site theme. The AWS Console has changed so look for a newer post about AWS Amplify
AWS Amplify is a set of tools and services that can be used together or on their own, to help front-end web and mobile developers build scalable full stack applications, powered by AWS (Amazon Web Services). With Amplify, you can configure app backends and connect your app in minutes, deploy static web apps in a few clicks, and easily manage app content outside of AWS.
Update 2025-10-15: This method of building containers should be considered deprecated. The kaniko project is not maintained
GitLab CI/CD is a feature of the GitLab platform that is used in software development for Continuous Integration, Delivery, and Deployment of software. The idea is that software source code will grow and evolve over time but you do not want to have to manually compile your code each time a change is made. This is especially true when you develop software as a team and multiple changes might be made in a single day.