Skip to content

Commit

Permalink
Update dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
waeljammal committed Jul 5, 2024
1 parent d049153 commit 97a3939
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .devcontainer/on-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,18 @@ git config pull.rebase true
git clone https://github.com/azarc-io/verathread-dev-toolkit.git /workspaces/verathread-dev-toolkit
git -C /workspaces/verathread-dev-toolkit pull

## add go bin path to rc
echo 'GOPRIVATE=github.com/azarc-io' >> ~/.zshrc
echo 'GOPRIVATE=github.com/azarc-io' >> ~/.bashrc

## install task.dev
go install github.com/go-task/task/v3/cmd/task@latest

## run setup task
task setup

## update hosts file
echo 127.0.0.1 dev.cluster.local | sudo tee -a /etc/hosts
echo 127.0.0.1 k3d-local-registry | sudo tee -a /etc/hosts

## spin up k3d from the toolkit
pushd /workspaces/verathread-dev-toolkit
task setup
task k3d:create
kubectl wait node --all --for condition=ready --timeout=600s
kubectl wait node --all --for condition=ready --timeout=120s
sleep 15
task k3d:install:charts
popd

Expand Down
7 changes: 7 additions & 0 deletions .devcontainer/post-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@

echo "post-start start"

## update hosts file
echo 127.0.0.1 dev.cluster.local | sudo tee -a /etc/hosts
echo 127.0.0.1 k3d-local-registry | sudo tee -a /etc/hosts

## add go bin path to rc
echo 'GOPRIVATE=github.com/azarc-io' >> ~/.zshrc
echo 'GOPRIVATE=github.com/azarc-io' >> ~/.bashrc

echo "post-start complete"

0 comments on commit 97a3939

Please sign in to comment.