Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CircleCI config to use public docker images #1171

Merged
merged 16 commits into from
Jan 21, 2022

Conversation

antonymilne
Copy link
Contributor

Description

We've moved the docker images used for CircleCI to public on AWS ECR. This means that forked PRs will no longer need access to environment variables for credentials to pull the images. Credentials are still needed to push a new image (done nightly in the build_docker_image job).

If all works ok then this will unblock merging the forked PRs that are currently failing.

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the RELEASE.md file
  • Added tests to cover my changes

Comment on lines -349 to -351
environment:
ECR_IMAGE_URL: 350138855857.dkr.ecr.eu-west-2.amazonaws.com/kedro-builder
AWS_REGION: eu-west-2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need these once now so I've removed them from environment variables and just put them directly into the relevant commands below.

Copy link
Contributor

@limdauto limdauto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

docker_build "$pip_reqs" 3.8
docker_push 3.8

docker_build "$pip_reqs"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've altered this script so it runs for just one Python version at a time. This matches how the rest of the CircleCI config works and means we can have exactly the same script on main and develop.

- build_kedro:
matrix:
parameters:
python_version: ["3.6", "3.7", "3.8"]
requires:
- build_docker_image
- build_docker_image-<<matrix.python_version>>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that build_kedro-3.6 only depends on build_docker_image-3.6, etc.

- build_docker_image-<<matrix.python_version>>

# Python version that are *only* supported on `develop`.
nightly_build_develop:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be done as a separate workflow since it needs to use the requirements on develop branch. Just using the ones from main doesn't pass the build_kedro-3.9 job.

@antonymilne antonymilne merged commit 70736d6 into main Jan 21, 2022
@antonymilne antonymilne deleted the update-ecr-location branch January 21, 2022 13:45
antonymilne pushed a commit that referenced this pull request Jan 21, 2022
lvijnck pushed a commit to lvijnck/kedro that referenced this pull request Apr 7, 2022
Signed-off-by: Laurens Vijnck <laurens_vijnck@mckinsey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants