Skip to content

Azzill/jar-dockerizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jar-dockerizer

a dockerize tool for java8

Installation

  # go.exe build -i -o dockerize main.go compress.go

Usage

-d string

  -d [jars' directory]

-jar string

  -jar [jar file]

-jdk int

  -jdk [jdk version default by 8] (only support 8)

-o string

  -o [tar output directory] default current directory (default ".")

-p string

  expose ports eg: -p 1234,1235,1236

Example

  # dockerize -jar myjar.jar
  # dockerize -jar myjar.jar -p 80,8080
  # dockerize -jar myjar.jar -o dir
  # dockerize -d /var/path -o /var/path

What will be built in the output directory

the tarballs compressed with Dockerfile and jar

the "build.sh" for docker to import these tarballs

Download base image in Docker

You might need to sign up an account

Build images

  # ./build.sh

About

a dockerize tool for java8

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages