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

chore: refactored docker images replication module #282

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

srinivasreddych
Copy link
Contributor

Issue #, if available:

Description of changes:

  • fixed the deletion workflow and provided an input to remove the hardcoded idf as project name
  • refactored the shell script to check the repo first, check the image if exists and push images only if needed

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@malachi-constant malachi-constant left a comment

Choose a reason for hiding this comment

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

Looks good, are we now defferring to CONTIRBUTING, LICENSE etc at the root of repo?

And looks like there's some static checks to fix

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
  • Commit ID: fbc0c42
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
  • Commit ID: a2cc0fc
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
  • Commit ID: 403c037
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@srinivasreddych
Copy link
Contributor Author

srinivasreddych commented Aug 19, 2024

Looks good, are we now defferring to CONTIRBUTING, LICENSE etc at the root of repo?

And looks like there's some static checks to fix

Fixed the static checks. Also, from my knowledge, we always refer to the license, contributing.md at the root of the repo, right? I've checked the IDF modules and that's what i observed. Do you have any suggestion @malachi-constant ?

@@ -19,7 +19,7 @@ deploy:
fi
sleep 15
fi
- python3 get-list-of-eks-images.py --eks-version ${SEEDFARMER_PARAMETER_EKS_VERSION} --versions-directory data/eks_dockerimage-replication/versions --update-helm-repos --registry-prefix "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${AWS_CODESEEDER_NAME}-"
- python3 get-list-of-eks-images.py --eks-version ${SEEDFARMER_PARAMETER_EKS_VERSION} --versions-directory data/eks_dockerimage-replication/versions --update-helm-repos --registry-prefix "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${SEEDFARMER_PROJECT_NAME}-"
- chmod +x replication.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit (not related to change) - is this chmod required? Can we check-in the file with the correct permissions?

@@ -11,6 +11,7 @@ charts:
tag:
location: chart
path: appVersion
prefix: v
Copy link
Contributor

Choose a reason for hiding this comment

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

Just confirming if this is intentional

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This is intentional. Some helm charts are tagged by prefixing v to their versions, and their corresponding docker images never have that prefix.

example is load balancer controller.

Copy link
Contributor

@kukushking kukushking left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@srinivasreddych srinivasreddych merged commit fd689f7 into awslabs:main Aug 20, 2024
3 checks passed
@srinivasreddych srinivasreddych deleted the feat/replication branch August 20, 2024 17:58
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