add install ssh for assign-account [why] need ssh-keygen to generate rsa public/private key for user
[how] add install ssh when build the image
Signed-off-by: Luan Shengde shdluan@163.com --- container/assign-account/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/container/assign-account/Dockerfile b/container/assign-account/Dockerfile index f84b5e6..c1d360e 100644 --- a/container/assign-account/Dockerfile +++ b/container/assign-account/Dockerfile @@ -2,15 +2,14 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
FROM debian -MAINTAINER luanshd0525@163.com +MAINTAINER Luan Shengde shdluan@163.com ENV DEBIAN_FRONTEND noninteractive
COPY conf/sources.list* /etc/apt/
RUN apt-get update && \ - apt-get install -y ruby-sinatra ruby-json curl && \ - ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo 'Asia/Shanghai' > /etc/timezone + apt-get install -y ssh ruby-sinatra ruby-json curl + COPY assign-account.rb /usr/local/bin/ COPY get_account_info.rb /usr/local/bin/
On Thu, Nov 12, 2020 at 10:11:25AM +0800, Luan Shengde wrote:
add install ssh for assign-account [why] need ssh-keygen to generate rsa public/private key for user
[how] add install ssh when build the image
How is obvious, please remove.
- ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
- echo 'Asia/Shanghai' > /etc/timezone
Why do that unrelated change?
Thanks, Fengguang
On Thu, Nov 12, 2020 at 11:15:54AM +0800, Wu Fengguang wrote:
On Thu, Nov 12, 2020 at 10:11:25AM +0800, Luan Shengde wrote:
add install ssh for assign-account [why] need ssh-keygen to generate rsa public/private key for user
[how] add install ssh when build the image
How is obvious, please remove.
OK, I will fix it
- ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
- echo 'Asia/Shanghai' > /etc/timezone
Why do that unrelated change?
I will restore this part
Thanks, Luan Shengde
Thanks, Fengguang