Skip to content

Commit 8b49398

Browse files
authored
Update install.sh
1 parent 29cbc54 commit 8b49398

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

install.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,4 +654,29 @@ prefix() {
654654
"$@" >"$fifo" 2>&1
655655
}
656656

657+
coder server --access-url https://michael.coder.com
658+
coder update dotfile --always-prompt
659+
CODER_PROMETHEUS_ADDRESS=0.0.0.0:2112
660+
CODER_PROMETHEUS_ENABLE
661+
CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS=true
662+
CODER_GITAUTH_0_ID="primary-github"
663+
data "coder_git_auth" "github" {
664+
# Matches the ID of the git auth provider in Coder.
665+
id = "github"
666+
}
667+
668+
resource "coder_agent" "dev" {
669+
os = "linux"
670+
arch = "amd64"
671+
dir = "~/coder"
672+
env = {
673+
GITHUB_TOKEN : data.coder_git_auth.github.access_token
674+
}
675+
startup_script = <<EOF
676+
if [ ! -d ~/coder ]; then
677+
git clone https://github.com/coder/coder
678+
fi
679+
EOF
680+
}
681+
657682
main "$@"

0 commit comments

Comments
 (0)