1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00
Files
os/scripts/extraimages/00-ubuntuconsole

16 lines
682 B
Plaintext
Raw Normal View History

2015-03-03 18:57:41 +05:00
FROM ubuntu:14.04.2
2015-02-22 20:59:26 -07:00
RUN apt-get update && \
apt-get upgrade --no-install-recommends -y && \
2015-03-06 21:25:40 -07:00
apt-get install -y --no-install-recommends openssh-server rsync
2015-02-22 20:59:26 -07:00
RUN rm -rf /etc/ssh/*key*
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
2015-02-23 12:00:24 -07:00
COPY scripts/dockerimages/scripts/update-ssh-keys /usr/bin/
2015-02-22 20:59:26 -07:00
RUN echo 'RancherOS \\n \l' > /etc/issue
RUN locale-gen en_US.UTF-8
RUN addgroup --gid 1100 rancher && \
addgroup --gid 1101 docker && \
useradd -u 1100 -g rancher -G docker,sudo -m -s /bin/bash rancher && \
echo '## allow password less for rancher user' >> /etc/sudoers && \
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
CMD ["/usr/sbin/console.sh"]