Skip to content

mabrarov/maven-docker-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven Docker Builder

License Travis CI build status

Docker builder pattern implemented with Apache Maven.

Building

Building Requirements

  1. JDK 1.8+
  2. Docker 1.12+
  3. If remote Docker instance is used then DOCKER_HOST environment variable should point to that engine and include the schema, like tcp://docker-host:2375 instead of docker-host:2375.
  4. The current directory is directory where this repository is cloned.

Building Steps

Building with Maven Wrapper:

./mvnw clean package

or on Windows:

mvnw.cmd clean package

Testing

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

About

Docker builder pattern with Apache Maven

Topics

Resources

License

Stars

Watchers

Forks