1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 13:17:17 +00:00

Script updates

This commit is contained in:
Darren Shepherd
2015-02-22 20:59:26 -07:00
parent dcf9d24415
commit d2dd4db6b1
11 changed files with 132 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
FROM ubuntu:14.04.1
RUN apt-get update && \
apt-get upgrade --no-install-recommends -y && \
apt-get install -y --no-install-recommends openssh-server
RUN rm -rf /etc/ssh/*key*
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
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 && \
sed -i 's/rancher.*/rancher:rixbL64o6zGmY:16486:0:99999:7:::/g' /etc/shadow && \
echo '## allow password less for rancher user' >> /etc/sudoers && \
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
CMD ["/usr/sbin/console.sh"]