Skip to content

Container code to run Java application on Nousmotards infra

License

Notifications You must be signed in to change notification settings

nousmotards/nm-java-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nm-java-app

Docker Repository on Quay

Container build to run Java application on Nousmotards infra.

This image can be used for other scenario. Here are the principal advantages:

  • Light
  • Based on Alpine
  • Automatic jar application download at boot
  • Failback solution based on AWS to retrieve jar application

Build

Simply run:

docker build -t nm-java-app .

Run

The images are accessible to quay.io:

docker pull quay.io/nousmotards/nm-java-app

You can run an image with required args like this:

docker run -e WGET_OPTIONS="--user=<username> --password=<password> -e URL="<main_url>" -e APP_NAME=<name_of_the_app> -e ENVIRONMENT=<prod|preprod...> -e VERSION='<app_version>' -e AWS_ACCESS_KEY='<aws_key>' -e AWS_SECRET_KEY='<aws_secret>' -e AWS_REGION='<s3_region>' -e AWS_BUCKET='<s3_bucket_name>' nm-java-app

Here is the list of available variables:

APP_NAME
VERSION
ENVIRONMENT
JAVA_OPTIONS
URL
WGET_OPTIONS
WGET_USERNAME
WGET_PASSWORD
AWS_ACCESS_KEY
AWS_SECRET_KEY
AWS_REGION
AWS_BUCKET

About

Container code to run Java application on Nousmotards infra

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages