forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from Altinity/customizations/24.3.5
24.3.5 Pre-release PR
- Loading branch information
Showing
142 changed files
with
1,745 additions
and
527 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Docker setup | ||
description: Setup docker | ||
inputs: | ||
nested_job: | ||
description: the fuse for unintended use inside of the reusable callable jobs | ||
default: true | ||
type: boolean | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Docker IPv6 configuration | ||
shell: bash | ||
run: | | ||
# make sure docker uses proper IPv6 config | ||
sudo touch /etc/docker/daemon.json | ||
sudo chown ubuntu:ubuntu /etc/docker/daemon.json | ||
sudo cat <<EOT > /etc/docker/daemon.json | ||
{ | ||
"ipv6": true, | ||
"fixed-cidr-v6": "2001:3984:3989::/64" | ||
} | ||
EOT | ||
sudo chown root:root /etc/docker/daemon.json | ||
sudo systemctl restart docker | ||
sudo systemctl status docker | ||
- name: Docker info | ||
shell: bash | ||
run: | | ||
docker info |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Execute command until exitcode is 0 or | ||
# maximum number of retries is reached | ||
# Example: | ||
# ./retry <retries> <delay> <command> | ||
retries=$1 | ||
delay=$2 | ||
command="${@:3}" | ||
exitcode=0 | ||
try=0 | ||
until [ "$try" -ge $retries ] | ||
do | ||
echo "$command" | ||
eval "$command" | ||
exitcode=$? | ||
if [ $exitcode -eq 0 ]; then | ||
break | ||
fi | ||
try=$((try+1)) | ||
sleep $2 | ||
done | ||
exit $exitcode |
This file contains 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
Oops, something went wrong.