Skip to content

Commit e8de17b

Browse files
committed
make yum install optional to future-proof against the Debian-based superchain image
1 parent c81010f commit e8de17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildspec-pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ phases:
1515

1616
# Packing the mono-libraries (monocdk & aws-cdk-lib) can cause
1717
# memory errors. Increasing this value allows our build to more consistently succeed
18-
- yum install -y procps-ng && /sbin/sysctl -w vm.max_map_count=2251954
18+
- (command -v sysctl || yum install -y procps-ng) && /sbin/sysctl -w vm.max_map_count=2251954
1919
build:
2020
commands:
2121
- /bin/bash ./build.sh --extract

0 commit comments

Comments
 (0)