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. Discuss
  3. Cloudron on a Raspberry pi?

Cloudron on a Raspberry pi?

Scheduled Pinned Locked Moved Discuss
armraspberry-pi
133 Posts 17 Posters 54.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.
  • iamthefijI iamthefij

    @nebulon said in Cloudron on a Raspberry pi?:

    To give one simple example, any app using the go language, where we take the release builds, has to get some logic or separate Dockerfile to deal with arm.

    I have some experience with this and have set up my own multi-arch go build pipelines using a single Dockerfile for some of my other apps: minitor-go, dockron, tag-checker, and for Python ones too: original minitor.

    Here's a sample repo demonstrating my process: multiarch-pipeline-test. It's easier these days if your server has docker buildx though.

    Also, since with Cloudron we're most often building things that exist upstream, here's an example multi-arch build repo I have for the Golang project cadvisor. It will auto build a particular cadvisor version on a git tag so I just need to create a release on my Gitea server and the build is started and deployed. With cadvisor, I have to clone the whole repo and cross-compile the cadvisor binary for arm becaue there is no pre-compiled binary. If there is, it should be even easier to just pull that binary.

    Anyway, I'm happy to help if there are any applications that may be critical to be ported.

    nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #115

    @iamthefij nice thanks for the pointers, when we got started on this this will help. I tried to use docker buildx but I couldn't get it to work and produce binaries which would actually run on the raspberrypi, so I ended up using the raspberrypi to build the images itself, which surprisingly showed how beefy that board has become πŸ™‚

    robiR M iamthefijI 3 Replies Last reply
    1
    • nebulonN nebulon

      @iamthefij nice thanks for the pointers, when we got started on this this will help. I tried to use docker buildx but I couldn't get it to work and produce binaries which would actually run on the raspberrypi, so I ended up using the raspberrypi to build the images itself, which surprisingly showed how beefy that board has become πŸ™‚

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

      @nebulon careful with compiling on rPi's as they can overheat and burn out πŸ˜‰ Having a small heatsink or fan handy helps a lot.

      Conscious tech

      nebulonN 1 Reply Last reply
      1
      • robiR robi

        @nebulon careful with compiling on rPi's as they can overheat and burn out πŸ˜‰ Having a small heatsink or fan handy helps a lot.

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #117

        @robi yup, I have a case for it with cooling

        yusfY 1 Reply Last reply
        2
        • nebulonN nebulon

          @robi yup, I have a case for it with cooling

          yusfY Offline
          yusfY Offline
          yusf
          wrote on last edited by
          #118

          @nebulon You have that case that is the heatsink? It’s very nice. πŸ˜ƒ

          nebulonN 1 Reply Last reply
          0
          • nebulonN nebulon

            @iamthefij nice thanks for the pointers, when we got started on this this will help. I tried to use docker buildx but I couldn't get it to work and produce binaries which would actually run on the raspberrypi, so I ended up using the raspberrypi to build the images itself, which surprisingly showed how beefy that board has become πŸ™‚

            M Offline
            M Offline
            malvim
            wrote on last edited by
            #119

            @nebulon yup! I tried it as well, and could not get it to work. building on the pi itself proved to be
            the easiest way...

            1 Reply Last reply
            0
            • yusfY yusf

              @nebulon You have that case that is the heatsink? It’s very nice. πŸ˜ƒ

              nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #120

              @yusf yes exactly that, makes it feel like a strong brick you could throw around

              1 Reply Last reply
              1
              • nebulonN nebulon

                @iamthefij nice thanks for the pointers, when we got started on this this will help. I tried to use docker buildx but I couldn't get it to work and produce binaries which would actually run on the raspberrypi, so I ended up using the raspberrypi to build the images itself, which surprisingly showed how beefy that board has become πŸ™‚

                iamthefijI Offline
                iamthefijI Offline
                iamthefij
                App Dev
                wrote on last edited by iamthefij
                #121

                @nebulon would all binaries not run (eg. /bin/sh from within the base) or just Go binaries that you compiled within the buildx pipeline? If it's the former, it may not be using the right base image. If it's the latter and the former works, perhaps setting the GOARCH variable via a build-arg would solve it.

                Note: I personally have not used buildx yet, but from what I can see it's a simpler, automatic version of what I'm trying to do with qemu that handles the manifest for you. So I think you should just be able to build without the muckiness of all the build-args I pass, but if not you can play with mixing those in until it works.

                I think buildx is supported on my laptop, so I can give it a try, but it's not supported on my CI box yet, so I haven't switched.

                MOrochenaM 1 Reply Last reply
                1
                • iamthefijI iamthefij

                  @nebulon would all binaries not run (eg. /bin/sh from within the base) or just Go binaries that you compiled within the buildx pipeline? If it's the former, it may not be using the right base image. If it's the latter and the former works, perhaps setting the GOARCH variable via a build-arg would solve it.

                  Note: I personally have not used buildx yet, but from what I can see it's a simpler, automatic version of what I'm trying to do with qemu that handles the manifest for you. So I think you should just be able to build without the muckiness of all the build-args I pass, but if not you can play with mixing those in until it works.

                  I think buildx is supported on my laptop, so I can give it a try, but it's not supported on my CI box yet, so I haven't switched.

                  MOrochenaM Offline
                  MOrochenaM Offline
                  MOrochena
                  wrote on last edited by
                  #122

                  I was wondering what the current state of this is, as I would be extremely interested in migrating my Cloudron setup to a Raspberry pi.

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

                    The project has stalled a bit unfortunately 😞 So far, there's not much interest in ARM server (apart from hosting on pi), I was hoping we will see more ARM servers mainstream...

                    M potemkin_aiP 2 Replies Last reply
                    1
                    • girishG girish

                      The project has stalled a bit unfortunately 😞 So far, there's not much interest in ARM server (apart from hosting on pi), I was hoping we will see more ARM servers mainstream...

                      M Offline
                      M Offline
                      malvim
                      wrote on last edited by
                      #124

                      Hey! I was working on this, but stumbled upon two issues:

                      1. As @girish said, there's not much interest in ARM servers, so it would be very low priority to integrate having different architectures into cloudron main code; and

                      2. I wanted to do this so I could host my cloudron at home, but since mos ISPs where I live won't let you expose port 80, 443, 25, etc., I lost interest in pursuing this.

                      If cloudron would support having nginx on custom ports, that would be cool for people wanting to host at home and with the same problem, but I think this is also not a priority now, as not too many people seem to be interested in this.

                      It's not too hard to make cloudron's install script work on a raspberry pi, though, but you'd have to maintain a fork, which was also not my interest at the time. If you want to, though, DM me and I can give you a few pointers.

                      robiR 1 Reply Last reply
                      0
                      • M malvim

                        Hey! I was working on this, but stumbled upon two issues:

                        1. As @girish said, there's not much interest in ARM servers, so it would be very low priority to integrate having different architectures into cloudron main code; and

                        2. I wanted to do this so I could host my cloudron at home, but since mos ISPs where I live won't let you expose port 80, 443, 25, etc., I lost interest in pursuing this.

                        If cloudron would support having nginx on custom ports, that would be cool for people wanting to host at home and with the same problem, but I think this is also not a priority now, as not too many people seem to be interested in this.

                        It's not too hard to make cloudron's install script work on a raspberry pi, though, but you'd have to maintain a fork, which was also not my interest at the time. If you want to, though, DM me and I can give you a few pointers.

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

                        @malvim There's a nice thread on all the different tools you can use to expose apps under dev or home run services:
                        https://forum.cloudron.io/topic/6231/ngrok-alternatives-awesome-tunneling

                        Even if you don't have a domain, any subdomain provider will work, and I'm sure many of the forum members could offer a container that does just that on one of their subdomains if you don't already have one and a VPS.

                        Conscious tech

                        M 1 Reply Last reply
                        0
                        • robiR robi

                          @malvim There's a nice thread on all the different tools you can use to expose apps under dev or home run services:
                          https://forum.cloudron.io/topic/6231/ngrok-alternatives-awesome-tunneling

                          Even if you don't have a domain, any subdomain provider will work, and I'm sure many of the forum members could offer a container that does just that on one of their subdomains if you don't already have one and a VPS.

                          M Offline
                          M Offline
                          malvim
                          wrote on last edited by
                          #126

                          @robi hey, thanks for the reply!

                          I'll take a look.

                          I currently do own a domain and run cloudron on a rented server, but I'm from Brazil and stuff is pretty bad here right now, and it's starting to be a bit too expensive for my purposes.

                          I thought about hosting at home, but stumbled upon this problem. I'll take a look ad that thread and see what I can use. Thanks again!

                          robiR 1 Reply Last reply
                          0
                          • M malvim

                            @robi hey, thanks for the reply!

                            I'll take a look.

                            I currently do own a domain and run cloudron on a rented server, but I'm from Brazil and stuff is pretty bad here right now, and it's starting to be a bit too expensive for my purposes.

                            I thought about hosting at home, but stumbled upon this problem. I'll take a look ad that thread and see what I can use. Thanks again!

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

                            @malvim said in Cloudron on a Raspberry pi?:

                            I currently do own a domain and run cloudron on a rented server, but I'm from Brazil and stuff is pretty bad here right now

                            We also have a thread on that.. search for "cheap vps" ..
                            my profile has a link to the affordable VPS servers I use.

                            Conscious tech

                            1 Reply Last reply
                            0
                            • nebulonN nebulon referenced this topic on
                            • necrevistonnezrN necrevistonnezr referenced this topic on
                            • girishG girish

                              The project has stalled a bit unfortunately 😞 So far, there's not much interest in ARM server (apart from hosting on pi), I was hoping we will see more ARM servers mainstream...

                              potemkin_aiP Offline
                              potemkin_aiP Offline
                              potemkin_ai
                              wrote on last edited by
                              #128

                              @girish @nebulon , just wanted to add my voice to ARM (RPi) support.

                              More and more hostings appears with RPi with a very attractive pricing (8Gb RAM, 4CPU Cores * 2Ghz, 30Gb network HDD) for ~$15/month.

                              It would be also very handy for a private in-office use, for a more private use cases.

                              1 Reply Last reply
                              7
                              • L Offline
                                L Offline
                                lukas
                                wrote on last edited by
                                #129

                                I'm also interested to run Cloudron on ARM based hardware

                                1 Reply Last reply
                                1
                                • Dennis4720 0D Offline
                                  Dennis4720 0D Offline
                                  Dennis4720 0
                                  wrote on last edited by
                                  #130

                                  Me too. Hetzner offers VPS' for less costs with ARM chips and so may other hosting providers these days. (=

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

                                    We are in the course of automating the build and testing of package updates. Once that is done, we can think about creating additional packages. Creating ARM builds for apps will automatically double our package count!

                                    Dennis4720 0D 1 Reply Last reply
                                    2
                                    • girishG girish

                                      We are in the course of automating the build and testing of package updates. Once that is done, we can think about creating additional packages. Creating ARM builds for apps will automatically double our package count!

                                      Dennis4720 0D Offline
                                      Dennis4720 0D Offline
                                      Dennis4720 0
                                      wrote on last edited by
                                      #132

                                      @girish Amazing work Girish. πŸš€

                                      1 Reply Last reply
                                      0
                                      • J Offline
                                        J Offline
                                        jayonrails
                                        translator
                                        wrote on last edited by
                                        #133

                                        Is there any way we can support this - also financially?

                                        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