|
|
@ -18,7 +18,7 @@ DEBIAN_FRONTEND=noninteractive apt-get autoremove -y |
|
|
|
# KAZ specific things |
|
|
|
#installation de docker, docker-compose et on y fourre le user debian dans le groupe idoine |
|
|
|
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y docker.io docker-compose docker-clean git apg curl sudo unzip rsync btrfs-progs ldap-utils # fuse-overlayfs |
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y docker.io docker-compose docker-clean git apg curl sudo unzip rsync btrfs-progs ldap-utils # fuse-overlayfs |
|
|
|
usermod -G docker debian |
|
|
|
# activation dans alias dans /root/.bashrc |
|
|
|
sed -i \ |
|
|
@ -80,6 +80,27 @@ fi |
|
|
|
echo -e '#!/bin/sh\n/kaz/bin/container.sh start' >> /etc/rc.local |
|
|
|
chmod +x /etc/rc.local |
|
|
|
|
|
|
|
# On sauve le proxy APT |
|
|
|
proxy=$(/sbin/ip route | awk '/default/ { print $3 }' | head -1) |
|
|
|
sed -i -e "s/^proxy.*$/proxy=$proxy/" /usr/local/sbin/detect_proxy.sh |
|
|
|
#echo "export http_proxy=\"http://$proxy:3142\"" > /etc/profile.d/proxy.sh |
|
|
|
#echo "export https_proxy=\"http://$proxy:3142\"" >> /etc/profile.d/proxy.sh |
|
|
|
mkdir /root/.docker |
|
|
|
echo "{ |
|
|
|
\"proxies\": |
|
|
|
{ |
|
|
|
\"default\": |
|
|
|
{ |
|
|
|
\"httpProxy\": \"http://$proxy:3142\", |
|
|
|
\"httpsProxy\": \"http://$proxy:3142\", |
|
|
|
\"noProxy\": \"*.sns,127.0.0.0/8\" |
|
|
|
} |
|
|
|
} |
|
|
|
}" > /root/.docker/config.json |
|
|
|
echo "http_proxy=\"http://$proxy:3142\" |
|
|
|
https_proxy=\"http://$proxy:3142\" |
|
|
|
" >> /etc/default/docker |
|
|
|
|
|
|
|
# clear apt cache |
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y |
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get clean |
|
|
|