coldworker

by briansteffens
14 deployments · 8 still active · last rev. 4 months ago

A worker instance for https://github.com/briansteffens/cold

Compatible with: Arch 2016.09.03
						#!/bin/bash
#
#<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="https://github.com/briansteffens/cold">
#<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/worker.py $SERVER_URL $TOKEN $WORKER_ID $CORES