This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Set path of docker project folder to search for dockerfiles | |
DOCKER_PROJECT_PATH=./docker | |
# Check for required file/command | |
if [[ ! -f docker-compose.yml ]]; then | |
echo "Required file (docker-compose.yml) not existent for docker updater" >&2 | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download latest Docker Compose from GitHub | |
# Requires binaries: echo, rm, mv, chmod, uname, tr, curl, jq, sha256sum | |
DOCKER_COMPOSE_GITHUB_REPOSITORY="docker/compose"; \ | |
DOCKER_COMPOSE_BINARY=$(echo "docker-compose-$(uname -s)-$(uname -m)" | tr '[:upper:]' '[:lower:]'); \ | |
DOCKER_COMPOSE_VERSION=$(curl -fsSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${DOCKER_COMPOSE_GITHUB_REPOSITORY}/releases/latest" | jq -r ".tag_name"); \ | |
curl -fsSLO "https://github.com/${DOCKER_COMPOSE_GITHUB_REPOSITORY}/releases/download/${DOCKER_COMPOSE_VERSION}/${DOCKER_COMPOSE_BINARY}{,.sha256}" && \ | |
sha256sum --status -c ${DOCKER_COMPOSE_BINARY}.sha256 && rm ${DOCKER_COMPOSE_BINARY}.sha256 && \ | |
mv ${DOCKER_COMPOSE_BINARY} /usr/bin/docker-compose && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, | |
*:before, | |
*:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} |