Install cloudron-cli on Code-Server
-
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 loginand 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 -
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 loginand 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 -
My both lines of Dockerfile
RUN npm install -g cloudron RUN ln -sf /root/.cloudron.json /app/data/.cloudron.json@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) -
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.
-
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.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login