Commit

585bb10

replying to @dtinth
Not via mise. It's Debian's samba (~45 MB). Either bake it into the image, or sudo apt-get install samba, which is lost when the container is recreated. I just tried it here, fully as dev: smbd on 4445 with its own smb.conf (private/state/lock dirs in home, ncalrpc dir…
You are right, and it already listens on all interfaces. And port 445 works as dev too: Docker sets ip_unprivileged_port_start=0 in containers, and I just bound 0.0.0.0:445 as uid 1000 here. So use smb ports = 445, skip the TCPForward, and connect to plain smb://<name>. Only…
Not yet, sorry for the confusion. That was only a test that the port can be bound; it closed at once, and nothing is listening. I was not allowed to start smbd myself. Run the steps (with smb ports = 445) and then connect, or tell me to start it and approve the prompt.
Done, in ~/smb (smb.conf, run, pitchfork.toml; state goes in ~/smb/state):
sh
cd ~/smb
pdbedit -s smb.conf -a -u dev   # once: your SMB password
pitchfork start smb
…
Fair point, done: ~/smb/run now runs sudo apt-get install samba when smbd is missing, so pitchfork start smb works after a recreate too. The password survives, since it is in ~/smb/state on the home volume.
Q1, the root: what is a "component"? Today there are 7 *_ENABLE flags hard-wired in the entrypoint, while a preset is a self-contained dir it knows nothing about. I recommend components use the preset shape: rootfs/opt/agent-env/components/<name>/ with tools.toml, a daemon…
Definitely in the same image, yes. However users should be able to add their own components in case they want to run something else too, without having to build their own image.
Q2, where user components live and what they may run as. A built-in one may need root (sshd, the desktop, rootless dockerd). A user one is just files in a volume. I recommend user components live in ~/.config/agent-env/components/<name>/, the same shape as built-ins, on the home…
Almost everything. Looking at what runs here: Must stay root (the core, not components): - sshd: it logs you in as dev - the gateway (caddy + oauth2-proxy as gateway): an edge hole must not land in the account with sudo, and dev's code must not read its secrets - the…
Agree. Please look at all the core and components. What are the common things it need to do? For example, I might want to set up a daemon that runs whenever this container runs. I would have to configure pitchfork myself, etc. So I am thinking of something more convention-based.…
Surveyed everything. The glue every piece repeats: 1. an enable flag 2. a daemon (user pitchfork), with readiness (port/cmd/http) and sometimes depends 3. a loopback run script reading env with defaults 4. a gateway route under /~env/<name>, prefix stripped or passed through 5. an entry in the /~env/ index, and a line in agent-env urls (today both hand-written separately, and they drift: urls lists Files even with DUFS_ENABLE=false) 6. login-shell env (profile.d + /etc/environment) 7. tools (mise toml) 8. a preflight check 9. agent-env subcommands 10. home dirs to create Misfits: sshd/mosh (not HTTP, host ports), the gateway itself, pitchfork web (top-level path, flag on another daemon), desktop backends (mutually exclusive daemon sets). Next question: what does a component directory look like? I recommend mirroring presets, so there is one shape to learn: component.env: TITLE, SUMMARY, PORT, READY, DEPENDS, ROUTE=strip|pass run: becomes [daemons.<name>] in the user supervisor, with $PORT set tools.toml, login.sh, environment, commands/: same meaning as in a preset preflight (optional): exit non-zero with a message to keep it off The entrypoint derives the daemon, the route, the index entry and the urls line from that, all from one source. Anything not expressible, like ssh, stays core. Agree?

commit 585bb10

- I wonder if we can get rid of the preset and make it also a component. - component.env - how about toml? - run - I think this can link to a folder with pitchfork.toml so we can run pitchfork on it. - I don't like the *_ENABLED env. Maybe better to have it not run in the…