Added parameter --version to define the docker-compose version

This commit is contained in:
Dominique Roux 2016-12-12 19:43:15 +01:00
parent afd0d8c8c8
commit db50e2e9e2
3 changed files with 6 additions and 1 deletions

View file

@ -18,8 +18,11 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>. # along with cdist. If not, see <http://www.gnu.org/licenses/>.
# #
# Variables
version="$(cat "$__object/parameter/version")"
# Download docker-compose file # Download docker-compose file
echo 'curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose' echo 'curl -L "https://github.com/docker/compose/releases/download/'${version}'/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose'
# Change permissions # Change permissions
echo 'chmod +x /usr/local/bin/docker-compose' echo 'chmod +x /usr/local/bin/docker-compose'

View file

@ -0,0 +1 @@
1.9.0

View file

@ -0,0 +1 @@
version