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. Cloudron Package Template

Cloudron Package Template

Scheduled Pinned Locked Moved App Packaging & Development
7 Posts 4 Posters 1.0k Views 4 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.
    • KubernetesK Offline
      KubernetesK Offline
      Kubernetes
      App Dev
      wrote on last edited by Kubernetes
      #1

      Hi there,

      as I did some initial packages in the last time, I started to use some kind of (still basic) template to kick off.

      I think it is worth to share:
      Gitlab Repo

      Best,
      Mike

      1 Reply Last reply
      2
      • murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by
        #2

        Does this ADD https://REPOURL/v${VERSION}/PACKAGE /app/code actually work as expected???

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

        1 Reply Last reply
        0
        • KubernetesK Offline
          KubernetesK Offline
          Kubernetes
          App Dev
          wrote on last edited by Kubernetes
          #3

          Yes, it does. Of course it requires that the VERSION needs to be specified in the ARGS in the beginning of the Dockerfile.

          Update: Maybe worth to mention, that the URL needs to be adapted to the real use case. Sometimes the zip files are something like v2.0.6.tar.gz, sometimes it's just 2.0.6.tar.gz....

          Update 2: And sometimes it feels "better" to use RUN curl -L URL instead of ADD... So there might be some need to mention different options in the template 🙂

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

            Ah very nice, and thanks for sharing that! Seems like a good way to get started. cloudron init tries to do something similar, that can be improved as well.

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

              cloudron init --appstore generates some stuff as well 🙂 that template comes from this template

              KubernetesK 1 Reply Last reply
              2
              • girishG girish

                cloudron init --appstore generates some stuff as well 🙂 that template comes from this template

                KubernetesK Offline
                KubernetesK Offline
                Kubernetes
                App Dev
                wrote on last edited by
                #6

                @girish Ah, great, I didn't use init before, as I usually first want to understand how things work, before using the boilerplate. It's a pleasure to see that my templates are very close to the init one 😎

                1 Reply Last reply
                2
                • KubernetesK Offline
                  KubernetesK Offline
                  Kubernetes
                  App Dev
                  wrote on last edited by
                  #7

                  I have added the easy installer to the repo. This allows users to install the app on Cloudron, if they don't want or know how to build the image themselves.

                  1 Reply Last reply
                  2
                  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