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..407228905a --- /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