Skip to content

Commit

Permalink
Merge pull request #2353 from carapace-sh/docker-nix
Browse files Browse the repository at this point in the history
added nix docker environment
  • Loading branch information
rsteube authored Apr 17, 2024
2 parents e95f07d + fcc14b4 commit 1f858b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .docker/nix.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM archlinux

RUN pacman -Sy --noconfirm nix
RUN pacman -Sy --noconfirm elvish

RUN mkdir -p ~/.config/elvish \
&& echo -e "set paths = [ /carapace-bin/cmd/carapace \$@paths ]\neval (carapace _carapace|slurp)" > ~/.config/elvish/rc.elv
RUN export PATH="/carapace-bin/cmd/carapace:$PATH"

CMD ["elvish"]
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ services:
# user: 1000:1000
command: bash -c 'go run ./cmd/carafmt completers/*/cmd/*.go'

nix:
build:
context: .docker
dockerfile: nix.Dockerfile
image: nixos/nix
volumes:
- '.:/carapace-bin:ro'


volumes:
go:

0 comments on commit 1f858b3

Please sign in to comment.