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

feat(docker): install CUDA development/runtime libraries only 1 time #5419

Merged
merged 7 commits into from
Nov 12, 2024

Conversation

youtalk
Copy link
Member

@youtalk youtalk commented Nov 11, 2024

Description

This PR introduces a base-cuda stage to install the CUDA runtime libraries and a universe-common-devel-cuda stage to install the CUDA development libraries. This addresses the side effect in #5363, where the libraries were being installed four times (twice for runtime libraries and twice for development libraries).

Tests performed

https://github.com/autowarefoundation/autoware/actions/runs/11777177249
https://github.com/autowarefoundation/autoware/actions/runs/11777181180

Effects on system behavior

Not applicable.

Interface changes

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.

Signed-off-by: Yutaka Kondo <[email protected]>
Signed-off-by: Yutaka Kondo <[email protected]>
Signed-off-by: Yutaka Kondo <[email protected]>
Signed-off-by: Yutaka Kondo <[email protected]>
@youtalk youtalk added type:containers Docker containers, containerization of components, or container orchestration. component:openadkit Issues or Features related to Open AD Kit labels Nov 11, 2024
@youtalk youtalk self-assigned this Nov 11, 2024
@youtalk youtalk added the tag:run-health-check Run health-check label Nov 11, 2024
@youtalk youtalk marked this pull request as ready for review November 12, 2024 00:38
@youtalk youtalk requested a review from mitsudome-r November 12, 2024 03:33
Copy link
Member

@mitsudome-r mitsudome-r left a comment

Choose a reason for hiding this comment

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

LGTM

@youtalk youtalk merged commit 21aa069 into main Nov 12, 2024
25 checks passed
@youtalk youtalk deleted the upstream-base-cuda branch November 12, 2024 04:20
@youtalk youtalk mentioned this pull request Nov 12, 2024
4 tasks
youtalk added a commit to youtalk/autoware that referenced this pull request Nov 14, 2024
* chore(docker): remove `/autoware/log` after `colcon build` (autowarefoundation#5329)

* chore(.github): always run `Show disk space` (autowarefoundation#5354)

always show disk space

Signed-off-by: Yutaka Kondo <[email protected]>

* build(autoware.repos): remove ament_cmake fork repository (autowarefoundation#5360)

Signed-off-by: Chengyong Lin <[email protected]>

* fix: remove `ndt_omp` (autowarefoundation#5390)

Removed ndt_omp

Signed-off-by: Shintaro Sakoda <[email protected]>

* fix: change the organization of `awsim_sensor_kit_launch` from RobotecAI to tier4 (autowarefoundation#5403)

Fixed organization of `awsim_sensor_kit_launch` from RobotecAI to tier4

Signed-off-by: Shintaro Sakoda <[email protected]>

* chore(.devcontainer): rename `.devcontainer` directories (autowarefoundation#5407)

rename .devcontainer dirs

Signed-off-by: Yutaka Kondo <[email protected]>

* feat(docker): integrate `cuda`/`no-cuda` jobs into single job (autowarefoundation#5363)

* chore(.github): rename `bake-target` to `target-image` and add descriptions to args (autowarefoundation#5413)

* rename target-image and add descriptions

Signed-off-by: Yutaka Kondo <[email protected]>

* fix feedback

Signed-off-by: Yutaka Kondo <[email protected]>

---------

Signed-off-by: Yutaka Kondo <[email protected]>

* feat(docker): install CUDA development/runtime libraries only 1 time (autowarefoundation#5419)

* add base-cuda

Signed-off-by: Yutaka Kondo <[email protected]>

* update svg

Signed-off-by: Yutaka Kondo <[email protected]>

* not cache cuda packages

Signed-off-by: Yutaka Kondo <[email protected]>

* push base-cuda image

Signed-off-by: Yutaka Kondo <[email protected]>

* Update docker-build-and-push.yaml

* Update docker-build-and-push-arm64.yaml

* separate jobs

Signed-off-by: Yutaka Kondo <[email protected]>

---------

Signed-off-by: Yutaka Kondo <[email protected]>

* refactor(docker): replace the multiple `rosdep` commands with `resolve_rosdep_keys.sh`. (autowarefoundation#5424)

* run resolve_rosdep_keys.sh

Signed-off-by: Yutaka Kondo <[email protected]>

* style(pre-commit): autofix

* update .dockerignore

Signed-off-by: Yutaka Kondo <[email protected]>

* chmod +x

Signed-off-by: Yutaka Kondo <[email protected]>

* fix location

Signed-off-by: Yutaka Kondo <[email protected]>

* remove rosdep update

Signed-off-by: Yutaka Kondo <[email protected]>

---------

Signed-off-by: Yutaka Kondo <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor(docker): replace the multiple `colcon` commands with `build_and_clean.sh`. (autowarefoundation#5425)

* run resolve_rosdep_keys.sh

Signed-off-by: Yutaka Kondo <[email protected]>

* style(pre-commit): autofix

* update .dockerignore

Signed-off-by: Yutaka Kondo <[email protected]>

* chmod +x

Signed-off-by: Yutaka Kondo <[email protected]>

* fix location

Signed-off-by: Yutaka Kondo <[email protected]>

* remove rosdep update

Signed-off-by: Yutaka Kondo <[email protected]>

* run build_and_clean.sh

Signed-off-by: Yutaka Kondo <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: Yutaka Kondo <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor(docker): replace the multiple `rm -rf` commands with `cleanup_system.sh`. (autowarefoundation#5426)

* fix(.github): fix `target-image` (autowarefoundation#5428)

fix target-image

Signed-off-by: Yutaka Kondo <[email protected]>

* chore: remove tvm_utility artifacts from Ansible tasks (autowarefoundation#5427)

Signed-off-by: Esteve Fernandez <[email protected]>

---------

Signed-off-by: Yutaka Kondo <[email protected]>
Signed-off-by: Chengyong Lin <[email protected]>
Signed-off-by: Shintaro Sakoda <[email protected]>
Signed-off-by: Esteve Fernandez <[email protected]>
Co-authored-by: chgyg <[email protected]>
Co-authored-by: SakodaShintaro <[email protected]>
Co-authored-by: SakodaShintaro <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Esteve Fernandez <[email protected]>
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: Done
Development

Successfully merging this pull request may close these issues.

2 participants