The dependencies and Dockerfile for creating the Marqo base image
The marqo-base image is an image that has the necessary dependencies for the Marqo to be installed on and run. This speeds up the build process.
To release a new version of Marqo-base to Dockerhub:
- run the push-to-dockerhub workflow with default options. By default, an always-increasing integer will be used as the image tag. The resulting image tag won't necessarily be the
previous_tag + 1
, as the GitHub run number is used, which also increments on failed runs. If you want to use a different tag, such as "test" you can set it as the second param.
![image](https://private-user-images.githubusercontent.com/107458762/261175443-29b367a2-37a2-4cbf-b7a9-3e116d925d2b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzNzQ0NDAsIm5iZiI6MTcyNDM3NDE0MCwicGF0aCI6Ii8xMDc0NTg3NjIvMjYxMTc1NDQzLTI5YjM2N2EyLTM3YTItNGNiZi1iN2E5LTNlMTE2ZDkyNWQyYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyM1QwMDQ5MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04N2E4ZWE2MTdjODg2ZjY4YWU3MzNhNmZhNmIwZTcyN2NlYmU5YTU2MmM1NzEwYmY2MDlmYzcwYjU0NmI3OWJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8Rc96ZhDowt-CoHkO51ac49hEs-ybLNfmfTezQcef34)
- You will get a message during one of the steps to review deployments before the image is built and pushed to dockerhub:
![image](https://private-user-images.githubusercontent.com/107458762/261175797-70d3fee8-f696-48d5-bd59-5198c5210bdf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzNzQ0NDAsIm5iZiI6MTcyNDM3NDE0MCwicGF0aCI6Ii8xMDc0NTg3NjIvMjYxMTc1Nzk3LTcwZDNmZWU4LWY2OTYtNDhkNS1iZDU5LTUxOThjNTIxMGJkZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyM1QwMDQ5MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NDQ4ZDI4MWMxNTM0OGJhY2JiMzhkZDJhYzEyOWU0NmRhZWRiZTllZTRkMjE3MDk4YzI3YTQ0MGQ0NGQxZDc0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.SHSHb_2KgJwWWCecqybBnG9Cz889rH6ewbuDIwnK28k)
Please don't forget about this pipeline when there is a pending review because the ec2 instance used to build the image will still be running until the deployment is approved or the workflow is cancelled. If you are an authorised reviewer, click approve and deploy:
- The workflow will proceed to push a new version to Dockerhub! If you want to confirm the name of the new marqo-base image that was generated, you can download this artefact.
![image](https://private-user-images.githubusercontent.com/107458762/261176286-c26def93-7307-4b45-a1fa-152fc1c48c52.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHA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M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyM1QwMDQ5MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xOTQzOGVkYzA0YWFhZDUxNGY0ZDNhNDliNzA2ZDQ0NjBlNzBmZjk5NjkyMWEzZDNhOGFhMGM0NTQyZmY4YmI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.3YRqnNmS8zufJypDBk98JPzNUvVeVZGCfz5-sfoe9jU)
# 1. Authenticate into the ECR repo
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 424082663841.dkr.ecr.us-east-1.amazonaws.com
# 2. Pull your tag
docker pull 424082663841.dkr.ecr.us-east-1.amazonaws.com/marqo-base:my-tag