images
Name :
Input parameters in environment specific
images
Category : backup
Type : docker
Channel : community
Backups Athena docker images in local environment registry or in external registry. Backed up registry can be used as Athena PaaS registry to allow environment to run independently from Athena repository availability.
Command
athena-backup -h <target registry host> -u <target registry username> -p <target registry password> -t [aws|private] images
Key requirements
In case if backup registry is AWS ECR:
- AWS IAM Access Key Id in
/var/ansible/keys/<Owner><ENV>.aws.id
, for example/var/ansible/keys/TestDEV.aws.id
- AWS IAM Access Key Secret in
/var/ansible/keys/<Owner><ENV>.aws.key
, for example/var/ansible/keys/TestDEV.aws.key
Infrastructure requirements
- None
Service Requirements
Postconditions
To use backup registry set docker_registry_host
. In case if backup registry requires username and password to login set docker_login_username
and docker_login_password
and run:
athena-services docker-agent
Parameters
vpc_name
- Owner name, environment variableATHENA_OWNER
by default, for example:Test
vpc_env
- Environment name, environment variableATHENA_ENV
by default, for example:DEV
vpc_region
- In case if deploying into AWS ECR, region where AWS ECR is located,eu-west-1
by defaultdocker_images_backup_repo_from_host
: hostname of source registry, by defaultregsitry-athena-dev.athenapaas.com
docker_images_backup_repo_to_host
: hostname of target registry, can be specified in-h
option, by defaultregistry-<owner>-<env>.<platform FDQN>
, for exampleregsitry-test-dev.athenapaas.com
docker_images_backup_repo_to_username
: target registry username, can be specified in-u
option, by default not setdocker_images_backup_repo_to_password
: target registry password, can be specified in-p
option, by default not setdocker_images_backup_list
: list of repositories in format<repository>:<tag>
, for examplejenkins:latest
, by default all Athena imagesdocker_registry_host
: docker registry to pull Athena images from, by defaultregistry-athena-dev.athenapaas.com
docker_login_username
: docker registry username to pull Athena images from, by default not setdocker_login_password
: docker registry password to pull Athena images from, by default not set
Examples
Input parameters in environment specific group_vars
docker_registry_host: "377984967111.dkr.ecr.eu-west-1.amazonaws.com"
docker_login_username: "AWS"
docker_login_password: "JGHJGkkjhjkkjhkHKHKHKHKHkhkhnkn"
docker_images_backup_list:
- athena-jenkins:latest
- athena-kibana:latest
- athena-nexus:latest
- athena-prometheus:latest
- athena-redmine:latest
- athena-wordpress:latest
- athena-keycloak:latest
- athena-logicaldoc:latest
License
Athena License, Copyright by Knowledgeprice