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.
- You will get a message during one of the steps to review deployments before the image is built and pushed to dockerhub:
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.
# 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