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 Packaging & Development
  3. Install cloudron-cli on Code-Server

Install cloudron-cli on Code-Server

Scheduled Pinned Locked Moved App Packaging & Development
code-servercloudron-cli
6 Posts 3 Posters 1.2k Views 2 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.
    • R Offline
      R Offline
      roru2k20
      wrote on last edited by
      #1

      Good morning,

      I have installed successfully code-server on Cloudron, now I would like to use it as replacement of my local Windowsinstallation.

      For that it is neccessary to install the cloudron-cli on this machine to install/update/... my Cloudron Instance.

      I execute this:

      cloudron login
      

      and get this error

      Error: EROFS: read-only file system, open '/root/.cloudron.json'
      

      In my Dockerfile I had create a symlink to the data-directory, but nothing change.

      Any idea to solve this? My other idea is a separate VM, but for this I must clone first my repo and than update my app and my idea is to do this on the same machine I develop it.

      Thanks,
      Axel

      R 1 Reply Last reply
      0
      • R roru2k20

        Good morning,

        I have installed successfully code-server on Cloudron, now I would like to use it as replacement of my local Windowsinstallation.

        For that it is neccessary to install the cloudron-cli on this machine to install/update/... my Cloudron Instance.

        I execute this:

        cloudron login
        

        and get this error

        Error: EROFS: read-only file system, open '/root/.cloudron.json'
        

        In my Dockerfile I had create a symlink to the data-directory, but nothing change.

        Any idea to solve this? My other idea is a separate VM, but for this I must clone first my repo and than update my app and my idea is to do this on the same machine I develop it.

        Thanks,
        Axel

        R Offline
        R Offline
        roru2k20
        wrote on last edited by
        #2

        My both lines of Dockerfile

        RUN npm install -g cloudron
        RUN ln -sf /root/.cloudron.json /app/data/.cloudron.json
        
        murgeroM 1 Reply Last reply
        0
        • R roru2k20

          My both lines of Dockerfile

          RUN npm install -g cloudron
          RUN ln -sf /root/.cloudron.json /app/data/.cloudron.json
          
          murgeroM Offline
          murgeroM Offline
          murgero
          App Dev
          wrote on last edited by
          #3

          @roru2k20 cloudron cli is not for installing on the server, if you are looking to use code-server as an app, I have one on my github https://urgero.org that has all the kit you need for scripting and even a bit of programming.

          If you are trying to install cloudron-cli in an app you have installed already, make sure you run as a user where $HOME is set to /app/data (or a folder inside /app/data.) A common user to try is www-data (su - www-data)

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~

          1 Reply Last reply
          2
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by nebulon
            #4

            Your symlink creation looks fine and should work. Just to sanity check, can you use the webterminal into the app and create a file at /app/data/.cloudron.json ?

            Generally what @murgero mentioned is correct, but not sure if this applies to your exact use-case. One thing is to simply avoid circular dependency if something goes wrong, like if you for example use that cli tool within a Cloudron app to fix/update the very same cloudron app instance.

            What really should be avoided, is to install anything manually like the cloudron cli tool on the host server itself.

            R 1 Reply Last reply
            0
            • nebulonN nebulon

              Your symlink creation looks fine and should work. Just to sanity check, can you use the webterminal into the app and create a file at /app/data/.cloudron.json ?

              Generally what @murgero mentioned is correct, but not sure if this applies to your exact use-case. One thing is to simply avoid circular dependency if something goes wrong, like if you for example use that cli tool within a Cloudron app to fix/update the very same cloudron app instance.

              What really should be avoided, is to install anything manually like the cloudron cli tool on the host server itself.

              R Offline
              R Offline
              roru2k20
              wrote on last edited by
              #5

              @nebulon @murgero this is a good note with circular working. I think I separate this from the app, but link it with n8n to automate updates of my apps.

              How can I install your package @murgero ?

              murgeroM 1 Reply Last reply
              0
              • R roru2k20

                @nebulon @murgero this is a good note with circular working. I think I separate this from the app, but link it with n8n to automate updates of my apps.

                How can I install your package @murgero ?

                murgeroM Offline
                murgeroM Offline
                murgero
                App Dev
                wrote on last edited by
                #6

                @roru2k20 just git clone on a computer you have cloudron-cli installed then follow instructions in readme (skip docker build/push)

                --
                https://urgero.org
                ~ Professional Nerd. Freelance Programmer. ~

                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