fix docker setup and compose
This commit is contained in:
parent
b9871ea63e
commit
5395b29dae
20
install.sh
20
install.sh
|
@ -178,6 +178,8 @@ install_docker() {
|
||||||
curl -SL https://get.docker.com/builds/Linux/x86_64/docker-$VERS.tgz.sha256 \
|
curl -SL https://get.docker.com/builds/Linux/x86_64/docker-$VERS.tgz.sha256 \
|
||||||
-o /tmp/docker.tgz.sha256
|
-o /tmp/docker.tgz.sha256
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
if [ ! $(cat /tmp/docker.tgz.sha256 | sha256sum -c -) ]; then
|
if [ ! $(cat /tmp/docker.tgz.sha256 | sha256sum -c -) ]; then
|
||||||
echo "... checksum failed... stopping"
|
echo "... checksum failed... stopping"
|
||||||
exit 1;
|
exit 1;
|
||||||
|
@ -191,28 +193,16 @@ install_docker() {
|
||||||
sudo groupadd docker
|
sudo groupadd docker
|
||||||
sudo adduser -aG docker "$USERNAME"
|
sudo adduser -aG docker "$USERNAME"
|
||||||
|
|
||||||
# curl -sSL https://get.docker.com/ | sh
|
|
||||||
|
|
||||||
# sudo apt-get update
|
|
||||||
# sudo apt-get install apt-transport-https ca-certificates gnupg2
|
|
||||||
# sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
|
||||||
|
|
||||||
# cat <<-EOF > /etc/apt/sources.list.d/docker.list
|
|
||||||
# deb https://apt.dockerproject.org/repo $REPO main
|
|
||||||
# EOF
|
|
||||||
|
|
||||||
# apt-get update
|
|
||||||
# apt-cache policy docker-engine
|
|
||||||
# apt-get update && apt-get install docker-engine
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_compose() {
|
install_compose() {
|
||||||
|
|
||||||
|
# https://github.com/docker/compose/releases
|
||||||
VERS="1.11.2"
|
VERS="1.11.2"
|
||||||
echo "installing docker-compose $VERS ... curling from github"
|
echo "installing docker-compose $VERS ... curling from github"
|
||||||
|
|
||||||
curl -SL https://github.com/docker/compose/releases/download/$VERS/docker-compose-Linux-x86_64 \
|
curl -SL "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||||
-o /usr/bin/docker-compose
|
|
||||||
chmod +x /usr/bin/docker-compose
|
chmod +x /usr/bin/docker-compose
|
||||||
|
|
||||||
echo "... done"
|
echo "... done"
|
||||||
|
|
Loading…
Reference in New Issue