Added parameter --version to define the docker-compose version
This commit is contained in:
parent
afd0d8c8c8
commit
db50e2e9e2
3 changed files with 6 additions and 1 deletions
|
@ -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'
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
1.9.0
|
1
cdist/conf/type/__docker_compose/parameter/optional
Normal file
1
cdist/conf/type/__docker_compose/parameter/optional
Normal file
|
@ -0,0 +1 @@
|
||||||
|
version
|
Loading…
Reference in a new issue