You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by me...@apache.org on 2023/01/19 20:44:10 UTC

[tvm] branch main updated: [Docker]Add dialout group by default on login (#13810)

This is an automated email from the ASF dual-hosted git repository.

mehrdadh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new c2eee01e6e [Docker]Add dialout group by default on login (#13810)
c2eee01e6e is described below

commit c2eee01e6eb64b3dfc3e49a63035d0fa32900539
Author: Mehrdad Hessar <mh...@octoml.ai>
AuthorDate: Thu Jan 19 12:43:59 2023 -0800

    [Docker]Add dialout group by default on login (#13810)
    
    This would help to run commands like nrfjprog inside docker without sudo command.
---
 docker/with_the_same_user | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docker/with_the_same_user b/docker/with_the_same_user
index bd332cd913..0c17be5197 100644
--- a/docker/with_the_same_user
+++ b/docker/with_the_same_user
@@ -54,6 +54,7 @@ getent passwd "${CI_BUILD_UID}" || adduser --force-badname --gid "${CI_BUILD_GID
     --gecos "${CI_BUILD_USER} (generated by with_the_same_user script)" \
     --disabled-password --home "${CI_BUILD_HOME}" --quiet "${CI_BUILD_USER}"
 usermod -a -G sudo -G tvm-venv "${CI_BUILD_USER}"
+usermod -a -G sudo -G dialout "${CI_BUILD_USER}"
 
 # Add user to video group for ROCm
 if [[ ! -z "${ROCM_ENABLED-}" ]]; then