Skip to content

Commit

Permalink
Better docker dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Feb 12, 2022
1 parent a1e01df commit e82228e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ RUN add-apt-repository ppa:neovim-ppa/stable
RUN apt-get update
RUN apt-get install -y neovim

ADD . /root/.local/share/nvim/site/pack/conjure/start/conjure

CMD nvim
7 changes: 6 additions & 1 deletion scripts/docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

CONJURE_DIR=/root/.local/share/nvim/site/pack/conjure/start/conjure

docker build . -t conjure
docker run -ti --rm conjure
docker run \
-v $(pwd):$CONJURE_DIR \
-ti --rm conjure \
nvim --cmd "cd $CONJURE_DIR" $@

0 comments on commit e82228e

Please sign in to comment.