In honor of the 200th download of the androidhdmi-for-channels container, I'm making some improvements to the organization of persistent data.
What this means for you as a user is that you'll want to stop your ah4channels container, relocate a few directories and make a couple of changes in your Portainer - Stack. This will result in a better grouping of your data, plus it'll allow me to make some needed changes inside the container.
I use /data2/androidhdmi-for-channels as the directory I bind to the container, so my examples will be based on that.
Your current ah4channels related data directories will look something like this on your host computer:
And under androidhdmi-for-channels like this:
So, what we're going to do is move the adb directory under /data2/androidhdmi-for-channels. In addition, we're going to create a scripts directory there, and move whatever streamer directories you have (onn and firetv, in this example) under that new scripts directory. The html directory can be deleted. When you're done, it should look like this under /data2/androidhdmi-for-channels (or whatever directories you use as "parents"):
That's it for the data, so on to the the changes to the docker compose in Portainer - Stacks. There are changes to the image you're pulling, the STREAMER_APP environment variable, and several changes to volumes.
Update these lines (images with this new structure will be tagged alpha2):
image: bnhf/androidhdmi-for-channels:alpha2
There are now 3 directories to bind (/scripts, /m3u and /adb) to whatever parent path you're using on your host:
volumes:
- /data2/androidhdmi-for-channels/scripts:/opt/scripts # pre/stop/bmitune.sh scripts will be stored in this bound host directory under streamer/app
- /data2/androidhdmi-for-channels/m3u:/opt/m3u # m3u files will be stored here and hosted at http://<hostname or ip>:7654/m3u for use in Channels DVR - Custom Channels settings
- /data2/androidhdmi-for-channels/adb:/root/.android # Persistent data directory for adb keys
And lastly, the STREAMER_APP env var needs to have "scripts/" added to it like so:
That's it. Update the stack, and use the "Re-pull image and redeploy" slider, and you should be in business! Check the Portainer log for the container to confirm.