Skip to content

Commit 2a6f921

Browse files
Dependancies asdf for make all fully automated (#12)
* asdf for zsh into post create command * change to ws folder * as scripts * zsh in post create * try bash interactive * trying without interactive * running with zsh * port forwards and make working * source before make
1 parent 5307a65 commit 2a6f921

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
// Use 'forwardPorts' to make a list of ports inside the container available locally.
1010
// "forwardPorts": [],
1111
// Uncomment the next line to run commands after the container is created.
12-
"postCreateCommand": "jekyll --version && cd docs && bundle install",
12+
"postCreateCommand": "zsh scripts/devcontainer/postcreatecommand.sh",
13+
"postStartCommand": "zsh scripts/devcontainer/poststartcommand.sh",
14+
"forwardPorts": [4000],
1315
// Configure tool-specific properties.
1416
"customizations": {
1517
"codespaces": {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
rm -Rf ~/.asdf
4+
git clone https://github.com/asdf-vm/asdf.git ~/.asdf;
5+
chmod +x ~/.asdf/asdf.sh;
6+
echo '. $HOME/.asdf/asdf.sh' >> ~/.zshrc
7+
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
8+
9+
source ~/.zshrc
10+
11+
echo 'asdf setup complete'
12+
13+
make config
14+
15+
jekyll --version && cd docs && bundle install
16+
17+
echo 'jekyll setup complete'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
source ~/.zshrc
3+
make config

0 commit comments

Comments
 (0)