Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ericboehs committed Mar 26, 2024
1 parent 13555d1 commit fc1ccba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/neovim-tmux-zsh/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
}
},

"postCreateCommand": "sh .devcontainer/post-create.sh",
"postStartCommand": "sh .devcontainer/post-start.sh",
"postCreateCommand": "sh .devcontainer/neovim-tmux-zsh/post-create.sh",
"postStartCommand": "sh .devcontainer/neovim-tmux-zsh/post-start.sh",

"customizations": {
"codespaces": {
Expand Down
17 changes: 6 additions & 11 deletions .devcontainer/neovim-tmux-zsh/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
#!/bin/sh

# Add welcome message
sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt

# Switch to vets-api ruby version
export PATH="${HOME}/.asdf/shims:${HOME}/.asdf/bin:${PATH}"
asdf install ruby $( cat .ruby-version )
asdf global ruby $( cat .ruby-version )
# asdf install ruby $( cat .ruby-version )
# asdf global ruby $( cat .ruby-version )

git clone https://github.com/department-of-veterans-affairs/vets-api-mockdata.git ../vets-api-mockdata

sudo apt update
sudo apt install -y libpq-dev pdftk shared-mime-info postgresql-15-postgis-3
# sudo apt update
# sudo apt install -y libpq-dev pdftk shared-mime-info postgresql-15-postgis-3

# Add tmux config
if [ ! -f $HOME/.tmux.conf ]; then
cat <<EOT >> $HOME/.tmux.conf
cat <<EOT >> $HOME/.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
Expand All @@ -25,7 +21,6 @@ run '~/.tmux/plugins/tpm/tpm'
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
EOT
fi

gem install bundler
NUM_CORES=$( cat /proc/cpuinfo | grep '^processor'|wc -l )
Expand Down Expand Up @@ -62,4 +57,4 @@ nohup bash -c '/home/linuxbrew/.linuxbrew/opt/[email protected]/bin/redis-server /home/l
sudo /etc/init.d/postgresql restart
pg_isready -t 60
sudo -u root sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'password';"
./bin/setup
#./bin/setup

0 comments on commit fc1ccba

Please sign in to comment.