From 8b493987084c7843795c511df43791028c4e6b19 Mon Sep 17 00:00:00 2001 From: Michael Van Asten <106293630+mjasten32@users.noreply.github.com> Date: Wed, 26 Apr 2023 05:35:32 -0500 Subject: [PATCH 1/2] Update install.sh --- install.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/install.sh b/install.sh index 3c0b7b2781e36..b7e0d2b3598fd 100755 --- a/install.sh +++ b/install.sh @@ -654,4 +654,29 @@ prefix() { "$@" >"$fifo" 2>&1 } +coder server --access-url https://michael.coder.com +coder update dotfile --always-prompt +CODER_PROMETHEUS_ADDRESS=0.0.0.0:2112 +CODER_PROMETHEUS_ENABLE +CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS=true +CODER_GITAUTH_0_ID="primary-github" +data "coder_git_auth" "github" { + # Matches the ID of the git auth provider in Coder. + id = "github" +} + +resource "coder_agent" "dev" { + os = "linux" + arch = "amd64" + dir = "~/coder" + env = { + GITHUB_TOKEN : data.coder_git_auth.github.access_token + } + startup_script = < Date: Wed, 26 Apr 2023 07:53:04 -0500 Subject: [PATCH 2/2] Update install.sh --- install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index b7e0d2b3598fd..465d10ad47581 100755 --- a/install.sh +++ b/install.sh @@ -654,8 +654,7 @@ prefix() { "$@" >"$fifo" 2>&1 } -coder server --access-url https://michael.coder.com -coder update dotfile --always-prompt +CODER_ACCESS_URL=https://Coder.Michael.com CODER_PROMETHEUS_ADDRESS=0.0.0.0:2112 CODER_PROMETHEUS_ENABLE CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS=true