Closed megahirt closed 3 years ago
from some external team discussions:
/var/lib/languageforge has just one subdirectory, lexicon, and lexicon has just one subdirectory, sendreceive. But that's the current state. It used to be that there was a second subdirectory under languageforge, called semdomtrans (for "Semantic Domain Translator"), and we might bring that back, or create another app in the languageforge site, at some point. So putting the mount point at /var/lib/languageforge is the simplest setup that allows for flexibility down the road.
In the interest of giving the persistent volume a more specific name as well as building toward what we know today, I'm going to map the volume to /var/lib/languageforge/lexicon/sendreceive
. I do this fully recognizing there may be a day when the semdomtrans might come into play and if/when it does, we'll see if moving the volume up a couple of directories is still appropriate.
/var/lib/languageforge/lexicon/sendreceive/webwork
under the project namemake clean
then make
make clean
to shut the app downdocker volume rm docker_lfmerge-sendreceive-data
to remove the persistent volumemake
to start the app again (with db still in tact)@longrunningprocess -
2. sync to LD currently failing, need to troubleshoot
I recently discovered that the sync to Language Depot needs ping
installed or it will fail quietly without a log message. (When the sync process was built it was assumed that ping
would always be available since it's part of the minimal
set on Debian). Try adding apt-get install iputils-ping
to the Dockerfile and see if that helps.
@rmunn as suspected, I'm still seeing a broken comm issue in the LD db container after installing ping in our base image, publishing it to Docker Hub and redeploying it to staging.
the current failures look like they might've been there all along, unrelated to the volume work so I opened https://github.com/sillsdev/web-languageforge/issues/981 to address it but as far as the persistent volume goes, it is working just fine.
app container persistent volume mount:
/var/lib/languageforge
www-data
ownership (notfieldworks
anymore – contingent upon PR's in LFmerge)