You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2022/01/21 21:38:29 UTC
[tvm] branch main updated: [Docker] Relax name check (#10011)
This is an automated email from the ASF dual-hosted git repository.
tqchen 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 81b66e6 [Docker] Relax name check (#10011)
81b66e6 is described below
commit 81b66e64eda2973001322aad4a1a45a77a5ad8e8
Author: lixiaoquan <ra...@163.com>
AuthorDate: Sat Jan 22 05:38:04 2022 +0800
[Docker] Relax name check (#10011)
Fix a issue that user name like aaa.bb can't be added to docker container
---
docker/with_the_same_user | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docker/with_the_same_user b/docker/with_the_same_user
index a7ea8c0..89ae8f5 100644
--- a/docker/with_the_same_user
+++ b/docker/with_the_same_user
@@ -36,8 +36,8 @@ else
rm /this_is_writable_file_system
fi
-getent group "${CI_BUILD_GID}" || addgroup --gid "${CI_BUILD_GID}" "${CI_BUILD_GROUP}"
-getent passwd "${CI_BUILD_UID}" || adduser --gid "${CI_BUILD_GID}" --uid "${CI_BUILD_UID}" \
+getent group "${CI_BUILD_GID}" || addgroup --force-badname --gid "${CI_BUILD_GID}" "${CI_BUILD_GROUP}"
+getent passwd "${CI_BUILD_UID}" || adduser --force-badname --gid "${CI_BUILD_GID}" --uid "${CI_BUILD_UID}" \
--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 "${CI_BUILD_USER}"