Hi Jerimiah -
I've had this same problem. The way that I "solved" it was to create a directory on the system that hosts the docker containers, and then mount that directory in to the docker container, over the top of the one that is in the container. It seems to work fairly well.
I'm not sure which modules need the database, but from what I can tell they all include it, and it doesn't hurt to override all of them. Doing so is pretty easy. The first thing I did was connect to an existing docker, and copy out everything under the "/app/node_modules/stf-device-db/dist" directory to the hosts file system. Then, go ahead and edit the database files in that directory. Then, in the systemd startup files, add the line :
-v /opt/openstf-db:/app/node_modules/stf-device-db/dist \
But, change the "/opt/openstf-db" path to where ever you stored the copy of that directory. Then, restart the docker containers. (I usually just reboot the machine, since there are so many containers that would need to be restarted.)
This will cause the /app/node_modules/stf-device-db/dist directory to be COMPLETELY replaced by the copy on your host file system. Which means that, in the future, if the developers change the format of the database that you will need to also update your copy, and the other files in the directories that you copied out. So, if possible, you should consider submitting the devices you added back to the project, so you don't have to worry about keeping your own copy up to date. (I've wanted to do that, but having a *HELL* of a time getting my corporate overlords to allow it. It doesn't help that my company is being sold for the 3rd time in a year either. None of the lawyers want to be responsible for okaying the submission of data that can easily be found a million places on the Internet. There might be corporate secrets in there!! (Probably should have put that in rant tags.))
Hope this helps!
I can't figure out if there is any way to do this short of cloning the stf and stf-device-db repos and building my own docker image. I've got the entries added in my cloned device db repo, but there doesn't seem to be an obvious way to get them into an STF deployment. Anybody have an idea that is a little more lightweight? I'm trying to show this off and I'd like it to be pretty on the main device screen.
-Jerimiah
--
You received this message because you are subscribed to the Google Groups "OpenSTF" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openstf+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openstf/91e3afdf-61db-442a-94fe-c34df802b2f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to openstf+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openstf/91e3afdf-61db-442a-94fe-c34df802b2f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OpenSTF" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openstf+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openstf/173eb836-958a-e64d-ce91-bd464faf973b%40gmail.com.