2020-11-18 17:16:37 +01:00
|
|
|
.PHONY: image test dbg clean build
|
2020-11-18 17:32:42 +01:00
|
|
|
.DEFAULT_GOAL := build
|
2020-11-18 17:16:37 +01:00
|
|
|
|
|
|
|
image:
|
2020-11-20 14:33:06 +01:00
|
|
|
docker build $(DOCKER_BUILD_OPTS) --tag netty-incubator-buffer:build .
|
2020-11-18 17:16:37 +01:00
|
|
|
|
|
|
|
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
|
2020-12-11 12:10:04 +01:00
|
|
|
docker rm -fv build-container
|
2020-11-18 17:16:37 +01:00
|
|
|
|
|
|
|
build: image
|
|
|
|
docker create --name build-container netty-incubator-buffer:build
|
2020-11-30 13:49:25 +01:00
|
|
|
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)
|
2020-11-18 17:16:37 +01:00
|
|
|
docker cp build-container:/home/build/target .
|
|
|
|
docker rm build-container
|