forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #332 from Altinity/customizations/23.8.8
23.8.8 Pre-release
- Loading branch information
Showing
131 changed files
with
2,473 additions
and
2,664 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,38 @@ | ||
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 | ||
DOCKER_USERNAME: | ||
description: username for the dockerhub login | ||
required: true | ||
type: string | ||
DOCKER_PASSWORD: | ||
description: password for the dockerhub login | ||
required: true | ||
type: string | ||
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 login | ||
shell: bash | ||
run: | | ||
docker login -u ${{ inputs.DOCKER_USERNAME }} -p ${{ inputs.DOCKER_PASSWORD }} | ||
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.