mirror of
https://github.com/rancher/os.git
synced 2025-07-04 10:36:14 +00:00
Merge pull request #218 from imikushin/jessie-console
add debian:jessie console :)
This commit is contained in:
commit
b7c45be5eb
18
scripts/extraimages/01-debianconsole
Normal file
18
scripts/extraimages/01-debianconsole
Normal file
@ -0,0 +1,18 @@
|
||||
FROM debian:jessie
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade --no-install-recommends -y && \
|
||||
apt-get install -y --no-install-recommends openssh-server rsync locales vim
|
||||
RUN rm -rf /etc/ssh/*key*
|
||||
COPY scripts/dockerimages/scripts/entry.sh /usr/sbin/
|
||||
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
|
||||
COPY scripts/dockerimages/scripts/update-ssh-keys /usr/bin/
|
||||
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 && \
|
||||
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||
ENTRYPOINT ["/usr/sbin/entry.sh"]
|
||||
CMD ["/usr/sbin/console.sh"]
|
Loading…
Reference in New Issue
Block a user