on master help sign in
Add a niceness level of 15 for performing builds
commitf3bf4bd61057f13c6af8a74423579be860d167f1 authorMichael Snoyman <michael@snoyman.com> dateSun 22 Jan 2017, 12:00 (10 years ago) parent2cf3b40
1 file changed+1−1
automated/build.sh+1−1
automated/build.sh+1−1
@@ -121,7 +121,7 @@ docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "stackage-curator check --plan-fil
121121# Now do the actual build. We need to first set the owner of the home directory
122122# correctly, so we run the command as root, change owner, and then use sudo to
123123# switch back to the current user
124−docker run $ARGS_BUILD $IMAGE /bin/bash -c "chown $USER $HOME && exec sudo -E -u $USER env \"HOME=$HOME\" \"PATH=\$PATH\" stackage-curator make-bundle --plan-file $PLAN_FILE --docmap-file $DOCMAP_FILE --bundle-file $BUNDLE_FILE --target $TARGET"
124+docker run $ARGS_BUILD $IMAGE nice -n 15 /bin/bash -c "chown $USER $HOME && exec sudo -E -u $USER env \"HOME=$HOME\" \"PATH=\$PATH\" stackage-curator make-bundle --plan-file $PLAN_FILE --docmap-file $DOCMAP_FILE --bundle-file $BUNDLE_FILE --target $TARGET"
125125
126126# Make sure we actually need this snapshot. We used to perform this check
127127# exclusively before building. Now we perform it after as well for the case of