25 lines
813 B
Makefile
25 lines
813 B
Makefile
.PHONY: image test dbg clean build
|
|
.DEFAULT_GOAL := build
|
|
|
|
image:
|
|
docker build $(DOCKER_BUILD_OPTS) --tag netty-incubator-buffer:build .
|
|
|
|
test: image
|
|
docker run --rm --name build-container netty-incubator-buffer:build
|
|
|
|
dbg:
|
|
docker create --name build-container-dbg --entrypoint /bin/bash -t netty-incubator-buffer:build
|
|
docker start build-container-dbg
|
|
docker exec -it build-container-dbg bash
|
|
|
|
clean:
|
|
docker rm -fv build-container-dbg
|
|
docker rm -fv build-container
|
|
|
|
build: image
|
|
docker create --name build-container netty-incubator-buffer:build
|
|
docker start -a build-container || (docker cp build-container:/home/build/target . && false)
|
|
docker wait build-container || (docker cp build-container:/home/build/target . && false)
|
|
docker cp build-container:/home/build/target .
|
|
docker rm build-container
|