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. Help packaging fireshare

Help packaging fireshare

Scheduled Pinned Locked Moved App Packaging & Development
5 Posts 2 Posters 989 Views 2 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.
    • benborgesB Offline
      benborgesB Offline
      benborges
      wrote on last edited by girish
      #1

      (warning, war content) My test use case : http://osintukraine.com:9090/#/feed (use incognito to accept the self-signed cert)

      I have a question for @girish maybe, I'm going to package Fireshare code for cloudron
      but I'm wondering if by using the .env provided I will be able to point the //path/to/my_game_clips: folder (source)
      to another cloudron LAMP container (running the scrapping of videos) such as /home/yellowtent/appsdata/cc81fa5c-a060-4fb8-bcaa-c13b009b0c43/data/public/media

      docker run --name fireshare -v $(pwd)/fireshare:/data:rw -v $(pwd)/fireshare_processed:/processed:rw -v /home/yellowtent/appsdata/cc81fa5c-a060-4fb8-bcaa-c13b009b0c43/data/public/media:/videos:rw -p 8080:80 -e ADMIN_PASSWORD=your-admin-password -d shaneisrael/fireshare:latest
      

      This is the test link above, I'm currently running and it works fine outside of a cloudron package so i'm wondering, can I have variable pointing to another data volumes on a different app/container?

      BenB

      girishG 1 Reply Last reply
      5
      • girishG girish referenced this topic on
      • benborgesB benborges

        (warning, war content) My test use case : http://osintukraine.com:9090/#/feed (use incognito to accept the self-signed cert)

        I have a question for @girish maybe, I'm going to package Fireshare code for cloudron
        but I'm wondering if by using the .env provided I will be able to point the //path/to/my_game_clips: folder (source)
        to another cloudron LAMP container (running the scrapping of videos) such as /home/yellowtent/appsdata/cc81fa5c-a060-4fb8-bcaa-c13b009b0c43/data/public/media

        docker run --name fireshare -v $(pwd)/fireshare:/data:rw -v $(pwd)/fireshare_processed:/processed:rw -v /home/yellowtent/appsdata/cc81fa5c-a060-4fb8-bcaa-c13b009b0c43/data/public/media:/videos:rw -p 8080:80 -e ADMIN_PASSWORD=your-admin-password -d shaneisrael/fireshare:latest
        

        This is the test link above, I'm currently running and it works fine outside of a cloudron package so i'm wondering, can I have variable pointing to another data volumes on a different app/container?

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

        @benborges Would be great to have this packaged.

        As for the volume sharing:

        • Think of appsdata (aka 'app data' aka 'data directory') as application local data and something which has structure internal/private to an app. Sort of like an app's internal database. Other apps should not really be reading or writing to this.

        • With that in mind, ideally, you scaper LAMP app can write to say some custom location. So, this can be configured then as '/mnt/scraped-datawhich is your Cloudron volume namedscaped-data`

        • The fileshare app would also have this volume mounted (as readonly i guess). The end user after installing fireshare would change the /app/data/env to point to this /mnt/scraped-data.

        benborgesB 1 Reply Last reply
        4
        • girishG girish

          @benborges Would be great to have this packaged.

          As for the volume sharing:

          • Think of appsdata (aka 'app data' aka 'data directory') as application local data and something which has structure internal/private to an app. Sort of like an app's internal database. Other apps should not really be reading or writing to this.

          • With that in mind, ideally, you scaper LAMP app can write to say some custom location. So, this can be configured then as '/mnt/scraped-datawhich is your Cloudron volume namedscaped-data`

          • The fileshare app would also have this volume mounted (as readonly i guess). The end user after installing fireshare would change the /app/data/env to point to this /mnt/scraped-data.

          benborgesB Offline
          benborgesB Offline
          benborges
          wrote on last edited by
          #3
          1. Other apps should not really be reading or writing to this.

          Fireshare would never write to the other container, it would just read it and index the file to its own sql database inside its own data container, the video would reside on the LAMP container and would only be read by Fireshare and publicly served.

          1. what's the difference to say, a custom mount point and say /home/yellowtent/appsdata/cc81fa5c-a060-4fb8-bcaa-c13b009b0c43/data/public/media (which is the actual data volume of an existing LAMP ?

          isn't it just a convention ?

          so if 2 can be done, either way, custom mount of direct path to existing data volume, can I conclude that i should package fireshare as if the /mnt/scraped-data was the data volume used by the package addon and then, once the app is running, edit the .env file and point it to an arbitrary path/custom mount?

          BenB

          girishG 1 Reply Last reply
          0
          • benborgesB benborges
            1. Other apps should not really be reading or writing to this.

            Fireshare would never write to the other container, it would just read it and index the file to its own sql database inside its own data container, the video would reside on the LAMP container and would only be read by Fireshare and publicly served.

            1. what's the difference to say, a custom mount point and say /home/yellowtent/appsdata/cc81fa5c-a060-4fb8-bcaa-c13b009b0c43/data/public/media (which is the actual data volume of an existing LAMP ?

            isn't it just a convention ?

            so if 2 can be done, either way, custom mount of direct path to existing data volume, can I conclude that i should package fireshare as if the /mnt/scraped-data was the data volume used by the package addon and then, once the app is running, edit the .env file and point it to an arbitrary path/custom mount?

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

            @benborges Do you have an initial code/package already? Might be easier for me to understand with the code.

            benborgesB 1 Reply Last reply
            1
            • girishG girish

              @benborges Do you have an initial code/package already? Might be easier for me to understand with the code.

              benborgesB Offline
              benborgesB Offline
              benborges
              wrote on last edited by
              #5

              @girish Haven't' pushed anything cloudron related yet but my repo is here https://git.osintukraine.com/benb/fireshare

              BenB

              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