1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 23:34:57 +00:00
Files
os/scripts/dockerimages/06-console

12 lines
589 B
Plaintext
Raw Normal View History

2015-02-08 21:38:37 -07:00
FROM base
2015-02-19 11:26:59 -07:00
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
COPY scripts/dockerimages/scripts/update-ssh-keys /usr/bin/
COPY scripts/dockerimages/scripts/rancheros-install /usr/sbin/
RUN sed -i 's/rancher:!/rancher:*/g' /etc/shadow && \
2015-04-28 04:34:32 -07:00
sed -i 's/docker:!/docker:*/g' /etc/shadow && \
2015-02-21 00:34:57 -07:00
echo '## allow password less for rancher user' >> /etc/sudoers && \
2015-04-28 04:34:32 -07:00
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo '## allow password less for docker user' >> /etc/sudoers && \
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
2015-02-19 11:26:59 -07:00
CMD ["/usr/sbin/console.sh"]