2016-05-06 17:12:09 +00:00
|
|
|
FROM rancher/os-base
|
|
|
|
COPY build/lsb-release /etc/
|
|
|
|
RUN sed -i 's/rancher:!/rancher:*/g' /etc/shadow && \
|
|
|
|
sed -i 's/docker:!/docker:*/g' /etc/shadow && \
|
|
|
|
sed -i 's/#ClientAliveInterval 0/ClientAliveInterval 180/g' /etc/ssh/sshd_config && \
|
|
|
|
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 && \
|
2016-08-15 22:06:26 +00:00
|
|
|
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
2016-05-06 17:12:09 +00:00
|
|
|
COPY prompt.sh /etc/profile.d/
|