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

    timoooooo

    05/25/2023, 3:00 PM
    Yes but I tought this is going to be removed
  • a

    Atif

    05/25/2023, 3:01 PM
    aftre this you can only use them as managed variabales
  • b

    BigCheeZ

    05/25/2023, 3:20 PM
    Is there any way to get a user's name when creating a workspace? We can use OIDC with GitLab for users to login. They can then add the SSH key from their Coder account to GitLab for authentication. If they want to add commits though they need set the git user.email and user.name. I can already set user.email using data.coder_workspace.me.owner_email but I do not see a way to set the name. If I can get their name then user does not need to provide any input upon creating a workspace and therefore removes a chance for user input error.
  • s

    salquier

    05/25/2023, 3:25 PM
    data.coder_workspace.me.owner
    contains the username in Coder
  • b

    BigCheeZ

    05/25/2023, 3:27 PM
    Yes, the username is not the name that is needed though. For example, the name should be "John Doe" while the username would be "johndoe".
  • s

    salquier

    05/25/2023, 3:42 PM
    Don't think you can retreive it in the template (other than asking at the workspace creation with
    coder_parameter
    ) as is not seem to be exposed by `coder_workspace`(source => https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace)
  • s

    salquier

    05/25/2023, 3:44 PM
    But if your goal is to correctly link the commit to the user in Gitlab, I think the email is enough (I tested it with my self-hosted Gitlab instance)
  • b

    BigCheeZ

    05/25/2023, 3:46 PM
    Thanks for the help. Yes, I have the user input it manually currently. And you are right, I could set the git user.name to the username and GitLab will not complain. In the git logs though you will see that username is used for the name instead of the actual name. I understand this is not a critical issue, but it would nice to have.
  • c

    CYBER

    05/25/2023, 4:27 PM
    i need help now my pc was install by ransomware
  • t

    timoooooo

    05/25/2023, 5:56 PM
    Okay but how do I define their values then?
  • a

    Atif

    05/25/2023, 7:14 PM
    Check the fly.io example template https://github.com/coder/coder/tree/main/examples/templates/fly-docker-image
  • h

    has9

    05/26/2023, 5:28 PM
    the enterprise base images are built on ubuntu, but could i use redhat ubi instead ?
  • n

    Nano

    05/27/2023, 10:46 PM
    Hello, I am having issues with coder right now. It refuses to build any docker images which is kind of strange. The host machine is working fine, and i ran
    sudo usermod -aG docker coder
    to ensure coder has permisions
  • n

    Nano

    05/27/2023, 10:46 PM

    https://cdn.discordapp.com/attachments/971231372373033030/1112149950780952586/image.png▾

  • n

    Nano

    05/27/2023, 10:47 PM
    This is the first time I have ever had any issue like this
  • o

    OGGY ✓

    05/28/2023, 7:26 AM
    @Atif
  • o

    OGGY ✓

    05/28/2023, 7:26 AM
    Can u help me
  • o

    OGGY ✓

    05/28/2023, 7:26 AM
    In repl code
  • o

    OGGY ✓

    05/28/2023, 7:26 AM
    @camilla @Dean @colin (rust enthusiast)
  • v

    vane

    05/28/2023, 3:07 PM
    i need someone to crack smth for me
  • v

    vane

    05/28/2023, 3:07 PM
    or decompile it
  • n

    Nano

    05/28/2023, 3:25 PM
    ^ @vane @OGGY ✓
  • p

    Phorcys

    05/28/2023, 4:40 PM
    issue lies in your dockerfile
  • p

    Phorcys

    05/28/2023, 4:40 PM
    apt is expecting an input from you (even though you specified -y)
  • p

    Phorcys

    05/28/2023, 4:40 PM
    that's what exit code 100 means
  • p

    Phorcys

    05/28/2023, 4:40 PM
    you need to set the DEBIAN_FRONTEND (unsure, maybe it's called something else) env variable
  • n

    Nano

    05/28/2023, 4:59 PM
    Thank you for the asistance!
  • p

    Phorcys

    05/28/2023, 5:03 PM
    if you need a reference you can see how I do it in uwu/basic-env
  • s

    Sharp

    05/28/2023, 10:23 PM
    Okay so, I am assuming this was me being silly more than anything, but essentially I think I know what is happening with this issue: https://discord.com/channels/747933592273027093/1112136809913254009 When I run
    kubectl
    on a base pod from within k8s, I get
    Copy code
    bash
    ╰─➤  kubectl get pods
    Error from server (Forbidden): pods is forbidden: User "system:serviceaccount:coder:default" cannot list resource "pods" in API group "" in the namespace "coder"
    Then when I run
    kind create cluster
    and let it finish, it then works. But, all golang code I run (my own projects, operators with kubebuilder etc), all complain about the same error. My bet is that they are failing to get the right address. Does anyone know how I go about fixing this?
  • s

    Sharp

    05/28/2023, 10:26 PM
    =================================================================================== Fixed it. You need to specify the full path to the kubeconfig along with any code you run. For example, with the operatorsdk:
    KUBECONFIG="/home/coder/.kube/config" make run