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

    Phorcys

    03/23/2023, 8:25 AM
    @sharkymark have you tried using this plugin with guac? https://guacamole.apache.org/doc/0.9.5/gug/noauth.html
  • a

    Amr

    03/23/2023, 11:55 AM
    Hello. is it possible to downgrade a workspace to a previous version? I can't find the change version button that was there
  • v

    VaneixusPrime

    03/23/2023, 12:10 PM
    it should be in the dropdown menu next to the stop/start button
  • b

    Ben

    03/23/2023, 12:10 PM
    We actually removed this, @Amr is right.
  • b

    Ben

    03/23/2023, 12:11 PM
    So the answer is no, sadly. You can't downgrade versions at this point. We plan on adding a concept of branches/tags where this is supported again, but it's still in progress.
  • b

    Ben

    03/23/2023, 12:12 PM
    We removed this because many of our users wanted to ensure developers are all using the latest version. We want to ideally support both, but first removed the version selector so we can work on a non-linear concept of template "branches/tags"
  • v

    VaneixusPrime

    03/23/2023, 12:12 PM
    you can try to push the older version, if it's version controlled, as an "Update", update your workspace, then actually push the latest commit
  • a

    Amr

    03/23/2023, 12:14 PM
    ah I see. is this why workspaces update automatically on stop?
  • a

    Amr

    03/23/2023, 12:18 PM
    branches/tags is what I was looking for. the problem I had is that my workspace updated to a version of the template that was in development and isn't ready I assumed I can work on finishing the template and update workspaces when it's fully ready
  • b

    Ben

    03/23/2023, 12:24 PM
    Ah, I see. Yeah I have ran into similar issues.
  • b

    Ben

    03/23/2023, 12:25 PM
    For now, I iterate using a "duplicate" template then push to the main one when it's ready. I know that's not ideal
  • p

    Phorcys

    03/23/2023, 12:50 PM
    git integration eta wen
  • s

    sharkymark

    03/23/2023, 1:17 PM
    I did, it was deprecated.
    0.9.5
    is a several year old version. I just stick a static config file in the container image with a user
    coder
    and password
    password
  • p

    Phorcys

    03/23/2023, 1:18 PM
    oh yeah i didn't see
  • s

    sharkymark

    03/23/2023, 1:18 PM
    Feel free to reach out to me mark at coder dot com - I am vp sales
  • p

    Phorcys

    03/23/2023, 1:18 PM
    maybe there would be a way to autofill ?
  • e

    Edmond

    03/23/2023, 2:21 PM
    @kyle hey - re: Issue#6746
  • e

    Edmond

    03/23/2023, 2:22 PM
    new to discord (I know) - let me know how I can help troubleshoot this 🙂
  • c

    cfouche

    03/23/2023, 6:33 PM
    I am currently refactoring my templates, what the difference between string and list(sting) in type in the coder_parameter data source
  • c

    cfouche

    03/23/2023, 6:33 PM
    ?
  • c

    colin (rust enthusiast)

    03/23/2023, 6:35 PM
    string
    only accepts one value while
    list(string)
    accepts many
  • c

    cfouche

    03/23/2023, 6:40 PM
    so if I want a text input (like the 1), I use sting but if I want a select between value I use list(string) ?
  • c

    colin (rust enthusiast)

    03/23/2023, 6:48 PM
    if you want a selector like 2 you can use `option`s https://coder.com/docs/v2/latest/templates/parameters#options
  • c

    colin (rust enthusiast)

    03/23/2023, 6:48 PM
    list(string)
    allows you to provide multiple values, rather than selecting a single one
  • c

    cfouche

    03/23/2023, 7:03 PM
    So for the 1 I use :
    Copy code
    data "coder_parameter" "docker_host" {
      name = "Docker Host"
      default = "unix:///var/run/docker.sock"
      description = "Address of the Docker host ([unix://], [ssh://], [tcp://])"
      icon = "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/docker.png"
      mutable = false
      type = "string"
      validation {
        error = "Invalid Docker Host !"
        regex = "(unix://)|(tcp://)|(ssh://)"
      }
    }
    and for the 2, i use this :
    Copy code
    data "coder_parameter" "docker_host_arch" {
      neame = "Docker Host Architecture"
      default = "amd64"
      description = "CPU architecture of the Docker host"
      icon = "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/docker.png"
      mutable = false
      type = "string"
      option {
        name = "Amd64 CPU Architecture"
        value = "amd64"
      }
      option {
        name = "Arm64 CPU Architecture"
        value = "arm64"
      }
      validation {
        error = "Invalid Docker Host Architecture !"
        regex = "(amd64)|(arm64)"
      }
    }
  • v

    vakfu

    03/23/2023, 8:22 PM
    @colin (rust enthusiast) can you help me
  • v

    vakfu

    03/23/2023, 8:23 PM
    i write a app i need a tester
  • v

    vakfu

    03/23/2023, 8:23 PM
    i create premium version but its not working
  • c

    colin (rust enthusiast)

    03/23/2023, 8:24 PM
    sorry, this is not the server for that
  • v

    vakfu

    03/23/2023, 8:25 PM
    i can send my code
1...707172...96Latest