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 Wishlist
  3. Python Web App Stack (Flask w/ LDAP)

Python Web App Stack (Flask w/ LDAP)

Scheduled Pinned Locked Moved App Wishlist
6 Posts 3 Posters 1.2k Views 3 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.
  • tshirt-chihuahuT Offline
    tshirt-chihuahuT Offline
    tshirt-chihuahu
    wrote on last edited by
    #1

    🐍 There are tons of use cases for a python analogue to the LAMP stack app.

    While this could perpetually live as custom deploys in our private docker images, I think it would be handy to have a version published in the cloudron app store.

    Some thoughts on implementation:

    • Database URL provided in config(?) Given cloudron apps can be configured to talk to each other over the private/internal cloudron network -- seems reasonable to either just leave a database off this app and take a Database URL in a config file, if a database is needed at all. User can then select whichever backend is most appropriate.
    • Read in and install from Requirements.txt (?) If I can hit deploy on cloudron, drop in a requirements.txt file from "pip freeze" somewhere to have additional dependencies installed, and then have a python app with LDAP user directory already good to go, life will be good.

    🤔 Or do you guys think this is better left to just custom app deploys?

    🔥 If you've already deployed a custom Flask app (even better if it uses the LDAP directory) on Cloudron and are willing to share your setup, I'd definitely appreciate not spending time re-inventing the wheel.

    marcusquinnM 1 Reply Last reply
    1
    • tshirt-chihuahuT tshirt-chihuahu

      🐍 There are tons of use cases for a python analogue to the LAMP stack app.

      While this could perpetually live as custom deploys in our private docker images, I think it would be handy to have a version published in the cloudron app store.

      Some thoughts on implementation:

      • Database URL provided in config(?) Given cloudron apps can be configured to talk to each other over the private/internal cloudron network -- seems reasonable to either just leave a database off this app and take a Database URL in a config file, if a database is needed at all. User can then select whichever backend is most appropriate.
      • Read in and install from Requirements.txt (?) If I can hit deploy on cloudron, drop in a requirements.txt file from "pip freeze" somewhere to have additional dependencies installed, and then have a python app with LDAP user directory already good to go, life will be good.

      🤔 Or do you guys think this is better left to just custom app deploys?

      🔥 If you've already deployed a custom Flask app (even better if it uses the LDAP directory) on Cloudron and are willing to share your setup, I'd definitely appreciate not spending time re-inventing the wheel.

      marcusquinnM Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by
      #2

      @tshirt-chihuahu Wondering if https://www.cloudpanel.io/supported-applications/ might be more useful to you for that sort of thing?

      Web Design https://www.evergreen.je
      Development https://brandlight.org
      Life https://marcusquinn.com

      tshirt-chihuahuT 1 Reply Last reply
      1
      • marcusquinnM Offline
        marcusquinnM Offline
        marcusquinn
        wrote on last edited by marcusquinn
        #3

        @girish @nebulon I realise your initial target-audience may have been making home-user self-hosting easier, but there's definitely value in giving developers some loving too, as the more developers Cloudron attracts, the more capable people will join the community with the experience and motivation to contribute in apps, and perhaps one-day core code.

        Web Design https://www.evergreen.je
        Development https://brandlight.org
        Life https://marcusquinn.com

        girishG 1 Reply Last reply
        3
        • marcusquinnM marcusquinn

          @girish @nebulon I realise your initial target-audience may have been making home-user self-hosting easier, but there's definitely value in giving developers some loving too, as the more developers Cloudron attracts, the more capable people will join the community with the experience and motivation to contribute in apps, and perhaps one-day core code.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @marcusquinn agreed. Main issue is that developer apps don't work quite well on Cloudron since the packaging was designed for running pre-made apps and not custom apps. Like a person who wants python app might suddenly want Java 17 and Yarn 3 to go with it. I think creating a custom Dockerfile and then building for Cloudron is the only way to support developer apps. After all, this is what is done in non-developer world too.

          The other idea is maybe to build a PaaS (like Google App Engine, Heroku). These are opinionated stacks. You can't just install whatever version of software other than what is already provided.

          tshirt-chihuahuT 1 Reply Last reply
          3
          • marcusquinnM marcusquinn

            @tshirt-chihuahu Wondering if https://www.cloudpanel.io/supported-applications/ might be more useful to you for that sort of thing?

            tshirt-chihuahuT Offline
            tshirt-chihuahuT Offline
            tshirt-chihuahu
            wrote on last edited by
            #5

            @marcusquinn thanks for this resource. I hadn't seen this service before.

            It doesn't replace deploying an app on cloudron (especially if the app mashes up several other cloudron apps.) But useful nonetheless!

            1 Reply Last reply
            2
            • girishG girish

              @marcusquinn agreed. Main issue is that developer apps don't work quite well on Cloudron since the packaging was designed for running pre-made apps and not custom apps. Like a person who wants python app might suddenly want Java 17 and Yarn 3 to go with it. I think creating a custom Dockerfile and then building for Cloudron is the only way to support developer apps. After all, this is what is done in non-developer world too.

              The other idea is maybe to build a PaaS (like Google App Engine, Heroku). These are opinionated stacks. You can't just install whatever version of software other than what is already provided.

              tshirt-chihuahuT Offline
              tshirt-chihuahuT Offline
              tshirt-chihuahu
              wrote on last edited by
              #6

              @girish After thinking about this a bit more, it seems the optimal solution for "developer apps" isn't a published app, but some git repos of a few starter custom apps (dockerfile + ldap login + config instructions for a database if needed) specifically.

              I know all the published cloudron app repos can be viewed (as linked in the packaging tutorial). Perhaps that is sufficient.

              I'm building what is effectively a cloudron mashup (tying multiple apps together, LDAP, + private dns so API calls are local).

              I'll provide further feedback if the current tutorial materials seem insufficient.

              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