Skip to content

Commit 339f018

Browse files
committed
docs, fix: update README, remove duplicate message
* Change incorrect `url` parameter to `folder` in the usage example of README * Remove duplicate dotfiles installation message in run.sh
1 parent 1793679 commit 339f018

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

.devcontainer.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Terraform Dev Container",
3+
"image": "katorly/workspace-base:latest",
4+
"postCreateCommand": "wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg && echo \"deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main\" | sudo tee /etc/apt/sources.list.d/hashicorp.list && sudo apt update && sudo apt install terraform && terraform init",
5+
"postStartCommand": "terraform validate",
6+
"customizations": {
7+
"vscode": {
8+
"extensions": [
9+
"hashicorp.terraform",
10+
"hashicorp.hcl"
11+
]
12+
}
13+
}
14+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module "dotfiles-after-code-server" {
3737
source = "katorlys-samples/dotfiles-after-code-server/coder"
3838
version = "0.1.0"
3939
agent_id = coder_agent.example.id
40-
url = "http://localhost:13337/?folder=/home/coder"
40+
folder = "/home/coder"
4141
}
4242
```
4343

run.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ run_code_server
121121
DOTFILES_URI="${DOTFILES_URI}"
122122
DOTFILES_USER="${DOTFILES_USER}"
123123

124-
echo "Running install.sh..."
125-
126124
if [ -n "$${DOTFILES_URI// }" ]; then
127125
if [ -z "$DOTFILES_USER" ]; then
128126
DOTFILES_USER="$USER"
@@ -141,6 +139,4 @@ if [ -n "$${DOTFILES_URI// }" ]; then
141139
DOTFILES_USER_HOME=$(eval echo ~"$DOTFILES_USER")
142140
sudo -u "$DOTFILES_USER" sh -c "'$CODER_BIN' dotfiles '$DOTFILES_URI' -y 2>&1 | tee '$DOTFILES_USER_HOME'/.dotfiles.log"
143141
fi
144-
fi
145-
146-
echo "Dotfiles installation complete."
142+
fi

0 commit comments

Comments
 (0)