Show More
@@ -3791,10 +3791,12 b' rcstack_cli_docker_upgrade_command() {' | |||||
3791 | DOCKER_CLI_PLUGINS=$DOCKER_CONFIG/cli-plugins |
|
3791 | DOCKER_CLI_PLUGINS=$DOCKER_CONFIG/cli-plugins | |
3792 | upgrade_compose=${args[--compose]} |
|
3792 | upgrade_compose=${args[--compose]} | |
3793 |
|
3793 | |||
3794 | curl -fsSL https://get.docker.com -o install-docker.sh |
|
3794 | compose_script_name="install-docker.sh" | |
|
3795 | ||||
|
3796 | curl -fsSL https://get.docker.com -o "$compose_script_name" | |||
3795 | # sh install-docker.sh --version 23.0 |
|
3797 | # sh install-docker.sh --version 23.0 | |
3796 | sh install-docker.sh |
|
3798 | sh "$compose_script_name" | |
3797 | rm -rf install-docker.sh |
|
3799 | rm -rf "$compose_script_name" | |
3798 |
|
3800 | |||
3799 | if [[ $upgrade_compose ]]; then |
|
3801 | if [[ $upgrade_compose ]]; then | |
3800 |
|
3802 | |||
@@ -3815,7 +3817,8 b' rcstack_cli_docker_upgrade_command() {' | |||||
3815 | NEW_COMPOSE_VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d') |
|
3817 | NEW_COMPOSE_VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d') | |
3816 | echo "new compose version $NEW_COMPOSE_VERSION to be installed in $DOCKER_CLI_PLUGINS" |
|
3818 | echo "new compose version $NEW_COMPOSE_VERSION to be installed in $DOCKER_CLI_PLUGINS" | |
3817 | curl -fsSL https://github.com/docker/compose/releases/download/$NEW_COMPOSE_VERSION/docker-compose-linux-x86_64 -o $DOCKER_CLI_PLUGINS/docker-compose |
|
3819 | curl -fsSL https://github.com/docker/compose/releases/download/$NEW_COMPOSE_VERSION/docker-compose-linux-x86_64 -o $DOCKER_CLI_PLUGINS/docker-compose | |
3818 |
chmod +x $DOCKER_CLI_PLUGINS/docker- |
|
3820 | chmod +x $DOCKER_CLI_PLUGINS/docker- | |
|
3821 | echo "updated compose to $NEW_COMPOSE_VERSION" | |||
3819 | fi |
|
3822 | fi | |
3820 |
|
3823 | |||
3821 | } |
|
3824 | } |
General Comments 0
You need to be logged in to leave comments.
Login now