From 793f003efed8a3aca19394649a360d7b6fa9b0b1 Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 1 Jan 2025 14:18:14 +0100 Subject: [PATCH] compose: added xbps --- .docker/xbps.yaml | 8 ++++++++ .docker/xbps/Dockerfile | 9 +++++++++ compose.yaml | 1 + 3 files changed, 18 insertions(+) create mode 100644 .docker/xbps.yaml create mode 100644 .docker/xbps/Dockerfile diff --git a/.docker/xbps.yaml b/.docker/xbps.yaml new file mode 100644 index 0000000000..cbde26d076 --- /dev/null +++ b/.docker/xbps.yaml @@ -0,0 +1,8 @@ +services: + xbps: + build: + context: xbps + image: ghcr.io/carapace-sh/carapace-bin:xbps + hostname: carapace-bin:xbps + volumes: + - '..:/carapace-bin:ro' diff --git a/.docker/xbps/Dockerfile b/.docker/xbps/Dockerfile new file mode 100644 index 0000000000..9c15196426 --- /dev/null +++ b/.docker/xbps/Dockerfile @@ -0,0 +1,9 @@ +FROM ghcr.io/void-linux/void-glibc + +RUN xbps-install -Sy elvish + +RUN mkdir -p ~/.config/elvish \ + && echo "set paths = [ /carapace-bin/cmd/carapace \$@paths ]\neval (carapace _carapace|slurp)" > ~/.config/elvish/rc.elv +ENV PATH="/carapace-bin/cmd/carapace:$PATH" + +CMD ["elvish"] diff --git a/compose.yaml b/compose.yaml index 80bae4a978..f2ea978af3 100644 --- a/compose.yaml +++ b/compose.yaml @@ -6,3 +6,4 @@ include: - .docker/fzf-tab.yaml - .docker/gcloud.yaml - .docker/nix.yaml + - .docker/xbps.yaml