Motivation: Because of the current dependency on snapshot versions of the Panama Foreign version of OpenJDK 16, this project is fairly involved to build. Modification: To make it easier for newcomers to build the binaries for this project, a docker-based build is added. The docker image is constructed such that it contains a fresh snapshot build of the right fork of Java. A make file has also been added, which encapsulates the common commands one would use for working with the docker build. Result: It is now easy for newcomers to make builds, and run tests, of this project, as long as they have a working docker installation.
23 lines
616 B
Makefile
23 lines
616 B
Makefile
.PHONY: image test dbg clean build
|
|
|
|
image:
|
|
docker build --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
|
|
|
|
build: image
|
|
docker create --name build-container netty-incubator-buffer:build
|
|
docker start -a build-container
|
|
docker wait build-container
|
|
docker cp build-container:/home/build/target .
|
|
docker rm build-container
|