1
0
mirror of https://github.com/rancher/os.git synced 2025-09-24 03:53:03 +00:00
Files
os/images/02-console/Dockerfile

14 lines
698 B
Docker
Raw Normal View History

2016-05-06 10:12:09 -07:00
FROM rancher/os-base
COPY build/lsb-release /etc/
2019-02-05 14:05:18 +08:00
COPY build/sshd_config.append.tpl /etc/ssh/
COPY prompt.sh /etc/profile.d/
2016-05-06 10:12:09 -07:00
RUN sed -i 's/rancher:!/rancher:*/g' /etc/shadow && \
sed -i 's/docker:!/docker:*/g' /etc/shadow && \
echo '## allow password less for rancher user' >> /etc/sudoers && \
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo '## allow password less for docker user' >> /etc/sudoers && \
2019-02-05 14:05:18 +08:00
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
cat /etc/ssh/sshd_config > /etc/ssh/sshd_config.tpl && \
cat /etc/ssh/sshd_config.append.tpl >> /etc/ssh/sshd_config.tpl && \
rm -f /etc/ssh/sshd_config.append.tpl /etc/ssh/sshd_config