mirror of https://github.com/ANL-CEEESA/RELOG.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
772 B
32 lines
772 B
VERSION := 0.6
|
|
PKG := ghcr.io/anl-ceeesa/relog-web
|
|
|
|
clean:
|
|
rm -rfv build Manifest.toml test/Manifest.toml deps/formatter/build deps/formatter/Manifest.toml
|
|
|
|
docs:
|
|
cd docs; julia --project=. make.jl; cd ..
|
|
rsync -avP --delete-after docs/build/ ../docs/$(VERSION)/
|
|
|
|
docker-build:
|
|
docker build --tag $(PKG):$(VERSION) .
|
|
docker build --tag $(PKG):latest .
|
|
|
|
docker-push:
|
|
docker push $(PKG):$(VERSION)
|
|
docker push $(PKG):latest
|
|
|
|
docker-run:
|
|
docker run -it --rm --name relog --volume $(PWD)/jobs:/app/jobs --publish 8000:8080 $(PKG):$(VERSION)
|
|
|
|
format:
|
|
cd deps/formatter; ../../juliaw format.jl
|
|
|
|
test: test/Manifest.toml
|
|
./juliaw test/runtests.jl
|
|
|
|
test/Manifest.toml: test/Project.toml
|
|
julia --project=test -e "using Pkg; Pkg.instantiate()"
|
|
|
|
.PHONY: docs test format
|