Building m3-merge¶
m3_merge is written in Scala and uses SBT for builds.
Prerequisites¶
Building¶
Development Build¶
sbt pack
The application will be found in target/pack. The scripts are located in target/pack/bin.
Production Build¶
build.sh
The production app is deployed via docker. To keep it simple, there is a build.sh script that will build and deploy the project to the production server expanse.shore.mbari.org. To deploy m3-registrar, You will need sudo privileges with podman on expanse.
Deployment¶
The applications currently run under user brian via cron on expanse.shore.mbari.org. The crontab is:
0 18 * * FRI podman run portal.shore.mbari.org:5000/mbari/m3-merge-rov housekeeping.sh > /home/brian/.m3/logs/merge.log 2>&1
51 7 * * * podman run portal.shore.mbari.org:5000/mbari/m3-merge-rov samples_update_rovctd > /home/brian/.m3/logs/samples_update_rovctd.log 2>&1
59 7 * * * podman run portal.shore.mbari.org:5000/mbari/m3-merge-rov samples_update_keywords > /home/brian/.m3/logs/samples_update_keywords.log 2>&1