https://github.com/pythoninthegrass/distrobox_ftw
Bespoke distrobox image
https://github.com/pythoninthegrass/distrobox_ftw
Last synced: 11 months ago
JSON representation
Bespoke distrobox image
- Host: GitHub
- URL: https://github.com/pythoninthegrass/distrobox_ftw
- Owner: pythoninthegrass
- Created: 2024-08-28T23:55:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T00:01:43.000Z (over 1 year ago)
- Last Synced: 2025-02-21T21:49:54.808Z (11 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# distrobox_ftw
Sets up an opinionated development environment for a distrobox container image.
## Minimum Requirements
* Linux
* [docker](https://docs.docker.com/get-docker/)
* [distrobox](https://distrobox.it)
## Quickstart
* clone repo
```bash
git clone https://github.com/pythoninthegrass/distrobox_ftw.git
cd distrobox_ftw
```
* distrobox commands
```bash
# create image
# ! might need to ctrl-c if it hangs
# * check `docker logs` for progress
distrobox assemble create
# enter container
distrobox enter
# export a gui app
distrobox-export -a code
# export a binary
distrobox-export -b $(which python)
# exit container
exit
# stop container
distrobox stop
# remove image
distrobox assemble rm
```
## Notes
* distrobox home is set to `~/.local/share/distrobox`
* `init_hooks.sh` script may still be mounted to `/tmp` in the final image
* `ssh` is enabled via `systemd` at port 2222
* Exported apps and binaries are in `~/.local/bin`
* When a container is removed, it doesn't automatically remove the exported apps/binaries
* It should prompt to launch the container, then remove them though
## TODO
* Verify if `init_hooks.sh` is still mounted in final image
* Use ansible playbook for asdf, docker, etc