From 5a56e22d6980f3bbc43631db0f0a476b07bcfba4 Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Thu, 23 Apr 2015 18:44:11 +0500 Subject: [PATCH 1/3] add debian:jessie console :) --- scripts/extraimages/01-debianconsole | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/extraimages/01-debianconsole diff --git a/scripts/extraimages/01-debianconsole b/scripts/extraimages/01-debianconsole new file mode 100644 index 00000000..f8a4e3e8 --- /dev/null +++ b/scripts/extraimages/01-debianconsole @@ -0,0 +1,17 @@ +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 +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 +ENTRYPOINT ["/usr/sbin/entry.sh"] +CMD ["/usr/sbin/console.sh"] From c59e720da55753a2826ff8f8123a471719b92acc Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Sun, 26 Apr 2015 17:10:30 +0500 Subject: [PATCH 2/3] debian-console: add vim --- scripts/extraimages/01-debianconsole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extraimages/01-debianconsole b/scripts/extraimages/01-debianconsole index f8a4e3e8..efef750d 100644 --- a/scripts/extraimages/01-debianconsole +++ b/scripts/extraimages/01-debianconsole @@ -1,7 +1,7 @@ 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 + 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/ From d20d708bf096baf9dc30ebee8124dd88907b262e Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Wed, 29 Apr 2015 17:04:12 +0500 Subject: [PATCH 3/3] add docker to sudoers (same as ubuntuconsole) --- scripts/extraimages/01-debianconsole | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/extraimages/01-debianconsole b/scripts/extraimages/01-debianconsole index efef750d..3cc61063 100644 --- a/scripts/extraimages/01-debianconsole +++ b/scripts/extraimages/01-debianconsole @@ -12,6 +12,7 @@ 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 '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"]