add dockerfile stanza to populate /etc/hosts, minor doc formatting
1 parent 9069b78 commit dafb4b57e3f12d1fb3877321544d841f4a83a086
@tundra tundra authored on 6 Aug 2020
Showing 2 changed files
View
2
■■■
README.md
 
# Configuring Sandbox Hostname Resolution
 
Various parts of this repo assume that there are (up to) 10 running
sandboxes whose names are 'docksand1` through `docksand10`. For this to
sandboxes whose names are `docksand1` through `docksand10`. For this to
work, you have to configure name resolution to properly associate
these names with their equivant IP addresses.
 
Most likely, you don't have control of your DNS configuration. The
View
6
dockerfiles/ds-debian/ds-debian.dockerfile
 
# Update OS and install software
 
RUN apt-get -y update
RUN apt-get -y install apt-utils
RUN apt-get -y dist-upgrade
RUN apt-get -y upgrade
RUN apt-get -y install apt-utils
RUN apt-get -y install bzip2 curl dnsutils dos2unix emacs-nox ethtool git \
htop joe less lsof netcat net-tools nfs-common \
nload openssh-server psmisc python-pip rsync screen \
socat sudo silversearcher-ag tree unzip vim whois \
wget zip
 
# Add sandboxes to hosts file
 
RUN cat common/etc/dockersand.hosts >> /etc/hosts
 
# Enable sshd with same keys each time
ADD common/keys/ /etc/ssh/
RUN mkdir /var/run/sshd