1 ### Set the base image to Fedora
4 ### File Author / Maintainer
5 MAINTAINER "Ecomp Opensource Team"
6 LABEL Description="This image is used to get jacoco result from a jboss image" Version="1.0"
10 ARG chef_repo_branch_name
12 ARG chef_repo_git_name
13 ARG chef_repo_git_username
14 ENV HTTP_PROXY=$http_proxy
15 ENV HTTPS_PROXY=$https_proxy
16 ENV http_proxy=$HTTP_PROXY
17 ENV https_proxy=$HTTPS_PROXY
18 RUN echo "Acquire::http::Proxy \"$http_proxy\";" >> /etc/apt/apt.conf
20 RUN apt-get update && apt-get install -y openssh-server
21 RUN mkdir /var/run/sshd
22 RUN echo 'root:screencast' | chpasswd
23 RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
25 # SSH login fix. Otherwise user is kicked off after login
26 RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
28 ENV NOTVISIBLE "in users profile"
29 RUN echo "export VISIBLE=now" >> /etc/profile
33 CMD ["/usr/sbin/sshd", "-D"]