Skip to content

janislavjankov/java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Image Builder

appLariat's generic image builder for Java(Openjdk). This is the default build configuration for Java images and is used by the appLariat Component Builder service

Default build workflow:

  1. Component builder starts with a task to create a Openjdk image and then dynamically retrieves this repository.
  2. Component builder updates the FROM image based on the component configuration to pull the proper version of the Openjdk image.
  3. Component builder retrieves and prepares the specified code artifact.
  4. Component builder executes a Docker Build to generate an image
    • Pulls the proper official Openjdk image as the base image layer
    • Copies the build.sh and entrypoint.sh into the image
    • Copies the code artifact into the image
    • Executes the build.sh script to prepare the image to run
  5. Component builder pushes the generated image to a designated container repository

How to customize java component setup

Clone this repository to modify and then update the build artifact in your application component configuration within appLariat to use your own customized builder.

  • Simplest option is to modify the build.sh and entrypoint.sh scripts to prepare and customize the image.

    • build.sh runs once during the docker build process. It can be used to install software packages into image.
    • entrypoint.sh runs every time that image starts and can be utilized to prepare run time environmet like exporting environment variables, setting the PATH etc.
  • Alternatively you can also modify the Dockerfile and use Docker syntax to build your own customized image. If you create your own Dockerfile you will also need to update the image artifact in appLariat as component builder will override the FROM line in the Dockerfile with the image specified in the config.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%