Skip to content

Commit

Permalink
simplify devcontainer based on feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <[email protected]>
  • Loading branch information
csantanapr committed Mar 4, 2024
1 parent 415d12a commit 9cc24db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"postCreateCommand": ".devcontainer/postCreateCommand.sh",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/go/src/github.com/cnoe-io/idpbuilder,type=bind",
"workspaceFolder": "/home/vscode/go/src/github.com/cnoe-io/idpbuilder",
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/home/vscode/go/bin"
}
"workspaceFolder": "/home/vscode/idpbuilder"
}
3 changes: 0 additions & 3 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ sudo mv ./kubectl /usr/local/bin/kubectl
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

# Make sure go path is owned by vscode
sudo chown -R vscode:vscode /home/vscode/go

# setup autocomplete for kubectl and alias k
mkdir $HOME/.kube
echo "source <(kubectl completion bash)" >> $HOME/.bashrc
Expand Down

0 comments on commit 9cc24db

Please sign in to comment.