Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. Code Server (Vs code online)

Code Server (Vs code online)

Scheduled Pinned Locked Moved App Wishlist
91 Posts 19 Posters 26.8k Views 19 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • girishG girish

      @c0decafe I don't know vscode that well enough. But does it allow connecting an external server to launch docker containers ? (instead of using the docker addon). If so, that's the ideal setup imo. Trying to use cloudron's internal docker network to launch app dev containters will bomb spectacularly at some point πŸ™‚

      C Offline
      C Offline
      c0decafe
      wrote on last edited by
      #81

      @girish I dropped the idea of using docker for the code-server package, latest push removed the docker dependencies.

      I'll add README when I get the chance.

      Remote docker should work for coder however, also supports all major public clouds, but that's for another thread I suppose.

      1 Reply Last reply
      1
      • timconsidineT Online
        timconsidineT Online
        timconsidine
        App Dev
        wrote on last edited by
        #82

        @girish are you planning to add @c0decafe package to App Store ?

        Personally I don’t see much advantage of having an online dev environment without some dev languages, as @murgero does. But interested to try.

        @murgero is your repo available ?

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #83

          I wasn't sure what the current state is. Did you try it out alraedy @timconsidine ? @c0decafe can you tell us the state?

          1 Reply Last reply
          0
          • timconsidineT Online
            timconsidineT Online
            timconsidine
            App Dev
            wrote on last edited by timconsidine
            #84

            @girish not tried it yet because it appears to not support added languages like nodejs.
            I'm testing a self-built package based on openvscode-server with added nodejs and Flutter.
            If I get it working with authentication, I will look at packaging for Cloudron.
            But interested in any updates @c0decafe can give us.

            1 Reply Last reply
            0
            • timconsidineT Online
              timconsidineT Online
              timconsidine
              App Dev
              wrote on last edited by
              #85

              Got custom openvscode-server with added node and flutter as a native Docker deployment. Not so difficult.
              Hard part is to work out how to package it for Cloudron. <scratches head>

              robiR 1 Reply Last reply
              0
              • timconsidineT timconsidine

                Got custom openvscode-server with added node and flutter as a native Docker deployment. Not so difficult.
                Hard part is to work out how to package it for Cloudron. <scratches head>

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by robi
                #86

                @timconsidine it's only flutter and the app code that's missing from the base image, no?

                Conscious tech

                1 Reply Last reply
                0
                • timconsidineT Online
                  timconsidineT Online
                  timconsidine
                  App Dev
                  wrote on last edited by
                  #87

                  While researching, I tried the linuxserver docker for openvscode-server and it didn’t have nodejs.
                  But yes node is in Cloudron base so may not have to add it.

                  1 Reply Last reply
                  0
                  • timconsidineT Online
                    timconsidineT Online
                    timconsidine
                    App Dev
                    wrote on last edited by timconsidine
                    #88

                    So I built @c0decafe package for codeserver.

                    1st observations :

                    • slick (simple in a good way) Dockerfile πŸ‘
                    • flawless build and deploy πŸ‘
                    • supports php, node, python3 'out of the box' as part of Cloudron base image πŸ‘
                    • not sure if some dev tasks might need user cloudron to be part of sudo (but maybe not)
                    • read-only /app/code etc makes installing Flutter bit more complex : still working on it
                    • theme gets set nicely on first run, but lost on reinstall
                    • supports adding VS Code extensions : maybe not all but added one flawlessly πŸ‘
                    • no support for DinD or DooD : understand the reasons & limitations

                    Generally very nice package.
                    I would recommend being available on App Store as a good dev / editor environment.
                    In current scope, fairly easy to maintain for upgrades.
                    Definitely addresses a number of dev use cases (if not all, but that's complex in itself)

                    Adding additional dev languages might be needed for some use cases, but that adds significantly to image size.
                    And maybe raises issues of maintainability of version upgrades, core package and dev addons.
                    So not sure how this functionality can be implemented or maintained.

                    Depending on use case, Docker support might be an issue.
                    I have a custom version of openvscode-server running in Docker on another VPS, and I have been able to get DooD support by adding a volume label -v /var/run/docker.sock:/var/run/docker.sock`.

                    Sidenote on Flutter : getting Flutter installed and available may not be too difficult.
                    But for a good dev environment, Flutter needs stuff like AndroidStudio, some Chrome engine and Xcode for iOS dev.
                    In a hosted dev environment, this is difficult/impossible.
                    So one probably needs a local build/compile/test environment.
                    But then why not do everything locally ?

                    Despite the limitations on scope, I do think Codeserver on Cloudron would be a good addition.
                    Other PaaS have similar, so it might be a case of keeping some feature-equivalence with them.

                    girishG 1 Reply Last reply
                    4
                    • timconsidineT timconsidine

                      So I built @c0decafe package for codeserver.

                      1st observations :

                      • slick (simple in a good way) Dockerfile πŸ‘
                      • flawless build and deploy πŸ‘
                      • supports php, node, python3 'out of the box' as part of Cloudron base image πŸ‘
                      • not sure if some dev tasks might need user cloudron to be part of sudo (but maybe not)
                      • read-only /app/code etc makes installing Flutter bit more complex : still working on it
                      • theme gets set nicely on first run, but lost on reinstall
                      • supports adding VS Code extensions : maybe not all but added one flawlessly πŸ‘
                      • no support for DinD or DooD : understand the reasons & limitations

                      Generally very nice package.
                      I would recommend being available on App Store as a good dev / editor environment.
                      In current scope, fairly easy to maintain for upgrades.
                      Definitely addresses a number of dev use cases (if not all, but that's complex in itself)

                      Adding additional dev languages might be needed for some use cases, but that adds significantly to image size.
                      And maybe raises issues of maintainability of version upgrades, core package and dev addons.
                      So not sure how this functionality can be implemented or maintained.

                      Depending on use case, Docker support might be an issue.
                      I have a custom version of openvscode-server running in Docker on another VPS, and I have been able to get DooD support by adding a volume label -v /var/run/docker.sock:/var/run/docker.sock`.

                      Sidenote on Flutter : getting Flutter installed and available may not be too difficult.
                      But for a good dev environment, Flutter needs stuff like AndroidStudio, some Chrome engine and Xcode for iOS dev.
                      In a hosted dev environment, this is difficult/impossible.
                      So one probably needs a local build/compile/test environment.
                      But then why not do everything locally ?

                      Despite the limitations on scope, I do think Codeserver on Cloudron would be a good addition.
                      Other PaaS have similar, so it might be a case of keeping some feature-equivalence with them.

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #89

                      @timconsidine thanks for testing it out, will try this out at some point. Giving access to docker itself is complicated and has to be reviewed thoroughly.

                      timconsidineT 1 Reply Last reply
                      0
                      • girishG girish

                        @timconsidine thanks for testing it out, will try this out at some point. Giving access to docker itself is complicated and has to be reviewed thoroughly.

                        timconsidineT Online
                        timconsidineT Online
                        timconsidine
                        App Dev
                        wrote on last edited by
                        #90

                        @girish yes I understand about issues on DooD and DinD.
                        I'm not really expecting it for the Cloudron deployment.
                        There are plenty of use cases for Code-Server without DooD/DinD.

                        C 1 Reply Last reply
                        0
                        • timconsidineT timconsidine

                          @girish yes I understand about issues on DooD and DinD.
                          I'm not really expecting it for the Cloudron deployment.
                          There are plenty of use cases for Code-Server without DooD/DinD.

                          C Offline
                          C Offline
                          c0decafe
                          wrote on last edited by
                          #91

                          There are plenty of use cases for Code-Server without DooD/DinD.

                          yes, currently used for multiple user instances on cloudron, mostly foam, some thunder, etc

                          As for the dev part, i solved it with hack mounting a custom external /nix into the required instances + https://devenv.sh/

                          nix is generally a cool architectural option for cloudron to look into imho and would love to help qualify such/the opportunity.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Bookmarks
                            • Search