| Alanny Lopez | bb309af | 2017-08-18 15:14:49 -0500 | [diff] [blame] | 1 | FROM ubuntu:14.04 | 
 | 2 |  | 
 | 3 | RUN apt-get update && apt-get install -yy \ | 
 | 4 |     bzip2 \ | 
 | 5 |     locales \ | 
 | 6 |     openssh-server \ | 
 | 7 |     wget | 
 | 8 |  | 
 | 9 | # Set the locale | 
 | 10 | RUN locale-gen en_US.UTF-8 | 
 | 11 | ENV LANG en_US.UTF-8 | 
 | 12 | ENV LANGUAGE en_US:en | 
 | 13 | ENV LC_ALL en_US.UTF-8 | 
 | 14 |  | 
 | 15 | RUN mkdir /var/run/sshd | 
 | 16 | RUN echo 'root:0penBMC' | chpasswd | 
 | 17 | RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config | 
 | 18 | RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config | 
 | 19 | expose 22 | 
 | 20 |  | 
 | 21 | COPY setup_xcat.sh / | 
 | 22 | RUN /setup_xcat.sh | 
 | 23 |  | 
 | 24 | COPY entrypoint.sh / | 
 | 25 | CMD ["/entrypoint.sh"] |