Browse Source

new: [pandachi-install] myceliandre docker registry and git access.

rc1
Valentin Lab 5 years ago
parent
commit
7cc24f29ff
  1. 24
      bin/pandachi-install

24
bin/pandachi-install

@ -59,6 +59,30 @@ PGHOST=\$(docker-ip | grep postgres | xargs echo | cut -f 3 -d " ") || {
export PGHOST PGUSER export PGHOST PGUSER
EOF EOF
if ! [ -s /etc/ssh/vm_git_myceliandre_access_id_rsa ]; then
curl https://docker.0k.io/get/vm_git_myceliandre_access_id_rsa > /etc/ssh/vm_git_myceliandre_access_id_rsa || {
echo "Fatal: Could not retrieve http://docker.0k.io/get/vm_git_myceliandre_access_id_rsa ..." >&2
rm -f /etc/ssh/vm_git_myceliandre_access_id_rsa
exit 1
}
## Not so usefull as it is public !
chmod 0600 /etc/ssh/vm_git_myceliandre_access_id_rsa
fi
mkdir -p /root/.ssh
cat <<EOF >> /root/.ssh/config
Host git.myceliandre.fr
User git
IdentityFile /etc/ssh/vm_git_myceliandre_access_id_rsa
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
Port 5022
EOF
## ##
## We could need some docker-compose for some quick hacks ## We could need some docker-compose for some quick hacks
## ##

Loading…
Cancel
Save