Skip to content

chore(dogfood): automatically login coder cli in dogfood workspaces #9462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore(dogfood): automatically login to coder in dogfood template
This will auto-authenticate a user with coder in their dogfood workspace.
  • Loading branch information
matifali authored Aug 31, 2023
commit 9bb674c4e0934a68c1df8162fee2c92fb5170a1d
2 changes: 2 additions & 0 deletions dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ resource "docker_container" "workspace" {
runtime = "sysbox-runc"
env = [
"CODER_AGENT_TOKEN=${coder_agent.dev.token}",
"CODER_SESSION_TOKEN=${data.coder_workspace.me.owner_session_token}",
"CODER_URL=${data.coder_workspace.me.access_url}",
]
host {
host = "host.docker.internal"
Expand Down