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


Navigation

    Cloudron Forum

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

    How does Cloudron work? What does it do? etc :)

    Discuss
    8
    37
    327
    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.
    • jdaviescoates
      jdaviescoates @jdaviescoates last edited by

      @jdaviescoates said in How does Cloudron work? What does it do? etc 🙂:

      Ah, I had found the https://www.pscp.tv/w/1YqKDBZVqjvJV link on that meetup page, but in Firefox nothing seems to happen when I visit it, so I assumed it was just a live thing with no ability to watch back... but then I tried it in Chromium and it worked, thanks! Will watch...

      @Staff you should add this video to your peertube.

      https://pscp.download/?url=https%3A%2F%2Fwww.pscp.tv%2Fw%2F1YqKDBZVqjvJV

      jdaviescoates 1 Reply Last reply Reply Quote 2
      • jdaviescoates
        jdaviescoates @jdaviescoates last edited by jdaviescoates

        I just watch the video linked above (after using OpenShot video to rotate it 90 degrees to the left to avoid getting a crook neck!) here are my notes:

        Benefits of Cloudron

        Quick and Easy to install and configure properly apps on your own domains
        Easy to update
        Easy to maintain
        Secure by default
        Control of your data - you know and decide where it is stored, and who and how the data can be accessed

        Selfhosting = you deploy apps on servers of your choosing

        DNS management and SSL certificates all sorted using LetsEncrypt

        Convenience of SaaS with the control of a private cloud

        • with a user experience similar to what people are now used to with their smart phones - everyone can easyily install apps from the app store and apps are automatically updated - we don't have to maintain our phones, it just works.

        Smart phone -> Smart server

        Full Email server built in!!!

        Can easily move (or clone) apps from one domain to another

        == Architecture: ==

        Cloudron is install on the server
        Apps are listed from Cloudron's App Store
        Cloudron install the App (it's not something the App Store does)
        Cloudron periodically checks for updates
        Each Cloudron installation is independent and private. Cloudron don't have access to the server. They just provie the App Store list and provide updates for apps

        == Anatomy of an app ==

        2 parts:

        1. Docker based packaging
        • dependency management (differnt apps require different versions of PHP, Ruby, whatever Docker lets you package them all together in a single package)
        • Static configuration (decision about whether to use nginx or apache etc are taken care of)
        • Density (used to have to use one virtual machine for each app, with Docker you can have loads of differnt apps on one server in containers)
        1. Mainfest file (information about the things the app needs to run)
        • Addons: which database to use (MySql, Postgres, etc), Auth, Email
        • Port bindings
        • Version: Title, Icon, Description, Author

        == App Store ==

        Just like Google Play story, Appple app store

        • its just a Distribution mechanism, doesn't have access to the server.
        • holds manifest meta data (what apps needs to run)
        • versioning information

        All the app packages are open source, so you

        (not relevant for selfhost.cloud but it handles Dynamic DNS for people hosting at home)

        == The Platform (the bit that is running on your server) ==

        Very similar to Heroku - you can give it code and it'll run it for you

        • Each addon is a micro-service (and can say, this app needs mysql server, this app needs to be able to send email etc)
        • Addon access credentials as env var (environment variables)

        (ask Girish for the slides)

        All the addons (databases, email etc) are running in their own Docker containers and operate like mirco-services, you can ask them to create/ destroy databases etc.

        == App Lifecycle ==

        • Install
          -- Configure DNS
          -- Downloads docker image and manifest file from the Cloudron app store
          -- Sets up addons
          -- Logrotate, Collect (stats about the app, how much CPU, memory it using etc), Firewall
          -- Runs the docker container
          --- Dynamic configuration (giving the app db credentials, SMTP credentials to send email, e.g. for WordPress it creates the wp-config.php file with all the relevant credentials)
          -- Gets SSL certificates from LetsEncrypt (and set-up reverse proxy, i.e. when blog.domain.com is visited forward to this container)

        • Updates
          -- Read only and stateless app containers (all apps are read only - apps cannot write to their file system, if they could then users could add all sorts of random files and it wouldn't be possible to update smoothly, the code cannot be modified. This means when there is an update we can just throw away the old container and get in the new container. So where does the app write stuff it needs to? We let the app write in 3 locations 1) /tmp for temporary files 2) /run which contains runtime files which an app needs to communication across various processes, 3) app/data/ where the app will put images, files uploaded etc - everything in app data is part of the backup, /tmp and /run is not backed up)
          -- Rolling updates
          -- Signed releases
          -- Selenium based tests (test that everything actually still works)

        == Maintainence ==

        • Backups
          -- Per app backups (means you can roll back just that app instead of all the apps on the server, like would happen if you just rolled back to the server snapshot).
          -- Backup only addon data (don't need to back up the docker container because it's read only, nothing has change, only need to back up databases etc, plus the /app/data directory)
          -- Apps can be trivially cloned and rolled back
          -- Can be stored offsite to S3, DO Spaces, etc

        • Alerts
          -- Email notifications

        == Security ==

        • Turn-key security
        • HTTPS only
        • SSL, HSTS
        • App isolation and sandboxed (apps can only access their databases etc, not the other databases etc)
        • Rate limits, Activity logs (built in standard security practices e.g. Rate limtes: if people try to login too quickly, login from a new device etc, Activity logs: everything that happening on the system, who is doing what)
        • Signed releases
        • More info at https://docs.cloudron.io/security/

        Who are Cloudron customers:

        20-30% individuals
        20-30% tech startups
        universities (but they have differnt pricing structures)
        very popular with ngos and cooperatives, in Europe (France, Germany) - ha! Girish described co-ops as new! hehe
        also resellers and hosting providers

        @thetomester13 a slight red flag re our Selfhost.Cloud plans - Cloudron started off providing managed Cloudron, but users wanted to install it on their own servers - still, I think they are likely still plenty of people who would like it as a service too. Just like people still sometimes pay me to create selfhosted WordPress sites for them and still use WordPress.com even those self-hosting WordPress is really easy.

        @girish do you still have the slides you used in the talk? could you perhaps share them here? (even though I've more or less transcribed them plus added a load of stuff you said that isn't on the slides) Thanks!

        girish nebulon robi 3 Replies Last reply Reply Quote 5
        • girish
          girish Staff @jdaviescoates last edited by

          @jdaviescoates I will probably upload it in some place with a memorable URL later but these are the slides - https://files.cloudron.io/s/y6NinTqKdFHaBGi . Thanks for the elaborate notes!

          jdaviescoates 1 Reply Last reply Reply Quote 3
          • marcusquinn
            marcusquinn last edited by

            Adding a note the convo without completely reading but if there's effort to build a video library to promote and educate on features, I'd suggest aiming to segment into 2-5min videos per topic, attention-spans online aren't long enough for 30 min tutorials for the average prospect.

            jdaviescoates 1 Reply Last reply Reply Quote 2
            • jdaviescoates
              jdaviescoates @marcusquinn last edited by

              @marcusquinn and to add to that, any video that's going to be shared on socials (where most people discover video) really needs to be very clear what it's about and have a hook in the first 10 seconds (most videos aren't watch past that - if a video doesn't grab you in the first 10 seconds, you don't watch it).

              P 1 Reply Last reply Reply Quote 2
              • jdaviescoates
                jdaviescoates @girish last edited by

                @girish thanks! 🙂

                1 Reply Last reply Reply Quote 0
                • P
                  plusone-nick @jdaviescoates last edited by

                  @jdaviescoates I have been messing around with a few "intro to cloudron" scripts, testing out OBS backdrops and mic settings. Will share a draft when I have a legit one compiled =] Hopefully sooner than later lol

                  jdaviescoates 1 Reply Last reply Reply Quote 3
                  • jdaviescoates
                    jdaviescoates @plusone-nick last edited by

                    @plusone-nick nice, looking forward to seeing it, thanks

                    1 Reply Last reply Reply Quote 0
                    • nebulon
                      nebulon Staff @jdaviescoates last edited by

                      @jdaviescoates I rotated the video now and uploaded it to https://videos.cloudron.io/videos/watch/79a34d05-a60b-4ec3-9327-fd736016494c 🙂

                      robi jdaviescoates 2 Replies Last reply Reply Quote 3
                      • robi
                        robi @jdaviescoates last edited by

                        @jdaviescoates nicely done.

                        What is the file size?

                        Can you share with me the edited video, so I can post it to our new BayLISA.org YT channel?

                        Perhaps over a FilePizza link or whatever works for you.

                        1 Reply Last reply Reply Quote 1
                        • robi
                          robi @nebulon last edited by

                          @nebulon ooh, thank you, just saw this! I'll see if we can use this one.

                          jdaviescoates 1 Reply Last reply Reply Quote 1
                          • jdaviescoates
                            jdaviescoates @robi last edited by

                            @robi yeah I think @nebulon has done a better job of rotating than I did. I guess he probably just used some command line tools? My file ended up over 3gb and had black space all around the edges.

                            1 Reply Last reply Reply Quote 0
                            • nebulon
                              nebulon Staff last edited by

                              Indeed fyi I used:

                              ffmpeg -i BayLISA-Cloudron.mp4 -vf "transpose=2" BayLISA-Cloudron-rotated.mp4
                              

                              the value 2 here is for 90° counter clock-wise, it took me 2 attempts to get the right value...happens when you don't read the docs 😉

                              robi 1 Reply Last reply Reply Quote 2
                              • robi
                                robi @nebulon last edited by

                                @nebulon How big was the file?

                                nebulon 1 Reply Last reply Reply Quote 1
                                • nebulon
                                  nebulon Staff @robi last edited by

                                  @robi 88MB looks like, the original was 180MB so I guess it also did some compression alongside. Overall the quality is not really stellar, but luckily the sound is fine.

                                  robi 1 Reply Last reply Reply Quote 2
                                  • robi
                                    robi @nebulon last edited by

                                    @nebulon great, check you email please 🙂

                                    1 Reply Last reply Reply Quote 1
                                    • jdaviescoates
                                      jdaviescoates last edited by

                                      @staff is there a handy list of all the addons Cloudron currently has? Ideally with a brief description of what they do/ what they are for? Thanks

                                      mehdi 1 Reply Last reply Reply Quote 0
                                      • mehdi
                                        mehdi App Dev @jdaviescoates last edited by

                                        @jdaviescoates https://docs.cloudron.io/custom-apps/addons/

                                        jdaviescoates 1 Reply Last reply Reply Quote 2
                                        • jdaviescoates
                                          jdaviescoates @mehdi last edited by

                                          @mehdi doh, thanks!

                                          1 Reply Last reply Reply Quote 1
                                          • jdaviescoates
                                            jdaviescoates @nebulon last edited by

                                            @nebulon said in How does Cloudron work? What does it do? etc 🙂:

                                            @jdaviescoates I rotated the video now and uploaded it to https://videos.cloudron.io/videos/watch/79a34d05-a60b-4ec3-9327-fd736016494c 🙂

                                            Just realised you're missing about half an hour on that video!

                                            robi 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post