mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 23:28:57 +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",
|
"type": "shell",
|
||||||
"inline": [
|
"script": "{{template_dir}}/scripts/base/apt.sh",
|
||||||
"apt-get update",
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
"apt-get dist-upgrade -y",
|
},
|
||||||
"systemctl disable apt-daily.service",
|
{
|
||||||
"systemctl disable apt-daily.timer",
|
"type": "shell",
|
||||||
"systemctl disable apt-daily-upgrade.timer",
|
"script": "{{template_dir}}/scripts/base/limits.sh",
|
||||||
"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"
|
|
||||||
],
|
|
||||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -78,18 +78,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"inline": [
|
"script": "{{template_dir}}/scripts/base/apt.sh",
|
||||||
"apt-get update",
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
"apt-get dist-upgrade -y",
|
},
|
||||||
"systemctl disable apt-daily.service",
|
{
|
||||||
"systemctl disable apt-daily.timer",
|
"type": "shell",
|
||||||
"systemctl disable apt-daily-upgrade.timer",
|
"script": "{{template_dir}}/scripts/base/limits.sh",
|
||||||
"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"
|
|
||||||
],
|
|
||||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -78,18 +78,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"inline": [
|
"script": "{{template_dir}}/scripts/base/apt.sh",
|
||||||
"apt-get update",
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
"apt-get dist-upgrade -y",
|
},
|
||||||
"systemctl disable apt-daily.service",
|
{
|
||||||
"systemctl disable apt-daily.timer",
|
"type": "shell",
|
||||||
"systemctl disable apt-daily-upgrade.timer",
|
"script": "{{template_dir}}/scripts/base/limits.sh",
|
||||||
"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"
|
|
||||||
],
|
|
||||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user