Last active
October 2, 2017 18:11
-
-
Save nshtg/be49acdcee3f5e5a43476f298de8e7b0 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
set -e | |
export DISTRO_NAME=$(lsb_release -is | tr '[:upper:]' '[:lower:]') | |
curl -fsSL https://download.docker.com/linux/$DISTRO_NAME/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$DISTRO_NAME $(lsb_release -cs) stable" | |
sudo apt-get update -y | |
sudo apt-get install -y docker-ce jq sed | |
sudo usermod -aG docker ${USER} | |
github_get_latest_release() { | |
curl -sSL https://api.github.com/repos/$1/$2/releases/latest | jq '.tag_name' | sed 's/"//g' | |
} | |
export VERSION_DOCKER_COMPOSE=$(github_get_latest_release docker compose) | |
sudo curl -L https://github.com/docker/compose/releases/download/$VERSION_DOCKER_COMPOSE/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# docker exec -it acme acme.sh --issue --domain test.dns.msch.pw -w /www/letsencrypt --keylength 4096 | |
# docker exec -it acme acme.sh --install-cert \ | |
# --domain test.dns.msch.pw \ | |
# --key-file /certs/test.dns.msch.pw-rsa-key.pem \ | |
# --fullchain-file /certs/test.dns.msch.pw-rsa-cert.pem | |
# | |
# docker exec -it acme acme.sh --issue --domain test.dns.msch.pw -w /www/letsencrypt --keylength ec-384 | |
# docker exec -it acme acme.sh --install-cert --ecc \ | |
# --domain test.dns.msch.pw \ | |
# --key-file /certs/test.dns.msch.pw-ecc-key.pem \ | |
# --fullchain-file /certs/test.dns.msch.pw-ecc-cert.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment