wip: docker and travis

This commit is contained in:
Christoph Haas
2020-11-10 11:06:04 +01:00
parent 3cbc30fe48
commit cd9abfcd5b
4 changed files with 97 additions and 3 deletions

43
.travis/main.sh Executable file
View File

@@ -0,0 +1,43 @@
#!/bin/bash
set -o errexit
main() {
setup_dependencies
update_docker_configuration
echo "SUCCESS:
Done! Finished setting up travis machine.
"
}
setup_dependencies() {
echo "INFO:
Setting up dependencies.
"
sudo apt update -y
sudo apt install realpath python python-pip -y
sudo apt install --only-upgrade docker-ce -y
sudo pip install docker-compose || true
docker info
docker-compose --version
}
update_docker_configuration() {
echo "INFO:
Updating docker configuration
"
echo '{
"experimental": true,
"storage-driver": "overlay2",
"max-concurrent-downloads": 50,
"max-concurrent-uploads": 50
}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
}
main