-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (47 loc) · 1.58 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM centos:7
MAINTAINER YANA Docker Maintainers "[email protected]"
ENV YANA_VERSION "0.0.1"
RUN yum install -y openssh-server sudo
RUN echo "UseDNS no" >> /etc/ssh/sshd_config
RUN echo "AddressFamily inet" >> /etc/ssh/sshd_config
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
RUN echo "SyslogFacility AUTHPRIV" >> /etc/ssh/sshd_config
RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
RUN echo "root:_mlc_08u_@#_" |chpasswd
RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key
RUN ssh-keygen -q -N "" -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key
RUN ssh-keygen -q -N "" -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
RUN ssh-keygen -q -N "" -t ed25519 -f /etc/ssh/ssh_host_ed25519_key
RUN mkdir /var/run/sshd
# Install gcc, g++ and or all tools and dependenct libraries
# bind-utils -- nslookup dig host
# net-tools -- ifconfig
# sysstat -- pidstat pstack iostat
RUN set -ex \
&& yum install -q -y gcc gcc-c++ gdb \
clang clang-devel clang-analyzer clang-format \
make cmake bison flex automake autoconf autohead libtool \
libstdc++-docs \
libuuid-devel \
libzip-devel \
libiconv-devel \
openssl-devel \
pcre-devel \
ncurses-devel \
curl jq file wget uuid vim tree doxygen \
man-pages git-core \
svn lsof mlocate tcpdump \
crontabs bind-utils net-tools \
valgrind valgrind-devel \
gperftools gperftools-devel \
sysstat perf lsof
RUN set -ex \
&& wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py
COPY . /yana
WORKDIR /yana
RUN set -ex \
&& make \
&& make test
EXPOSE 19221 8765
CMD ["/usr/sbin/sshd", "-p 19221", "-D"]