mirror of
https://github.com/rancher/os.git
synced 2025-09-12 13:17:17 +00:00
Script updates
This commit is contained in:
15
scripts/extraimages/00-ubuntuconsole
Normal file
15
scripts/extraimages/00-ubuntuconsole
Normal 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"]
|
Reference in New Issue
Block a user