https://linen.dev logo
Join Discord
Powered by
# general
  • The group-creation documentation is also missing
    j

    JanL

    04/05/2023, 7:21 PM
    The group-creation documentation is also missing
  • or is it not available via API?
    j

    JanL

    04/05/2023, 7:21 PM
    or is it not available via API?
  • https://github.com/coder/coder/blob/main/enterprise/coderd/groups.go#L20
    j

    JanL

    04/05/2023, 7:22 PM
    https://github.com/coder/coder/blob/main/enterprise/coderd/groups.go#L20
  • https://github.com/coder/coder/pull/7021 fixed, just a typo
    c

    colin (rust enthusiast)

    04/05/2023, 7:30 PM
    https://github.com/coder/coder/pull/7021 fixed, just a typo
  • Thank you!
    j

    JanL

    04/05/2023, 7:32 PM
    Thank you!
  • while users are a global concept
    c

    colin (rust enthusiast)

    04/05/2023, 7:33 PM
    while users are a global concept
  • well, my api wrapper just does a lookup now ```python @property def _user(self) -> CoderUser: if self._cur_user is None: self._cur_user = CoderUser.parse_obj(self._get(self._session, "users/me")) return self._cur_user @property def _org_id(self) -> uuid.UUID: return self._user.organization_ids[0] ``` .. works for me 🤷
    j

    JanL

    04/05/2023, 7:34 PM
    well, my api wrapper just does a lookup now
    Copy code
    python
        @property
        def _user(self) -> CoderUser:
            if self._cur_user is None:
                self._cur_user = CoderUser.parse_obj(self._get(self._session, "users/me"))
    
            return self._cur_user
    
        @property
        def _org_id(self) -> uuid.UUID:
            return self._user.organization_ids[0]
    .. works for me 🤷
  • If I want to add a user to the group I need to patch the whole group object with all members I intent to have in it - is this right?
    j

    JanL

    04/05/2023, 8:39 PM
    If I want to add a user to the group I need to patch the whole group object with all members I intent to have in it - is this right?
  • We re having a hard time installing Nix
    o

    ossareh

    04/05/2023, 8:47 PM
    We're having a hard time installing Nix in the codercom/enterprise-base:ubuntu image. Nix requires access to /proc, which is not available in the kubernetes context. Does anyone have any thoughts on a good path forward here?
    • 1
    • 1
  • ok, this does not look like wahts in the documentation for the PATCH request
    j

    JanL

    04/05/2023, 9:00 PM
    ok, this does not look like wahts in the documentation for the PATCH request

    https://cdn.discordapp.com/attachments/971231372373033030/1093278978170687620/Screenshot_20230405_225954.pngâ–¾

  • Hi. Is it possible to mount docker.sock from the host K8s containerd socket instead of a privileged sidecar to build new containers in the workspace?
    m

    myname

    04/06/2023, 5:58 AM
    Hi. Is it possible to mount docker.sock from the host K8s containerd socket instead of a privileged sidecar to build new containers in the workspace?
  • I do not recommend to do any of this because you bypass all resource allocation mechanisms of k8s with that and open a way to instability.
    j

    JanL

    04/06/2023, 8:14 AM
    I do not recommend to do any of this because you bypass all resource allocation mechanisms of k8s with that and open a way to instability.
  • We have had success with rotless buildx instances in k8s (they don't need to run in privileged containers) and kaniko (which might not fit your usecase)
    j

    JanL

    04/06/2023, 8:16 AM
    We have had success with rotless buildx instances in k8s (they don't need to run in privileged containers) and kaniko (which might not fit your usecase)
  • for buildx rootless we only needed to disable the default apparmor policies for the container (for a bare-metal kubeadm deployed k8s on debian stable machines)
    j

    JanL

    04/06/2023, 8:17 AM
    for buildx rootless we only needed to disable the default apparmor policies for the container (for a bare-metal kubeadm deployed k8s on debian stable machines)
  • also keep in mind, that gitpod meddled heavily with the underlying container runtime, replacing its device-cgroup-policies and such. If you're fine with going this path, sysbox might be an option for you, although their future seems a bit unclear to me.
    j

    JanL

    04/06/2023, 8:19 AM
    also keep in mind, that gitpod meddled heavily with the underlying container runtime, replacing its device-cgroup-policies and such. If you're fine with going this path, sysbox might be an option for you, although their future seems a bit unclear to me.
  • apart from this, you totally can mount the host containerd socket inside your container. But then you're not any bit less unsecure than using privileged containers.
    j

    JanL

    04/06/2023, 8:21 AM
    apart from this, you totally can mount the host containerd socket inside your container. But then you're not any bit less unsecure than using privileged containers.
  • <@735445183365382216> - Out of curiosity, what is the building of the new containers for?
    s

    Scott (EN-DE)

    04/06/2023, 9:03 AM
    @myname - Out of curiosity, what is the building of the new containers for?
  • You can just use sysbox on this single node and set the container runtime for sysadmins workspaces to this runtime.
    j

    JanL

    04/06/2023, 12:54 PM
    You can just use sysbox on this single node and set the container runtime for sysadmins workspaces to this runtime.
  • You can even give him a node where he gets VMs deployed as workspace via libvirt or whatever
    j

    JanL

    04/06/2023, 12:59 PM
    You can even give him a node where he gets VMs deployed as workspace via libvirt or whatever
  • With coder you're not tied to quirks because your workflow/usecase does not fit to what the vendor had in mind. It's much more flexible. And the best thing: From a users/admin point of view, it's massively reduced in complexity compared to gitpod. This is especially visible on updates - which are basically a new binary and not tens of GB of container images, plus the fear that any of the hundreds of components will silently fail after the update is made.
    j

    JanL

    04/06/2023, 1:03 PM
    With coder you're not tied to quirks because your workflow/usecase does not fit to what the vendor had in mind. It's much more flexible. And the best thing: From a users/admin point of view, it's massively reduced in complexity compared to gitpod. This is especially visible on updates - which are basically a new binary and not tens of GB of container images, plus the fear that any of the hundreds of components will silently fail after the update is made.
  • Yeah, I'm not the most experienced in all this and when I went to look at Gitpod and how my use case could be handled by it all I could come up with was - "WTF? 🤯 ". When I found Coder, it was love at first sight, because it all just made sense and I can fit it to my workflows easily. In other words, Coder is one of those "10x" tools. 🙂
    s

    Scott (EN-DE)

    04/06/2023, 1:12 PM
    Yeah, I'm not the most experienced in all this and when I went to look at Gitpod and how my use case could be handled by it all I could come up with was - "WTF? 🤯 ". When I found Coder, it was love at first sight, because it all just made sense and I can fit it to my workflows easily. In other words, Coder is one of those "10x" tools. 🙂
  • I am not a sysadmin or other, just a student, the thing I really like about Coder is the ease of use and the "tech-lock" (you can use basically anything that have a terraform module), I am not ready to go in the K8s rabbit hole, and the fact you can use docker with sysbox to have micro-VM to dev is really cool
    c

    cfouche

    04/06/2023, 1:16 PM
    I am not a sysadmin or other, just a student, the thing I really like about Coder is the ease of use and the "tech-lock" (you can use basically anything that have a terraform module), I am not ready to go in the K8s rabbit hole, and the fact you can use docker with sysbox to have micro-VM to dev is really cool
  • I am a student and who works on machine learning research and was looking for an easy way to share our GPU servers within the lab members. I first tried gitpod self hosted but couldn't set it up. Then I came across Coder and it was exactly what I was looking for. I already had a docker image for my use case and it was super easy to create a template and onboard everyone in like 1 day. After VS code desktop everyone loves it more.
    a

    Atif

    04/06/2023, 2:26 PM
    I am a student and who works on machine learning research and was looking for an easy way to share our GPU servers within the lab members. I first tried gitpod self hosted but couldn't set it up. Then I came across Coder and it was exactly what I was looking for. I already had a docker image for my use case and it was super easy to create a template and onboard everyone in like 1 day. After VS code desktop everyone loves it more.
  • Thanks, everyone
    m

    myname

    04/06/2023, 4:20 PM
    Thanks, everyone
  • I have a question about the latest release. I've seen that the max TF version got a bump up. Does this mean that I have to install a newer version (I build a container with TF included as the deployment has no internet access to download it itself)?
    j

    JanL

    04/06/2023, 10:54 PM
    I have a question about the latest release. I've seen that the max TF version got a bump up. Does this mean that I have to install a newer version (I build a container with TF included as the deployment has no internet access to download it itself)?
  • i believe it’s sensitive down to the patch version
    c

    colin (rust enthusiast)

    04/07/2023, 1:29 AM
    i believe it’s sensitive down to the patch version
  • So I have to change the version to 1.3.9? (I don't really get why there is more than one version specified anyway)
    j

    JanL

    04/07/2023, 1:35 AM
    So I have to change the version to 1.3.9? (I don't really get why there is more than one version specified anyway)
  • Nah, we support a range. The upper bound has been lifted, but the lower bound hasn't.
    k

    kyle

    04/07/2023, 3:46 AM
    Nah, we support a range. The upper bound has been lifted, but the lower bound hasn't.
  • ah my b forgot we changed
    c

    colin (rust enthusiast)

    04/07/2023, 3:50 AM
    ah my b forgot we changed
  • How can I mount host directory to docker using terraform file?
    c

    ChromMob

    04/08/2023, 10:00 AM
    How can I mount host directory to docker using terraform file?
1...787980...96Latest