18 lines
406 B
Bash
Executable File
18 lines
406 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
if [ -f /etc/debian_version ]; then
|
|
install-packages docker.io
|
|
update-rc.d docker.io defaults
|
|
|
|
elif [ -f /etc/redhat-release ]; then
|
|
yum -y install docker-io
|
|
systemctl enable docker.service
|
|
fi
|
|
|
|
pip install -U docker-compose==1.4.0
|
|
|
|
install -D -g root -o root -m 0755 ${SCRIPTDIR}/hook-docker-compose.py /var/lib/heat-config/hooks/docker-compose
|