adjust add keys

This commit is contained in:
jpwilliam 2023-11-16 17:24:42 -03:00
parent d60ddcfc70
commit 1393f91c6a
2 changed files with 17 additions and 3 deletions

View File

@ -6,7 +6,7 @@ then
echo "NE METTEZ PAS DE PASSPHRASE" echo "NE METTEZ PAS DE PASSPHRASE"
exit 1 exit 1
fi fi
sudo cat ~/.ssh/id_ed25519.pub >> /root/.ssh/authorized_keys cat ~/.ssh/id_ed25519.pub | sudo tee -a /root/.ssh/authorized_keys
echo "effacement des containers existants" echo "effacement des containers existants"
echo "################################" echo "################################"
docker stop $(docker ps -a -q) docker stop $(docker ps -a -q)

View File

@ -42,7 +42,7 @@ pip3 install pywinrm[kerberos]
pip3 install molecule[ansible,docker,lint] pip3 install molecule[ansible,docker,lint]
# pip3 install docker # pip3 install docker
pip3 install ansible-navigator[ansible-core] pip3 install ansible-navigator[ansible-core]
pip3 install --upgrade git+https://github.com/networkop/docker-topo.git #pip3 install --upgrade git+https://github.com/networkop/docker-topo.git
# pip3 ensurepath # pip3 ensurepath
#source ~/.bashrc #source ~/.bashrc
#source ~/.profile #source ~/.profile
@ -58,8 +58,22 @@ sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose
sudo systemctl enable docker sudo systemctl enable docker
#sudo groupadd docker #sudo groupadd docker
sudo usermod -a -G docker $USER sudo usermod -a -G docker $USER
#Autoriser les serveur registry local en http
if [ ! -f /etc/docker/daemon.json ]
then
sudo tee -a /etc/docker/daemon.json << 'EOF'
{
"insecure-registries": [
"registry.iut-kourou.local"
]
}
EOF
sudo systemctl restart docker
fi
source ~/.bashrc source ~/.bashrc
source ~/.profile source ~/.profile
echo -e "$Red #################################################" echo -e "$Red #################################################"
echo -e "Veuillez vous déconnecter de votre session !" echo -e "Veuillez vous déconnecter de votre session !"
echo -e "################################################# $NC" echo -e "################################################# $NC"