Docker builder pattern implemented with Apache Maven.
- JDK 1.8+
- Docker 1.12+
- If remote Docker instance is used then
DOCKER_HOST
environment variable should point to that engine and include the schema, liketcp://docker-host:2375
instead ofdocker-host:2375
. - The current directory is directory where this repository is cloned.
Building with Maven Wrapper:
./mvnw clean package
or on Windows:
mvnw.cmd clean package
docker run --rm abrarov/maven-docker-builder-app:0.0.1 --help
Expected output is:
Allowed options:
--help produce help message
--port arg set the TCP port number for incoming
connections' listening
--session-manager-threads arg (=1) set the number of session manager's
threads
--session-threads arg (=2) set the number of sessions' threads
--stop-timeout arg (=60) set the server stop timeout at one's
expiration server work will be terminated
(seconds)
--max-sessions arg (=10000) set the maximum number of simultaneously
active sessions
--recycled-sessions arg (=100) set the maximum number of pooled inactive
sessions
--address arg (=0.0.0.0) set the TCP address to listen on (IPv4 or
IPv6)
--listen-backlog arg (=6) set the size of TCP listen backlog
--buffer arg (=4096) set the session's buffer size (bytes)
--inactivity-timeout arg set the timeout at one's expiration
session will be considered as inactive and
will be closed (seconds)
--max-transfer arg (=4096) set the maximum size of single async
transfer (bytes)
--sock-recv-buffer arg set the size of session's socket receive
buffer (bytes)
--sock-send-buffer arg set the size of session's socket send
buffer (bytes)
--sock-no-delay arg set TCP_NODELAY option of session's socket
--demux-per-work-thread arg (=1) set demultiplexer-per-work-thread mode on