[PATCH compass-ci 4/4] assign-account: add /etc/hostname mapping

add /etc/hostname mapping for assign-account [why] it's need to get the jumper hostname when generate the rsa private/public key when execute ssh-keygen with -C option in container ssh-keygen -f /home/$login_name/.ssh/id_rsa -N '' -C $login_name@$hostname [how] add file mapping for file /etc/hostname Signed-off-by: Luan Shengde <shdluan@163.com> --- container/assign-account/start | 2 ++ 1 file changed, 2 insertions(+) diff --git a/container/assign-account/start b/container/assign-account/start index 2290982..379dbd3 100755 --- a/container/assign-account/start +++ b/container/assign-account/start @@ -14,6 +14,8 @@ cmd=( -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro -v /srv/account-info:/opt/account_data/:rw + -v /etc/hostname:/etc/hostname:ro + -v /etc/localtime:/etc/localtime:ro -v /home:/home:rw -p 29999:29999 assign-account -- 2.23.0

On Wed, Nov 11, 2020 at 07:55:40PM +0800, Li Yuanchao wrote:
On Wed, Nov 11, 2020 at 04:56:19PM +0800, Luan Shengde wrote:
add /etc/hostname mapping for assign-account
[why] it's need to get the jumper hostname when generate the rsa
it's need => it needs
I will fix it Thanks, Luan Shengde
Thanks, Yuanchao
participants (2)
-
Li Yuanchao
-
Luan Shengde