Run allocatord locally


  1. Jiri set up and JIRI_ROOT environment variable set.

  2. Google Cloud SDK installed, so that gcloud and gsutil commands are on the PATH

  3. Kubernates control installed with

    gcloud components install kubectl
  4. You are added as an editor on the vanadium-staging project.

Get oauth credentials file.

gsutil cp gs://vanadium-backup/allocatord_oauth.json /tmp/oauth.json


source ${JIRI_ROOT}/infrastructure/scripts/util/
jiri go install \ \ \ \ \
agent -s on

Run allocatord

as_service ${JIRI_ROOT}/release/go/bin/vbecome --name=allocatord \
${JIRI_ROOT}/release/go/bin/allocatord \
 --http-addr=:8166 \
 --external-url=http://localhost:8166 \
 --oauth-client-creds-file=/tmp/oauth.json \
 --secure-cookies=false \
 --deployment-template=${JIRI_ROOT}/infrastructure/gke/syncbase-users-staging/conf/syncbased-deployment.json-template \
 --server-name=syncbased \
 --max-instances-per-user=3 \
 --vkube-cfg=${JIRI_ROOT}/infrastructure/gke/syncbase-users-staging/vkube.cfg \
 --dashboard-gcm-metric=cloud-syncbase \
 --dashboard-gcm-project=vanadium-staging \
 --assets=${JIRI_ROOT}/release/go/src/ \

and then visit http://localhost:8166 to browse the UI.

Edit UI

To update UI, edit template/CSS/JavaScript files in the “assets” directory and refresh the page to see the changes. No need to restart allocatord.

Re-generate “assets/assets.go” file when UI changes are ready to be reviewed.

jiri go generate