<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dbx/container/Containerfile, branch next</title>
<subtitle>Containerized development environments</subtitle>
<id>http://src.lordello.net/dbx/atom/container/Containerfile?h=next</id>
<link rel='self' href='http://src.lordello.net/dbx/atom/container/Containerfile?h=next'/>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/'/>
<updated>2026-11-27T13:59:36Z</updated>
<entry>
<title>Start Next Version of `dbx`</title>
<updated>2026-11-27T13:59:36Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-11-27T13:59:36Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=732bd7137f018e4ad0d114744c92e33c00921d31'/>
<id>urn:sha1:732bd7137f018e4ad0d114744c92e33c00921d31</id>
<content type='text'>
This is the first PR in a fresh branch that refactors `dbx` to a
new agentic development paradigm. The idea is to create a single
development container for each project, and provision it with a
working agent harness.

The development flow is changed to fetching Git refs from the
development box for review and signing on the host. It is meant as
a hardened alternative compared to the previous version (where we
would typically expose a GPG/SSH socket over an `ssh` connection
to the guest, and rely on `pinentry` and `askpass` configuration
to enforce user presence or verification tests for each
authenticated operation.

It is still in the early stages of "ideating" how the final project
would look like, but I already have some idea on how I want it.
</content>
</entry>
<entry>
<title>Support Custom Teardown</title>
<updated>2026-09-15T12:05:52Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-15T12:05:52Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=717968007c67fca3067777cffa3dd40582968f4a'/>
<id>urn:sha1:717968007c67fca3067777cffa3dd40582968f4a</id>
<content type='text'>
Similar to how we added an "RC" system to the init script, we
now have a custom tear-down script (which can do things like
unmount loop devices).

Furthermore, we make sure that an `$XDG_RUNTIME_DIR/dbx` exists
for things like SSH control sockets (so they can go somewhere
where an application has R/W access to, while only keeping RO
access to the configurations).
</content>
</entry>
<entry>
<title>Implement Basic RC System</title>
<updated>2026-09-11T14:16:28Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-11T13:54:00Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=d893a0e08fbf0ae7fc85b62a0814ab31d758169a'/>
<id>urn:sha1:d893a0e08fbf0ae7fc85b62a0814ab31d758169a</id>
<content type='text'>
We added a basic RC system (that runs executable scripts from a
directory in the container) for greater customization. Additionally,
the post-installation script now runs as root (as it alwasy should
have) to allow for additional customization of the enviroment before
dropping to the user.

This allows for some more complicated devbox provisioning such as:

- Making /dev/net/tun accessible to the developement user for pasta
- Support setting up XDG runtime dirs if required

In particular, this supports a case for running `podman` within the
`krun` container: `podman`'s overlay storage driver does not work
on `virtiofs` file systems, this allows you to create a loop-mount
for `podman` storage to work around this issue.

```sh
truncate -s 32G /var/lib/user.img
mkfs.ext4 /var/lib/user.img
mkdir -p /var/lib/user

USER="$1"
UID="$(id -u "$USER")"
GID="$(id -g "$USER")"

cat &lt;&lt;EOF &gt;/etc/dbx/rc.d/user-dirs.sh
mountpoint -q /var/lib/user || mount -o loop /var/lib/user.img /var/lib/user
install -d -m 0755 -o '$UID' -g '$GID' '/var/lib/user/$UID'
install -d -m 0700 -o '$UID' -g '$GID' '/run/user/$UID'
EOF
```

For obvious reasons, you do not want the 32GB image to be included
in the devbox image. This allows ths user to use
`/var/lib/user/1000/...` as `podman` graphroot storage:

```toml
[storage]
driver = "overlay"
graphroot = "/var/lib/user/1000/containers/storage"
```
</content>
</entry>
<entry>
<title>Started Implementing Container Creation</title>
<updated>2026-09-04T20:26:09Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-04T20:26:09Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=8165883a153e4bc2d50fa3710e47b76d9f79bb15'/>
<id>urn:sha1:8165883a153e4bc2d50fa3710e47b76d9f79bb15</id>
<content type='text'>
We setup a single-use SSH key and can generate an SSH
configuration.  Additionally, we support user SSH settings in
`~/.config/dbx/$NAME.ssh_config`.

This still doesn't quite work (there are some left-over TODOs).
In particular:

1. We need to get the generated SSH public key to the authorized
   keys list on the devbox
2. We need to SCP and run the optional post-installation script
</content>
</entry>
<entry>
<title>Refactoring to a C Binary</title>
<updated>2026-08-29T16:51:31Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-08-29T13:44:43Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=99561277e31caeffa7fc9d722650247511ad3bf7'/>
<id>urn:sha1:99561277e31caeffa7fc9d722650247511ad3bf7</id>
<content type='text'>
</content>
</entry>
</feed>
