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

remotes/origin/prometheus
Dominique Roux 8 years ago
parent afd0d8c8c8
commit db50e2e9e2
  1. 5
      cdist/conf/type/__docker_compose/gencode-remote
  2. 1
      cdist/conf/type/__docker_compose/parameter/default/version
  3. 1
      cdist/conf/type/__docker_compose/parameter/optional

@ -18,8 +18,11 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
# Variables
version="$(cat "$__object/parameter/version")"
# 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
echo 'chmod +x /usr/local/bin/docker-compose'

Loading…
Cancel
Save