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