Skip to content

Commit 7a1b539

Browse files
authored
Merge pull request #765 from Altinity/customizations/24.3.18
24.3.18 Pre-release
2 parents 807f69c + 78f830a commit 7a1b539

File tree

279 files changed

+5428
-1377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+5428
-1377
lines changed

.github/actions/common_setup/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ runs:
2828
run: |
2929
# to remove every leftovers
3030
sudo rm -fr "$TEMP_PATH" && mkdir -p "$TEMP_PATH"
31+
- name: Setup zram
32+
shell: bash
33+
run: |
34+
sudo modprobe zram
35+
MemTotal=$(grep -Po "(?<=MemTotal:)\s+\d+" /proc/meminfo) # KiB
36+
Percent=200
37+
ZRAM_SIZE=$(($MemTotal / 1024 / 1024 * $Percent / 100)) # Convert to GiB
38+
.github/retry.sh 30 2 sudo zramctl --size ${ZRAM_SIZE}GiB --algorithm zstd /dev/zram0
39+
sudo mkswap /dev/zram0 && sudo swapon -p 100 /dev/zram0
40+
sudo sysctl vm.swappiness=200
3141
- name: Tune vm.mmap_rnd_bits for sanitizers
3242
shell: bash
3343
run: |
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docker setup
2+
description: Setup docker
3+
inputs:
4+
nested_job:
5+
description: the fuse for unintended use inside of the reusable callable jobs
6+
default: true
7+
type: boolean
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Docker IPv6 configuration
12+
shell: bash
13+
run: |
14+
# make sure docker uses proper IPv6 config
15+
sudo touch /etc/docker/daemon.json
16+
sudo chown ubuntu:ubuntu /etc/docker/daemon.json
17+
sudo cat <<EOT > /etc/docker/daemon.json
18+
{
19+
"ipv6": true,
20+
"fixed-cidr-v6": "2001:3984:3989::/64"
21+
}
22+
EOT
23+
sudo chown root:root /etc/docker/daemon.json
24+
sudo systemctl restart docker
25+
sudo systemctl status docker
26+
- name: Docker info
27+
shell: bash
28+
run: |
29+
docker info

0 commit comments

Comments
 (0)