Skip to content

Commit

Permalink
fix: Setup /etc/hosts for running inside devcontainer (argoproj#11104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joibel authored May 23, 2023
1 parent 310bb5a commit 04d527c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/pre-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env sh
set -eux

# Add hosts
sudo bash -c 'echo "127.0.0.1 dex" >> /etc/hosts'
sudo bash -c 'echo "127.0.0.1 minio" >> /etc/hosts'
sudo bash -c 'echo "127.0.0.1 postgres" >> /etc/hosts'
sudo bash -c 'echo "127.0.0.1 mysql" >> /etc/hosts'
sudo bash -c 'echo "127.0.0.1 azurite" >> /etc/hosts'

# install kubernetes
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
k3d cluster get k3s-default || k3d cluster create --wait
Expand Down

0 comments on commit 04d527c

Please sign in to comment.