Container build to run Web application on Nousmotards infra.
This image can be used for other scenario. Here are the principal advantages:
- Light
- Based on Debian slim
- Automatic archive application download at boot
- Failback solution based on AWS to retrieve archive application
Simply run:
docker build -t nm-web-app .
The images are accessible to quay.io:
docker pull quay.io/nousmotards/nm-web-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-web-app
Here is the list of available variables:
APP_NAME
VERSION
ENVIRONMENT
URL
WGET_OPTIONS
WGET_USERNAME
WGET_PASSWORD
AWS_ACCESS_KEY
AWS_SECRET_KEY
AWS_REGION
AWS_BUCKET