Advertisement
jpuhlmancav

Untitled

Jul 22nd, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. diff --git a/builder-scripts/setup-builder.sh b/builder-scripts/setup-builder.sh
  2. index 9e7ae97..c400618 100644
  3. --- a/builder-scripts/setup-builder.sh
  4. +++ b/builder-scripts/setup-builder.sh
  5. @@ -64,10 +64,14 @@ for config in $CONFIGFILES; do
  6. done
  7. popd
  8.  
  9. +if [ -z "$KOJI_BUILDER_CAPACITY" ] ; then
  10. + KOJI_BUILDER_CAPACITY=16
  11. +fi
  12. +
  13. if [ -z "$(koji list-hosts | grep $KOJI_BUILDER)" ] ; then
  14. ARCH="$(koji list-hosts | grep -v Hostname | while read A B C D E F; do echo $E; done | sort -u)"
  15. koji add-host $KOJI_BUILDER "$(echo $ARCH | sed s/,/\ /)"
  16. - koji edit-host $KOJI_BUILDER --capacity 16
  17. + koji edit-host $KOJI_BUILDER --capacity $KOJI_BUILDER_CAPACITY
  18. fi
  19. CONFIG_URL=http://$KOJI_HOST/kojifiles/hosts/$KOJI_BUILDER
  20. while ! curl -O $CONFIG_URL/client.ca ; do
  21. @@ -129,12 +133,15 @@ while true; do
  22. popd
  23. done
  24.  
  25. +if [ -z "$KOJI_BUILDER_MAXJOBS" ] ; then
  26. + KOJI_BUILDER_MAXJOBS=16
  27. +fi
  28. cat > /etc/kojid/kojid.conf <<- EOF
  29. [kojid]
  30. sleeptime=5
  31. retry_interval=30
  32. max_retries=5
  33. -maxjobs=16
  34. +maxjobs=$KOJI_BUILDER_MAXJOBS
  35. workdir=/tmp/koji
  36. mockdir=/var/lib/mock
  37. mockuser=kojibuilder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement