by briansteffens
14 deployments · 8 still active · last rev. 1 year ago

A worker instance for

Compatible with: Arch 2017.04.01
#<UDF name="server_url" label="The cold cluster server URL">
#<UDF name="token" label="The token to authenticate with the cluster server">
#<UDF name="worker_id" label="A name for this worker instance">
#<UDF name="cores" label="The number of cores available for cold on this instance">
#<UDF name="git_source" label="The cold fork to clone" default="">
#<UDF name="git_branch" label="The branch to use" default="master">

pacman -Syyu --noconfirm
pacman -S --needed --noconfirm base-devel
pacman -S --noconfirm git python-pip

pip install requests

cd ~ && git clone $GIT_SOURCE
cd ~/cold && git checkout $GIT_BRANCH
cd ~/cold && make
cd ~/cold && cluster/ $SERVER_URL $TOKEN $WORKER_ID $CORES