forked from rancher/os
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues found from v1.9.0-beta2
- Replaced default console with Debian console - Included Project Burmilla to ros command info - Fixed docker-machine compability - Bump up kernel to 4.14.207 - Include /etc/lsb-release file to Debian console - Updated ifconfig parsing command to match Debian console syntax - Corrected Burmilla URLs - Use fixed version of open-vm-tools - Create /var/log/wtmp file on first boot so "last" command will works - Use /etc/issue file as motd - Support to create ISO file without firmware files
- Loading branch information
Showing
20 changed files
with
121 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
FROM burmilla/os-base | ||
COPY build/lsb-release /etc/ | ||
FROM debian:stable-slim | ||
|
||
COPY build/sshd_config.append.tpl /etc/ssh/ | ||
COPY prompt.sh /etc/profile.d/ | ||
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 && \ | ||
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 | ||
COPY build/lsb-release /etc/ | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends iptables openssh-server rsync locales \ | ||
sudo less curl ca-certificates psmisc htop kmod iproute2 \ | ||
net-tools bash-completion wget \ | ||
nano open-iscsi iputils-ping \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /etc/ssh/*key* \ | ||
&& echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen \ | ||
&& locale-gen \ | ||
&& find /usr/share/i18n/charmaps -not -path /usr/share/i18n/charmaps/UTF-8.gz -name '*.gz' -exec rm -rf {} \; \ | ||
&& find /usr/share/i18n/locales -not -path /usr/share/i18n/locales/en_US -name '*_*' -exec rm -rf {} \; \ | ||
&& addgroup --gid 1100 rancher \ | ||
&& addgroup --gid 1101 docker \ | ||
&& useradd -u 1100 -g rancher -G docker,sudo -m -s /bin/bash rancher \ | ||
&& useradd -u 1101 -g docker -G docker,sudo -m -s /bin/bash docker \ | ||
&& 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 \ | ||
&& echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \ | ||
&& ln -s /bin/ps /usr/bin/ps \ | ||
&& 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 \ | ||
&& rm -f /etc/motd \ | ||
&& ln -s /etc/issue /etc/motd | ||
ENTRYPOINT ["/usr/bin/ros", "entrypoint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
{{- if .Port}} | ||
Port {{.Port}} | ||
{{- end}} | ||
|
||
{{- if .ListenAddress}} | ||
ListenAddress {{.ListenAddress}} | ||
{{- end}} | ||
|
||
ClientAliveInterval 180 | ||
|
||
UseDNS no | ||
|
||
AllowGroups docker | ||
|
||
# Enforce security settings | ||
Protocol 2 | ||
PermitRootLogin no | ||
MaxAuthTries 4 | ||
IgnoreRhosts yes | ||
HostbasedAuthentication no | ||
PermitEmptyPasswords no | ||
AllowTcpForwarding no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.