Commit 13f6d479 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible: enable 60gb tmpfs for /srv/workspace on the amd64 build nodes

parent 0a5d2b74
...@@ -210,10 +210,8 @@ properties: ...@@ -210,10 +210,8 @@ properties:
* status of remote build nodes for amd64 * status of remote build nodes for amd64
** profitbricks-build1-amd64 is setup ** profitbricks-build1-amd64 is setup
*** squid needs proper configuration *** squid needs proper configuration
*** tmpfs needs to be set up
** profitbricks-build1-amd64 is setup ** profitbricks-build1-amd64 is setup
*** squid needs proper configuration *** squid needs proper configuration
*** tmpfs needs to be set up
*** should run in the future: +1d+1m+1y *** should run in the future: +1d+1m+1y
* profitbricks-build2-amd64 will also host a VM (profitbricks-build2-amd64, so we will be running kvm on kvm there) * profitbricks-build2-amd64 will also host a VM (profitbricks-build2-amd64, so we will be running kvm on kvm there)
** networking doesnt work yet, so profitbricks-build3-amd64 aint accessable atm - help welcome! ** networking doesnt work yet, so profitbricks-build3-amd64 aint accessable atm - help welcome!
...@@ -354,7 +352,7 @@ properties: ...@@ -354,7 +352,7 @@ properties:
** we build with sudo too ** we build with sudo too
*** change /usr/obj to be '~jenkins/obj' and build with WITH_INSTALL_AS_USER ? *** change /usr/obj to be '~jenkins/obj' and build with WITH_INSTALL_AS_USER ?
* first build world, later build ports (pkg info...) * first build world, later build ports (pkg info...)
* investigate how to use tmpfs on freebsd and build there? * investigate how to use tmpfs on freebsd and build there
==== reproducible... ==== reproducible...
......
...@@ -46,19 +46,28 @@ sudo mkdir -p /srv/workspace ...@@ -46,19 +46,28 @@ sudo mkdir -p /srv/workspace
[ -h /chroots ] || sudo ln -s /srv/workspace/chroots /chroots [ -h /chroots ] || sudo ln -s /srv/workspace/chroots /chroots
[ -h /schroots ] || sudo ln -s /srv/schroots /schroots [ -h /schroots ] || sudo ln -s /srv/schroots /schroots
if [ "$HOSTNAME" = "jenkins" ] ; then # prepare tmpfs on some hosts
if ! grep -q '^tmpfs\s\+/srv/workspace\s' /etc/fstab; then case $HOSTNAME in
echo "tmpfs /srv/workspace tmpfs defaults,size=100g 0 0" >> /etc/fstab jenkins) TMPFSSIZE=100 ;;
fi profitbricks-build?-amd64) TMPFSSIZE=60 ;;
profitbricks-build4-amd64) TMPFSSIZE=10 ;;
if ! mountpoint -q /srv/workspace; then *) ;;
if test -z "$(ls -A /srv/workspace)"; then esac
mount /srv/workspace case $HOSTNAME in
else jenkins|profitbricks-build?-amd64)
explain "mountpoint /srv/workspace is non-empty." if ! grep -q '^tmpfs\s\+/srv/workspace\s' /etc/fstab; then
echo "tmpfs /srv/workspace tmpfs defaults,size=${TMPFSSIZE}g 0 0" >> /etc/fstab
fi fi
fi if ! mountpoint -q /srv/workspace; then
fi if test -z "$(ls -A /srv/workspace)"; then
mount /srv/workspace
else
explain "mountpoint /srv/workspace is non-empty."
fi
fi
;;
*) ;;
esac
# make sure needed directories exists - some directories will not be needed on all hosts... # make sure needed directories exists - some directories will not be needed on all hosts...
for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build /var/log/jenkins/ /srv/jenkins /srv/jenkins/pseudo-hosts /srv/workspace/chroots ; do for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build /var/log/jenkins/ /srv/jenkins /srv/jenkins/pseudo-hosts /srv/workspace/chroots ; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment