Repository with base Docker images for Structural team
See https://rolodex.alphasights.com/extras/platform-images for most recent version
If you'd like to publish a new version of any image, please run following
- 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
- 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 runaws 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 getLogin Succeeded
message at the end
- 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
- Build & push image
- Replace
<your-image-name>
with your image name (e.g.jre-17
orjre-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>
- Build process shoudl take around 1 minute (or more). If it is blazing fast - something is not ok and packages aren't updated properly. Try changing something in
Dockerfile
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.7
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.7