2016-12-07 18:42:26 +01:00
|
|
|
#!/bin/bash
|
2020-04-06 11:52:18 +02:00
|
|
|
# Copyright © 2020 Interplanetary Database Association e.V.,
|
|
|
|
# BigchainDB and IPDB software contributors.
|
2018-08-16 12:31:32 +02:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
|
|
|
# Code is Apache-2.0 and docs are CC-BY-4.0
|
|
|
|
|
2016-12-07 18:42:26 +01:00
|
|
|
|
2018-02-14 10:19:04 +01:00
|
|
|
if [[ -z ${TOXENV} ]]; then
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
|
|
|
|
|
|
|
sudo rm /usr/local/bin/docker-compose
|
|
|
|
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
|
|
|
chmod +x docker-compose
|
|
|
|
sudo mv docker-compose /usr/local/bin
|
|
|
|
fi
|