Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 2.22 KB

README.md

File metadata and controls

29 lines (23 loc) · 2.22 KB

structural-docker-images

Repository with base Docker images for Structural team

See https://rolodex.alphasights.com/extras/platform-images for most recent version

Build instruction

If you'd like to publish a new version of any image, please run following

  1. Obtain AWS credentials (once per day):
  • Go to https://alphasights-eng.awsapps.com/start#/
  • Open "AWS Primary Root" -> "prod_allow_user_ecr_rw" and click on "Access keys"
  • copy shell variables (Option 1) and append them to you ~/.zshrc file
  • run source ~/.zshrc or open new console tab
  1. Login to Docker Registry (once per day):
  • Turn on VPN
  • run aws ecr get-login-password to see if it generated the password. If not, then run aws configure
  • run aws ecr get-login-password | docker login -u AWS --password-stdin "https://$(aws sts get-caller-identity --query 'Account' --output text).dkr.ecr.us-east-1.amazonaws.com". You should get Login Succeeded message at the end
  1. Prepare buildx to create multi-arch Docker images (only for the first time - if you already have it, you can skip it)
  • run docker buildx create --name container --driver=docker-container
  • in case of problems or for more details, see this tutorial, follow Approach 2: With Using Docker BuildX
  1. Build & push image
  • Replace <your-image-name> with your image name (e.g. jre-17 or jre-21)
  • Run docker buildx build --platform linux/amd64,linux/arm64 --builder container --push . -t 579859358947.dkr.ecr.us-east-1.amazonaws.com/as-platform/<your-image-name>:latest -t 579859358947.dkr.ecr.us-east-1.amazonaws.com/as-platform/<your-image-name>:<pick-your-version>

Last ones executed:

  • docker buildx build --platform linux/amd64,linux/arm64 --builder container --push . -t 579859358947.dkr.ecr.us-east-1.amazonaws.com/as-platform/jre-17:latest -t 579859358947.dkr.ecr.us-east-1.amazonaws.com/as-platform/jre-17:0.0.5
  • docker buildx build --platform linux/amd64,linux/arm64 --builder container --push . -t 579859358947.dkr.ecr.us-east-1.amazonaws.com/as-platform/jre-21:latest -t 579859358947.dkr.ecr.us-east-1.amazonaws.com/as-platform/jre-21:0.0.5