-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·32 lines (23 loc) · 998 Bytes
/
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
FROM fedora:30
MAINTAINER Aleksander Sorokin <[email protected]>
# https://github.com/scylladb/seastar/
COPY install-dependencies.sh .
RUN ./install-dependencies.sh && \
dnf install -y git clang rsync vim \
strace valgrind gdb gdb-gdbserver openssh-server
WORKDIR /seastar
RUN git clone https://github.com/scylladb/seastar . && \
./configure.py --mode=release --prefix=/usr/local && \
ninja -j1 -C build/release install && rm -rf *
RUN mkdir /var/run/sshd && /usr/bin/ssh-keygen -A && \
echo 'root:root' | chpasswd && \
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
# 22 for ssh server. 7777 for gdb server.
EXPOSE 22 7777
RUN groupadd -r scylla && \
useradd -ms /bin/bash -r -g scylla scylla && \
echo 'scylla:dev' | chpasswd
CMD ["/usr/sbin/sshd", "-D"]