Compare commits

...

3 Commits

Author SHA1 Message Date
Meghan Denny
aab03cbaa8 Merge branch 'main' into nektro-patch-10 2024-11-19 23:31:53 -08:00
Meghan Denny
7be30ab6cf persist it 2024-11-16 01:35:07 -08:00
Meghan Denny
835e5ea8b2 ci: bootstrap: raise fd limit 2024-11-15 23:46:47 -08:00

View File

@@ -124,9 +124,20 @@ append_to_file() {
done
}
ensure_profile() {
case "$pm" in
brew) echo >> $home/.zprofile ;;
apt) echo >> $home/.profile ;;
dnf) echo >> $home/.profile ;;
yum) echo >> $home/.profile ;;
apk) echo >> $home/.profile ;;
esac
}
append_to_profile() {
ensure_profile
content="$1"
profiles=".profile .zprofile .bash_profile .bashrc .zshrc"
profiles=".profile .zprofile .bash_profile .bashrc .zshrc .ashrc"
for profile in $profiles; do
file="$home/$profile"
if [ "$ci" = "1" ] || [ -f "$file" ]; then
@@ -883,7 +894,7 @@ create_buildkite_user() {
execute_sudo mkdir -p "$path"
execute_sudo chown -R "$user:$group" "$path"
done
files="/var/run/buildkite-agent/buildkite-agent.pid"
for file in $files; do
execute_sudo touch "$file"
@@ -985,6 +996,11 @@ install_chrome_dependencies() {
esac
}
raise_file_descriptor_limit() {
ulimit -n 262144
append_to_profile "ulimit -n 262144"
}
main() {
check_features "$@"
check_operating_system
@@ -995,6 +1011,7 @@ main() {
install_common_software
install_build_essentials
install_chrome_dependencies
raise_file_descriptor_limit
}
main "$@"