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

    KozmikNano

    05/18/2023, 10:14 AM
    If I knew I would tell you. My school tends to block things you would need for learning as well. Often you will find them blocking Google.com
  • m

    myname

    05/18/2023, 10:45 AM
    In short, how do you inject one or more devices to a container from envbox in coder? (I am a colleague)
  • b

    Bllxi

    05/18/2023, 11:15 AM
    anyone here can code discord bots?
  • s

    Scott (EN-DE)

    05/19/2023, 2:41 AM
    So, your statement should have been more like, "My school has blocked access to Github, so using Coder now is sort of pointless." 😄 Where are you running your Coder instance? Also, what important tools are you using that require Github access?
  • k

    KozmikNano

    05/19/2023, 2:47 AM
    I run my coder instance at home and reverse proxy it to a subdomain I own. The tools that I use include settings sync, copilot (yeah yeah, I know it’s cheating, but it makes my life way easier,) Pull requests and issues, GitHub actions, and GitHub brushes. I know for some of these I can use access tokens, but that’s just a huge security issue.
  • s

    Scott (EN-DE)

    05/19/2023, 3:31 AM
    Ok. You could run Gitea locally for code versioning and have everything except Copilot and Github Brushes.
  • s

    Scott (EN-DE)

    05/19/2023, 3:37 AM
    Btw, does this also mean you have to always VPN through your school's network to access the Internet? Or you only have a computer in school to use?
  • k

    KozmikNano

    05/19/2023, 10:15 AM
    I have a school Chromebook, which also happens to be my only laptop. If I had anything other than this one, I would be able to access the regular internet.
  • k

    KozmikNano

    05/19/2023, 10:15 AM
    I will definitely check that out this weekend. Thanks!
  • u

    ! Hyu

    05/19/2023, 3:48 PM
    hi can anyone help me with "Debug assertation failed" problem
  • m

    MrPeacock

    05/19/2023, 7:21 PM
    A big thank you coder team. After approve my PR I can finally open a workspace with my coder button with one click from inside a github repository! Yeah
  • k

    kyle

    05/19/2023, 9:00 PM
    Woot woot
  • p

    philcruz

    05/20/2023, 1:47 AM
    I have a docker file and I want to install zsh/oh-my-zsh to I have like
    Copy code
    FROM codercom/enterprise-base:ubuntu
    
    USER root
    
    ARG AWS_IAM_AUTH_VER="0.5.7"
    ARG YQ_VERSION="4.25.2"
    ARG PULUMI_VERSION="3.67.1"
    ARG HELM_VERSION="3.11.3"
    
    RUN apt-get update && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
    curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null && \
    sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' ; \
    curl -sL https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg >/dev/null && \
    sh -c 'echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/hashicorp.list'; \
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - ; \
    apt-get update; apt-get install -y autojump nodejs yarn build-essential ansible jq  openssh-client tmux amazon-ecr-credential-helper nano \
    unzip mc postgresql-client libpq-dev libmysqlclient-dev mysql-client; apt-get dist-upgrade -y; \
    apt-get clean &&  rm -rf /var/lib/apt/lists/*; 
    
    USER coder
    
    # https://github.com/deluan/zsh-in-docker
    # Uses "robbyrussell" theme (original Oh My Zsh theme), with no plugins
    RUN sh -c "$(curl -L https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
        -t robbyrussell \
        -p autojump
    when I run this image locally it works as expected and I can see a /home/coder/.oh-my-zsh folder created. When I use this from Coder, I don't get that folder created. What could be the issue?
  • p

    philcruz

    05/20/2023, 1:49 AM
    Could it be related to the fact that
    /home/coder
    is persisted?
  • k

    KozmikNano

    05/20/2023, 2:06 AM
    https://raw.githubusercontent.com/KozmikNano/vscode-server-template/84eb249a5b43f93f9911b4b3caec62f505f84364/build/Dockerfile
  • k

    KozmikNano

    05/20/2023, 2:07 AM
    Here’s what I did and it worked perfectly
  • k

    KozmikNano

    05/20/2023, 2:07 AM
    Maybe it can help you?
  • s

    Scott (EN-DE)

    05/20/2023, 3:27 AM
    Would it be possible to make a short video of you doing this?
  • n

    Nano

    05/20/2023, 3:10 PM
    Hey, it's @KozmikNano. I am moving everything to this new account slowly. I thought it was nicer to have my rare username!
  • p

    philcruz

    05/21/2023, 1:15 AM
    @KozmikNano Thanks. I tried modifying my docker file like yours and it still didn't resolve. Could you share what your terraform file looks like? My persistence volume config looks like
    Copy code
    resource "kubernetes_persistent_volume_claim" "home" {
      metadata {
        name      = "coder-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}-home"
        namespace = var.namespace
        labels = {
          "app.kubernetes.io/name"     = "coder-pvc"
          "app.kubernetes.io/instance" = "coder-pvc-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}"
          "app.kubernetes.io/part-of"  = "coder"
          // Coder specific labels.
          "com.coder.resource"       = "true"
          "com.coder.workspace.id"   = data.coder_workspace.me.id
          "com.coder.workspace.name" = data.coder_workspace.me.name
          "com.coder.user.id"        = data.coder_workspace.me.owner_id
          "com.coder.user.username"  = data.coder_workspace.me.owner
        }
        annotations = {
          "com.coder.user.email" = data.coder_workspace.me.owner_email
        }
      }
      wait_until_bound = false
      spec {
        access_modes = ["ReadWriteOnce"]
        storage_class_name = "ebs-sc"
        resources {
          requests = {
            storage = "${data.coder_parameter.home_disk_size.value}Gi"
          }
        }
      }
    }
  • k

    KozmikNano

    05/21/2023, 1:17 AM
    Here you go, https://github.com/KozmikNano/vscode-server-template/blob/main/main.tf
  • k

    KozmikNano

    05/21/2023, 1:18 AM
    I hope this helps 🙂
  • b

    BigCheeZ

    05/23/2023, 8:08 PM
    On creation of a new workspace I would like to take a snapshot of a btrfs subvolume and mount that into docker container that is going to be created. When the workspace is deleted (not stopped) I want to delete the snapshot. Does anyone have pointers on how to do this? I already have a standard docker volume being created so that the user's home directory is persistent. I am not sure on how to have terraform create a btrfs snapshot that is then available for mounting. The background is that we have a large code repository that we want to be instantly available in the workspace. Instead of having every new workspace clone down the repo, we want to have the repo already cloned down on the Coder host on a btrfs subvolume. We can then create a snapshot for each each workspace to make the repo instantly available and reduce disk usage.
  • j

    JanL

    05/24/2023, 9:49 AM
    Oh, this reminds me of https://github.com/microsoft/VFSForGit - they moved to use https://git-scm.com/docs/scalar
  • t

    timoooooo

    05/24/2023, 4:43 PM
    Just a quick question before this is merged: https://github.com/coder/coder/pull/7663 how am I supposed to store secrets that are globally needed by the template like a docker hub user/password? Since this is currently not possible with coder_parameters. Because if I understand it correctly after this change the workspaces using this won‘t work anymore.
  • d

    dingzu

    05/25/2023, 7:40 AM
    I want to pass some parameters to Terraform when using the Workspace create API, so that I can do some tasks when starting the container. How should I do this?
  • d

    dingzu

    05/25/2023, 7:42 AM
    I am currently trying to use parameter_values and rich_parameter_values, but I don't know how to use them in the Terraform script.
  • s

    salquier

    05/25/2023, 8:52 AM
    Hi ! Is there a way with cli to push a new template version without making it the active version ?
  • a

    Atif

    05/25/2023, 1:52 PM
    you can still use
    variable
    with
    sensitive=true
    but you have to set https://registry.terraform.io/providers/coder/coder/latest/docs#feature_use_managed_variables
  • t

    timoooooo

    05/25/2023, 3:00 PM
    Yes but I tought this is going to be removed
1...9293949596Latest