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

fix(docker): update docker manifest #5310

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

oguzkaganozt
Copy link
Contributor

@oguzkaganozt oguzkaganozt commented Oct 7, 2024

Description

In order to simplify docker tagging mechanism this PR will do the following things:

  • Only create combined manifest if both amd64 and arm64 versions found in the packages
  • Validate the manifest file after creation
  • Delete -amd64, -arm64 tags if the combined manifest created succesfully for the corresponding versions in order to eliminate redundant tags

Tests performed

https://github.com/autowarefoundation/autoware/actions/runs/11219103356/job/31184311855

Effects on system behavior

Not applicable.

Interface changes

Not applicable.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

oguzkaganozt and others added 19 commits October 7, 2024 18:44
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
.
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
@oguzkaganozt oguzkaganozt self-assigned this Oct 7, 2024
@oguzkaganozt oguzkaganozt added type:containers Docker containers, containerization of components, or container orchestration. component:openadkit Issues or Features related to Open AD Kit tag:run-health-check Run health-check labels Oct 7, 2024
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
@oguzkaganozt oguzkaganozt marked this pull request as ready for review October 7, 2024 15:57
@oguzkaganozt
Copy link
Contributor Author

@youtalk please review now

amd64_tags=$(printf "%s\n" $ALL_TAGS | grep "\-amd64" | sed "s/-amd64$//g")
arm64_tags=$(printf "%s\n" $ALL_TAGS | grep "\-arm64" | sed "s/-arm64$//g")
base_tags=$(printf "%s\n" "$amd64_tags" "$arm64_tags" | sort | uniq)
echo "All tags: ${{ steps.get-all-tags.outputs.tags }}"
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be redundant.
https://github.com/autowarefoundation/autoware/actions/runs/11219103356/job/31184311855#step:3:576

Suggested change
echo "All tags: ${{ steps.get-all-tags.outputs.tags }}"

Comment on lines 54 to 56
- name: Get base tags
id: get-base-tags
run: |
Copy link
Member

Choose a reason for hiding this comment

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

Can you create a shell script file that performs this process and rewrite this action to just call it? This will improve readability and maintainability.

@oguzkaganozt oguzkaganozt marked this pull request as draft October 14, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:openadkit Issues or Features related to Open AD Kit tag:run-health-check Run health-check type:containers Docker containers, containerization of components, or container orchestration.
Projects
Status: Execution
Development

Successfully merging this pull request may close these issues.

2 participants