build(justfile): run-*-in-docker builds the image first
This commit is contained in:
parent
a605c3499a
commit
f71e28512d
1 changed files with 9 additions and 4 deletions
13
justfile
13
justfile
|
@ -17,11 +17,16 @@ test-in-docker:
|
||||||
shell-in-docker:
|
shell-in-docker:
|
||||||
docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ git.kemitix.net/kemitix/rust:latest bash
|
docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ git.kemitix.net/kemitix/rust:latest bash
|
||||||
|
|
||||||
run-in-docker:
|
docker-test-image := "git.kemitix.net/kemitix/git-next:test"
|
||||||
docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/app/ git.kemitix.net/kemitix/git-next:latest server start
|
|
||||||
|
|
||||||
run-ui-in-docker:
|
build-docker:
|
||||||
docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ git.kemitix.net/kemitix/git-next:latest server start --ui
|
docker build . -t {{ docker-test-image }}
|
||||||
|
|
||||||
|
run-in-docker: build-docker
|
||||||
|
docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/app/ {{ docker-test-image }} server start
|
||||||
|
|
||||||
|
run-ui-in-docker: build-docker
|
||||||
|
docker run --rm -u $(id -u):$(id -g) -it -v ${PWD}:/app/ {{ docker-test-image }} server start --ui
|
||||||
|
|
||||||
install-hooks:
|
install-hooks:
|
||||||
@echo "Installing git hooks"
|
@echo "Installing git hooks"
|
||||||
|
|
Loading…
Add table
Reference in a new issue