Skip to content

Instantly share code, notes, and snippets.

@nitinsatish
Last active May 10, 2022 06:42
Show Gist options
  • Save nitinsatish/ffab4b992b79b76d9e9171894148801c to your computer and use it in GitHub Desktop.
Save nitinsatish/ffab4b992b79b76d9e9171894148801c to your computer and use it in GitHub Desktop.
[jdeployer new image deployment] #juniper
  1. If jdeployer needs to be built. This happens when we want to incorporate new JD code.
cd Repos/atom/jdeployerSaaS
./jdeployer_image_builder.sh
  1. Tag this new JD image
docker tag jdeployer:220422 svl-artifactory.juniper.net/atom-docker/atom-of/mukil/jdeployer:R1.2
  1. Build mukil product image
cd Repos/atom/jdeployerSaaS/products/mukil
./application_image_builder.sh
  1. Tag and Upload to ECR
 docker tag mukil:thanos-test 494665075828.dkr.ecr.us-west-2.amazonaws.com/mukil-services/mukil:thanos-test
 aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 494665075828.dkr.ecr.us-west-2.amazonaws.com
 docker push 494665075828.dkr.ecr.us-west-2.amazonaws.com/mukil-services/mukil:thanos-test
  1. Upload script and config to s3
PROJECT=mukil2eksbng20
aws s3 cp external_config.yaml s3://cto-${PROJECT}-tfstate/init-uploads/external_config.yaml
aws s3 cp jdeployer.sh s3://cto-${PROJECT}-tfstate/init-uploads/jdeployer.sh 
  1. Download from devops_ssm and execute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment