jordan a révisé ce gist 4 hours ago. Aller à la révision
1 file changed, 19 insertions
alpine-on-ucore.md(fichier créé)
| @@ -0,0 +1,19 @@ | |||
| 1 | + | # Alpine on Fedora CoreOS (uCore) | |
| 2 | + | The primary reason this exists at all is because I'm running Fedora CoreOS (specifically [ublue-os/ucore](https://github.com/ublue-os/ucore)) on my server as a lightweight container host. UCore comes with a few packages pre-installed, but they're primarily for getting containers up and running. This means no Vim, no htop, no lazydocker, etc. The intended path forward is that you'll use a [Distrobox](https://distrobox.it) and do all of your stuff in there. I actually quite like this approach! | |
| 3 | + | ||
| 4 | + | ```bash | |
| 5 | + | #!/bin/bash | |
| 6 | + | ||
| 7 | + | if [ -z "${CONTAINER_ID}" ] && [ -t 0 ]; then | |
| 8 | + | exec distrobox enter alpine | |
| 9 | + | fi | |
| 10 | + | ||
| 11 | + | command_not_found_handle() { | |
| 12 | + | # don't run if not in a container | |
| 13 | + | if [ -z "${CONTAINER_ID}" ]; then | |
| 14 | + | exit 127 | |
| 15 | + | fi | |
| 16 | + | ||
| 17 | + | distrobox-host-exec "${@}" | |
| 18 | + | } | |
| 19 | + | ``` | |
Plus récent
Plus ancien