8000 GitHub - undockerizer/undockerizer.github.io: A tool that helps to create an installer (script) from a Docker image. · GitHub 10000
[go: up one dir, main page]

Skip to content

undockerizer/undockerizer.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Undockerizer

Source

Issue tracker:

Usage:

Please note that interactive mode and compressed mode (tar.gz) are the suggested modes of use.

Command line parameters:

Usage: Undockerizer [-cftv] [-de] [-fp] [-it] -i=<image> [-o=<outputfileStr>]
                    [-od=<outputDirPathStr>] [-sp=<shellPathStr>]
  -c, --cleanAll         Clean all temp data
      -de, --disableEscaping
                         Disable escaping of variables
                           Default: false
  -f, --force            Overwrite output file if exists
      -fp, --forcePull   Force to pull image.
                           Default: false
  -i, --image=<image>    The docker image.
      -it, --interactiveOutput
                         Generate output file with interactive mode
  -o, --output=<outputfileStr>
                         The output file name.
                           Default: null
      -od, --outputDir=<outputDirPathStr>
                         Sets the output directory path.
                           Default: undockerizer
      -sp, --shellPath=<shellPathStr>
                         Sets the shell path.
                           Default: /bin/sh
  -t, --tar              Create tar file.
                           Default: false
  -v, --verbose          Verbose mode.

Run with JDK

Prerequisites:

  • JDK and Docker is required.

Command line:

java -jar ./target/undockerizer.jar [PARAMETERS]

Run native

Prerequisites:

  • Docker is required.

Command line:

undockerizer-centos [PARAMETERS]

or

undockerizer-ubuntu [PARAMETERS]

How to Try an undockerizer script?

Prerequisites:

  • Docker is not required
  • Sudo is required

Command line:

  1. Run a docker image with same base than your undockerized image (e.g. Centos 7) and mount your undockerizer tar.gz file (or your undockerizer target folder). For example.
docker run -it -v ${WORKDIR}\undockerizer\undockerizer\:/home/undockerizer centos:7 /bin/bash
  1. Untar file:
cd /home/undockerizer
tar -xvz $UNDOCKERIZER_FILE.tar.gz
  1. Add execution attribute:
chmod +x $UNDOCKERIZER_FILE.sh
  1. Install sudo:
yum install sudo -y
  1. Run:
./$UNDOCKERIZER_FILE.sh

Build

System Requirements

  1. Java Jdk 8 or later
  2. Maven 3.6.3 or later
  3. optional: Graalvm 20.1.0 or later
  4. Docker 19 or later
  5. Checkout project

Build jar:

Command line:

mvn clean install

Build native image:

Command line:

  1. run:
cd docker-graalvm
  1. select centos, ubuntu or your custom image:
cd centos
  1. run once:
docker-build.bat
  1. compile a native image release:
docker-compile.bat

Note

Please note that this project is experimental and is offered without any guarantees or liability. Please note review the generated script and do not make illegal use of the tool or code.

Releases

No releases published

Packages

 
 
 

Contributors

0