Initial OpenECOMP MSO commit
[so.git] / packages / docker / src / main / docker / docker-files / Dockerfile.jacoco
1 ### Set the base image to Fedora
2 FROM ubuntu:14.04
3
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"
7
8 ARG http_proxy
9 ARG https_proxy
10 ARG chef_repo_branch_name
11 ARG chef_repo_address
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
19
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
24
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
27
28 ENV NOTVISIBLE "in users profile"
29 RUN echo "export VISIBLE=now" >> /etc/profile
30
31 VOLUME /shared
32
33 CMD ["/usr/sbin/sshd", "-D"]