Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
chore(tools): add bootstrap script for Docker
Browse files Browse the repository at this point in the history
Signed-off-by: Edwin Török <edwin@etorok.net>
  • Loading branch information
edwintorok committed Dec 31, 2022
1 parent 65ea455 commit e275d0a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/docker_bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
echo "Executing initial bootstrap/sync"
rm -f local-share-nvim/plugin/packer_compiled.lua
rm -f doom-nvim-contrib/plugin/packer_compiled.lua
rm -rf local-share-nvim/ local-state-nvim/
./start_docker.sh -- --rm --entrypoint='["/usr/bin/nvim","--headless","--cmd","autocmd User PackerComplete quitall","--cmd","autocmd User DoomStarted PackerSync"]'
./start_docker.sh -- --rm --entrypoint='["/usr/bin/nvim","--headless","--cmd","autocmd User PackerComplete quitall","--cmd","autocmd User DoomStarted PackerSync"]'
echo "Testing config"
exec ./start_docker.sh -- --rm --entrypoint='["/usr/bin/nvim","--headless","+qa"]'
7 changes: 7 additions & 0 deletions tools/docker_clean_bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
rm local-share-nvim/ local-state-nvim/ -rf
rm -f doom-nvim-contrib/plugin/packer_compiled.lua
echo
echo "Bootstrapping packages"
echo
exec ./start_docker.sh -- --entrypoint='["/usr/bin/nvim","--headless","--cmd","autocmd User PackerComplete quitall"]'

0 comments on commit e275d0a

Please sign in to comment.