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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Install cloudron-cli on Code-Server

    App Packaging & Development
    code-server cloudron-cli
    3
    6
    316
    Loading More Posts
    • 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
      roru2k20 last edited by

      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 Reply Quote 0
      • R
        roru2k20 @roru2k20 last edited by

        My both lines of Dockerfile

        RUN npm install -g cloudron
        RUN ln -sf /root/.cloudron.json /app/data/.cloudron.json
        
        murgero 1 Reply Last reply Reply Quote 0
        • murgero
          murgero App Dev @roru2k20 last edited by

          @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. ~
          Matrix: @murgero:urgero.org

          1 Reply Last reply Reply Quote 2
          • nebulon
            nebulon Staff last edited by 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 1 Reply Last reply Reply Quote 0
            • R
              roru2k20 @nebulon last edited by

              @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 ?

              murgero 1 Reply Last reply Reply Quote 0
              • murgero
                murgero App Dev @roru2k20 last edited by

                @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. ~
                Matrix: @murgero:urgero.org

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB