forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathaction.yml
More file actions
32 lines (32 loc) · 891 Bytes
/
action.yml
File metadata and controls
32 lines (32 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Docker setup
description: Setup docker
inputs:
test_name:
description: name of the test, used in determining ipv6 configs.
default: None
type: string
runs:
using: "composite"
steps:
- name: Docker IPv6 configuration
shell: bash
if: ${{ contains(inputs.test_name, 'Stateless') }}
env:
ipv6_subnet: 2001:db8:1::/64
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": "${{ env.ipv6_subnet }}"
}
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