https://linen.dev logo
Join Discord
Powered by
# general
  • l

    Le Poulpe

    03/28/2023, 10:08 AM
    I found 2 bugs in documentation : https://coder.com/docs/v2/latest/admin/auth
  • l

    Le Poulpe

    03/28/2023, 10:08 AM
    ''' coder: env: - name: CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS value: true - name: CODER_OAUTH2_GITHUB_ALLOWED_ORGS value: "your-org" - name: CODER_OAUTH2_GITHUB_CLIENT_ID value: "533...des" - name: CODER_OAUTH2_GITHUB_CLIENT_SECRET value: "G0CSP...7qSM" - name: CODER_OAUTH2_GITHUB_ALLOW_EVERYONE value: true '''
  • l

    Le Poulpe

    03/28/2023, 10:08 AM
    1 - true velues need quotes
  • l

    Le Poulpe

    03/28/2023, 10:09 AM
    2 - you can't have both CODER_OAUTH2_GITHUB_ALLOWED_ORGS and CODER_OAUTH2_GITHUB_ALLOW_EVERYONE
  • e

    Erwin

    03/28/2023, 10:09 AM
    If so I can host my public bot on it
  • p

    Phorcys

    03/28/2023, 10:22 AM
    why would you need to do that specifically in Coder? obviously, yes, you can, but Coder's point is to use workspaces as development environments so you can develop from anywhere/any device
  • e

    Erwin

    03/28/2023, 11:17 AM
    I know
  • h

    HeisenBro

    03/28/2023, 12:10 PM
    any source where i can see how to manage template variables
  • p

    Phorcys

    03/28/2023, 12:12 PM
    what do you mean by template variables ?
  • h

    HeisenBro

    03/28/2023, 12:12 PM
  • d

    daVinci2793

    03/28/2023, 5:19 PM
    Is there a resource I can reference for using dotfiles properly? I don't quite understand how to use that feature.
  • d

    daVinci2793

    03/28/2023, 5:20 PM
  • p

    Phorcys

    03/28/2023, 5:31 PM
    i don't remember if there's one but you can simply run ``coder dotfiles -y `` in the template's ``startup_script``
  • p

    Phorcys

    03/28/2023, 5:31 PM
    by the way, your template should use rich parameters (``coder_parameter`` blocks) instead of ``variable``s
  • d

    daVinci2793

    03/28/2023, 5:32 PM
    This is just the docker with dotfiles starter template, lol.
  • d

    daVinci2793

    03/28/2023, 5:32 PM
    Is the URI something like "https://github.com/Bash-it/bash-it.git"
  • p

    Phorcys

    03/28/2023, 5:32 PM
    i swear it was updated
  • p

    Phorcys

    03/28/2023, 5:32 PM
    it is yes
  • p

    Phorcys

    03/28/2023, 5:33 PM
    ``coder dotfiles`` clones that and runs the first script it finds with a specific name (I don't remember the name but it's something like ``setup.sh``)
  • d

    daVinci2793

    03/28/2023, 5:33 PM
    That makes a lot more sense.
  • d

    daVinci2793

    03/28/2023, 5:33 PM
    Thanks for the context.
  • p

    Phorcys

    03/28/2023, 5:34 PM
    I think there's a dotfiles section in the coder docs if you wanna look
  • d

    daVinci2793

    03/28/2023, 5:36 PM
    Ahh, yes.. It links to the codespaces docs which explain what you just said.
  • d

    daVinci2793

    03/28/2023, 5:37 PM
    I usually check the docs first, but never understood dotfiles.
  • p

    Phorcys

    03/28/2023, 9:03 PM
    is there a way to pre-build the docker image for all workspaces ?
  • p

    Phorcys

    03/28/2023, 9:03 PM
    every time I create a new workspace it's building the image again
  • p

    Phorcys

    03/28/2023, 9:03 PM
    here's my image definition
    Copy code
    c
    resource "docker_image" "basic_env" {
      name = "uwunet/basic-env:latest"
    
      build {
        context = "./docker"
        tag     = ["uwunet/basic-env", "uwunet/basic-env:latest", "uwunet/basic-env:v0.3"]
      }
    
      triggers = {
        dir_sha1 = sha1(join("", [for f in fileset(path.module, "docker/*") : filesha1(f)]))
      }
      
      keep_locally = true
    }
  • v

    VaneixusPrime

    03/28/2023, 11:52 PM
    your trigger might be causing it
  • v

    VaneixusPrime

    03/28/2023, 11:53 PM
    as for prebuild, I guess you can deploy to a local registry
  • s

    Scott (EN-DE)

    03/29/2023, 3:44 AM
    Is that specially built for the workspace? Is that necessary?
1...747576...96Latest