Skip to content

feat(ansible): add install_docker.yaml and deprecate docker.yaml#7057

Merged
xmfcx merged 1 commit intomainfrom
feat/ansible-install-docker-playbook
Apr 24, 2026
Merged

feat(ansible): add install_docker.yaml and deprecate docker.yaml#7057
xmfcx merged 1 commit intomainfrom
feat/ansible-install-docker-playbook

Conversation

@xmfcx
Copy link
Copy Markdown
Contributor

@xmfcx xmfcx commented Apr 24, 2026

Why

Phase 1 (additive only) of the ansible-entrypoint consolidation tracked in #7052. External consumers reference docker.yaml (TIER IV internal scripts, autowarefoundation/openadkit), so it cannot be renamed or deleted in this PR. Landing the replacement + deprecation marker now gives consumers a ~1 month migration window before Phase 2 deletes the old file.

New playbook follows the tag-driven convention already used by autoware_requirements.yaml and install_dev_env.yaml: no vars_prompt, all opt-in/opt-out via --tags/--skip-tags.


Test plan

  • Lint passes:

    pre-commit run --files ansible/playbooks/install_docker.yaml ansible/playbooks/docker.yaml
  • New playbook installs Docker + NVIDIA container toolkit on a clean Ubuntu 24.04 host:

    ansible-playbook ansible/playbooks/install_docker.yaml
    docker run --rm --gpus all nvidia/cuda:12.4.0-base-ubuntu24.04 nvidia-smi
  • `--skip-tags nvidia` installs Docker only, no NVIDIA toolkit:

    ansible-playbook ansible/playbooks/install_docker.yaml --skip-tags nvidia
    docker run --rm hello-world
  • Old `docker.yaml` still runs end-to-end (backwards compatibility during the deprecation window):

    ansible-playbook ansible/playbooks/docker.yaml
  • Deprecation banner visible at the top of `ansible/playbooks/docker.yaml` on the PR diff view.

Phase 1 (additive) of the ansible-entrypoint consolidation tracked in
#7052.

- Adds `install_docker.yaml`: tag-driven playbook installing docker_engine
  and nvidia_container_toolkit. No host-side CUDA since CUDA userspace
  libs belong inside the container.
- Marks `docker.yaml` with a deprecation banner pointing to the
  replacement and a removal date of 2026-05-24. File is otherwise
  untouched and remains functional during the transition window so
  external consumers (TIER IV internal scripts, openadkit) can migrate.

Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
@github-actions
Copy link
Copy Markdown

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@xmfcx xmfcx merged commit 3099800 into main Apr 24, 2026
33 of 36 checks passed
@xmfcx xmfcx deleted the feat/ansible-install-docker-playbook branch April 24, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run:health-check Run health-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants