Skip to content

patmaddox/system0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

system0 - it all starts here

`dgit` is an alias for `git` that sets correct git dir and work tree.

Principles

  • FreeBSD first
  • repeatable
  • tested

Setup

Bootstrap:

fetch -q -o - https://raw.githubusercontent.com/patmaddox/system0/main/bootstrap.mk | make -f -

Check out files locally. WARNING: This force checks out the branch, and will overwrite any local files that are also tracked by git.

git --git-dir=system0.git --work-tree=. checkout -f main

Build environment:

make

Test setup:

make test

Ideas

make /jails/<foo>

Add a make target to quickly bootstrap a jail.

Make magit work with the home dir setup

auto-shutdown cron job / service

I’m running this stuff in the cloud, and I don’t want to pay for time that I’m not using.

A simple script could run mtree on the home dir every hour. If nothing has changed for N hours, shut down the instance.

Build AWS and EC2 images with zfs-on-root

I think `freebsd-src/releases` builds them with UFS.

I’ve written scripts to configure disks and use the cloud console commands. Those work, but it might be possible to hook directly into FreeBSD build machinery. I don’t even have to use Packer to make the base images. I can use Packer to configure the base image - or potentially even run this build script.

About

my dev environment, automated

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published