mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Paragraphs (or stanzas) should cover 1 topic only. (#1062)
* Paragraphs (or stanzas) should cover 1 topic only. * No need for options.
This commit is contained in:
9
images/linux/scripts/base/apt.sh
Normal file
9
images/linux/scripts/base/apt.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get -yqq update
|
||||
apt-get -yqq dist-upgrade
|
||||
systemctl disable apt-daily.service
|
||||
systemctl disable apt-daily.timer
|
||||
systemctl disable apt-daily-upgrade.timer
|
||||
systemctl disable apt-daily-upgrade.service
|
||||
7
images/linux/scripts/base/limits.sh
Normal file
7
images/linux/scripts/base/limits.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo '* soft nofile 65536' >> /etc/security/limits.conf
|
||||
echo '* hard nofile 65536' >> /etc/security/limits.conf
|
||||
echo 'session required pam_limits.so' >> /etc/pam.d/common-session
|
||||
echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive
|
||||
echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf
|
||||
@@ -75,18 +75,12 @@
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"apt-get update",
|
||||
"apt-get dist-upgrade -y",
|
||||
"systemctl disable apt-daily.service",
|
||||
"systemctl disable apt-daily.timer",
|
||||
"systemctl disable apt-daily-upgrade.timer",
|
||||
"systemctl disable apt-daily-upgrade.service",
|
||||
"echo '* soft nofile 65536 \n* hard nofile 65536' >> /etc/security/limits.conf",
|
||||
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session",
|
||||
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive",
|
||||
"echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf"
|
||||
],
|
||||
"script": "{{template_dir}}/scripts/base/apt.sh",
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"script": "{{template_dir}}/scripts/base/limits.sh",
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -78,18 +78,12 @@
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"apt-get update",
|
||||
"apt-get dist-upgrade -y",
|
||||
"systemctl disable apt-daily.service",
|
||||
"systemctl disable apt-daily.timer",
|
||||
"systemctl disable apt-daily-upgrade.timer",
|
||||
"systemctl disable apt-daily-upgrade.service",
|
||||
"echo '* soft nofile 65536 \n* hard nofile 65536' >> /etc/security/limits.conf",
|
||||
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session",
|
||||
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive",
|
||||
"echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf"
|
||||
],
|
||||
"script": "{{template_dir}}/scripts/base/apt.sh",
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"script": "{{template_dir}}/scripts/base/limits.sh",
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -78,18 +78,12 @@
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"apt-get update",
|
||||
"apt-get dist-upgrade -y",
|
||||
"systemctl disable apt-daily.service",
|
||||
"systemctl disable apt-daily.timer",
|
||||
"systemctl disable apt-daily-upgrade.timer",
|
||||
"systemctl disable apt-daily-upgrade.service",
|
||||
"echo '* soft nofile 65536 \n* hard nofile 65536' >> /etc/security/limits.conf",
|
||||
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session",
|
||||
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive",
|
||||
"echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf"
|
||||
],
|
||||
"script": "{{template_dir}}/scripts/base/apt.sh",
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"script": "{{template_dir}}/scripts/base/limits.sh",
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user