|
|
@ -29,51 +29,13 @@ set -e |
|
|
|
DOCKERuser="docker" |
|
|
|
PACKAGES=$(cat <<EOF |
|
|
|
net-tools \ |
|
|
|
tcpdump \ |
|
|
|
sudo \ |
|
|
|
vim \ |
|
|
|
nmap \ |
|
|
|
dnsutils \ |
|
|
|
iputils-ping \ |
|
|
|
wget \ |
|
|
|
software-properties-common \ |
|
|
|
openssh-client \ |
|
|
|
openssh-server \ |
|
|
|
git \ |
|
|
|
pwgen \ |
|
|
|
apt-utils \ |
|
|
|
ed \ |
|
|
|
curl \ |
|
|
|
procps \ |
|
|
|
less \ |
|
|
|
locales \ |
|
|
|
jq \ |
|
|
|
wget \ |
|
|
|
ca-certificates \ |
|
|
|
apt-transport-https \ |
|
|
|
gsfonts \ |
|
|
|
gnupg2 \ |
|
|
|
autoconf \ |
|
|
|
automake \ |
|
|
|
make \ |
|
|
|
bash \ |
|
|
|
bash-completion \ |
|
|
|
coreutils \ |
|
|
|
openssl \ |
|
|
|
passwd \ |
|
|
|
iproute2 \ |
|
|
|
autocutsel \ |
|
|
|
supervisor \ |
|
|
|
git-core \ |
|
|
|
gcc \ |
|
|
|
g++ \ |
|
|
|
gfortran |
|
|
|
tcpdump |
|
|
|
EOF |
|
|
|
) |
|
|
|
|
|
|
|
APTPARAM=" --no-install-recommends " |
|
|
|
IMAGE_local="hybrid-mpi" |
|
|
|
HYBRID_NETWORK="hybrid-mpi" |
|
|
|
IMAGE_local="hub.swarmlab.io:5480/hybrid-mpi:latest" |
|
|
|
HYBRID_NETWORK="hybrid-mpich32" |
|
|
|
# dont edit |
|
|
|
IMAGE_origin="ubuntu:18.04" |
|
|
|
bootstrap="sec_bootstrap" |
|
|
@ -172,14 +134,6 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /usr/local/src \ |
|
|
|
&& cd /usr/local/src/ \ |
|
|
|
&& tar xf mpich-3.2.tar.gz \ |
|
|
|
&& rm mpich-3.2.tar.gz \ |
|
|
|
&& cd mpich-3.2 \ |
|
|
|
&& ./configure --disable-fortran \ |
|
|
|
&& make && make install \ |
|
|
|
&& cd /usr/local/src \ |
|
|
|
&& rm -rf mpich-3.2 \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ |
|
|
@ -301,15 +255,6 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
&& rm -rf /usr/share/doc \ |
|
|
|
&& rm -rf /usr/share/man \ |
|
|
|
&& rm -rf /usr/share/locale \ |
|
|
|
&& mkdir -p /usr/local/src \ |
|
|
|
&& cd /usr/local/src/ \ |
|
|
|
&& tar xf mpich-3.2.tar.gz \ |
|
|
|
&& rm mpich-3.2.tar.gz \ |
|
|
|
&& cd mpich-3.2 \ |
|
|
|
&& ./configure --disable-fortran \ |
|
|
|
&& make && make install \ |
|
|
|
&& cd /usr/local/src \ |
|
|
|
&& rm -rf mpich-3.2 \ |
|
|
|
&& mkdir -p /var/run/sshd \ |
|
|
|
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ |
|
|
|
&& sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ |
|
|
@ -759,7 +704,7 @@ done |
|
|
|
if [ $COMMAND_UP -eq 1 ]; then |
|
|
|
create_dockerfile |
|
|
|
down_all |
|
|
|
clear_all |
|
|
|
#clear_all |
|
|
|
up_registry |
|
|
|
generate_ssh_keys |
|
|
|
build_and_push_image |
|
|
@ -774,7 +719,7 @@ elif [ $COMMAND_CREATE -eq 1 ]; then |
|
|
|
|
|
|
|
elif [ $COMMAND_DOWN -eq 1 ]; then |
|
|
|
down_all |
|
|
|
clear_all |
|
|
|
#clear_all |
|
|
|
|
|
|
|
elif [ $COMMAND_CLEAN -eq 1 ]; then |
|
|
|
clear_all |
|
|
|