overleaf/services/git-bridge/Makefile
Shane Kilkelly b47f21a44e Configure from env vars at run time
In both local developent, and production.  Also, vendor the `envsubst`
binary from https://github.com/a8m/envsubst, as it supports default
values, which the gnu envsubst (from gettext-base) does not.
2021-05-07 09:47:49 +01:00

31 lines
485 B
Makefile

# git-bridge makefile
MVN_OPTS := "--no-transfer-progress"
runtime-conf:
/opt/envsubst < conf/envsubst_template.json > conf/runtime.json
run: package runtime-conf
java -jar \
target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar \
conf/runtime.json
build:
mvn $(MVN_OPTS) package -DskipTests
test:
mvn $(MVN_OPTS) test
clean:
mvn $(MVN_OPTS) clean
package: clean
mvn $(MVN_OPTS) package -DskipTests
.PHONY: run package build clean test runtime-conf