Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save schakko/daf934e79f8224d236680ee84d7ea17c to your computer and use it in GitHub Desktop.
Save schakko/daf934e79f8224d236680ee84d7ea17c to your computer and use it in GitHub Desktop.
Use this as "Docker Install URL" in a Rancher Node Template so that Docker and ecr-credentials-provider is installed on node
#!/bin/sh
DOCKER_VERSION="20.10.sh"
install_ecr_credentials_provider() {
echo "Installing ecr-credentials-provider ..."
curl -OL https://gist.githubusercontent.com/schakko/d53deb3e75309ea5577693a21cb3cbc3/raw/a20195bc369968c725a7df0ad0449534de9aae73/install_ecr_credentials_provider.sh
chmod +x install_ecr_credentials_provider.sh
sudo ./install_ecr_credentials_provider.sh
echo ""
}
install_docker() {
echo "Installing rancher-docker ${DOCKER_VERSION}"
curl -OL https://releases.rancher.com/install-docker/${DOCKER_VERSION}
chmod +x ${DOCKER_VERSION}
./${DOCKER_VERSION}
echo ""
}
install_ecr_credentials_provider
install_docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment