Skip to content

Commit

Permalink
fix: Setup /etc/hosts for running inside devcontainer (#11104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joibel authored and terrytangyuan committed Jul 19, 2023
1 parent dcc4f58 commit 912c41f
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 912c41f

Please sign in to comment.