forked from housepower/ckman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.test
17 lines (14 loc) · 760 Bytes
/
Dockerfile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This Dockerfile is used for build a docker container to run clickhouse node which in centos-7, Just for ckman project.
# You can run command like: "docker build -f Dockerfile.test -t ckman-clickhouse:centos-7 ."
# the offical image is eoitek/ckman-clickhouse:centos-7, You can pull it from dockerhub.
FROM centos:7
#FROM ccr.ccs.tencentyun.com/library/centos:7
WORKDIR /var/
RUN yum -y update && yum install -y openssh* \
&& yum install -y epel-release && yum install -y jq net-tools nc vim \
&& yum install -y initscripts.x86_64 \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone \
&& echo '123456' |passwd --stdin root
ENTRYPOINT /usr/sbin/init
CMD ["systemctl", "start", "sshd"]