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(ansible): add envs to local user .bashrc #4923

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amadeuszsz
Copy link
Contributor

@amadeuszsz amadeuszsz commented Jun 26, 2024

Description

While using Docker container for development as a non-root user, some of environment variables are missing. Root user and non-root user differ among environment variable. The PR populates some environment variables to /etc/skel/.bashrc files. Not all environment variables are considered here, the remaining ones are not relevant for non-root user. Actually, they will bring issues.

This PR solves #4896 and supports Autoware development using devcontainers.

Tests performed

Built locally with ./docker/build.sh --devel-only and tested with .devcontainers:

  • Building packages possible,
  • Nodes execution possible,
  • Access issues don't occur.

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: Amadeusz Szymko <amadeusz.szymko.2@tier4.jp>
@amadeuszsz
Copy link
Contributor Author

"The destination directory (/etc/skel) is not writable by the current user. Error was: [Errno 13] Permission denied: b'/etc/skel/.ansible_tmpznvz9_ob.bashrc'"
Seems we have permission issue for our workflow.
@youtalk @oguzkaganozt
Could you tell me please if there is any way to apply PR's changes? The general idea is to allow full Autoware development with docker containers. If possible solution highly affects Docker image, we can close this PR and related issue.

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.

None yet

1 participant