Files
weave-scope/scheduler
Daniel Holbach 5e3c8ab358 Squashed 'tools/' changes from 2bbc9a08..ec369f58
ec369f58 Merge pull request #153 from dholbach/drop-email
ef7418d3 weave-users mailing list is closed: https://groups.google.com/a/weave.works/forum/#!topic/weave-users/0QXWGOPdBfY
6954a578 Merge pull request #144 from weaveworks/golang-1.11.1
9649eed1 Upgrade build image from golang:1.10.0-strech to 1.11.1-strech
59263a71 Merge pull request #141 from weaveworks/update-context
e235c9b0 Merge pull request #143 from weaveworks/gc-wks-test-vms
c865b4cc scheduler: please lint/flake8
da61568d scheduler: please lint/yapf
ce9d78e3 scheduler: do not cache discovery doc
e4b78733 scheduler: add comment about GCP projects' IAM roles needed to list/delete instances and firewall rules
ff7ec8e6 scheduler: add comment about CircleCI projects' access via the API
2477d98c scheduler: deploy command now sets the current datetime as the version
5fcd8809 scheduler: pass CircleCI API token in for private projects
6b8c3231 scheduler: more details in case of failure to get running builds from CircleCI
0871aff8 scheduler: downgrade google-api-python-client from 1.7.4 to 1.6.7
b631e7f1 scheduler: add GC of WKS test VMs and firewall rules
a923a320 scheduler: document setup and deployment
013f5082 scheduler: lock dependencies' versions
6965a4a4 Merge pull request #142 from weaveworks/fix-build
23298c6f Fix golint expects import golang.org/x/lint/golint
482f4cd0 Context is now part of the Go standard library

git-subtree-dir: tools
git-subtree-split: ec369f58d7ac85375bad7d0f02a1462cdad290f9
2019-01-08 08:10:12 +05:30
..

scheduler

Development

Dependencies

Download and install:

Setup

$ pip install -U virtualenv
$ virtualenv --python=$(which python2.7) $TMPDIR/scheduler
$ source $TMPDIR/scheduler/bin/activate
$ pip install -r requirements.txt -t lib

Deployment

  • Run:

    $ appcfg.py --version $(date '+%Y%m%dt%H%M%S') update .
    XX:XX PM Application: positive-cocoa-90213; version: 1
    XX:XX PM Host: appengine.google.com
    XX:XX PM Starting update of app: positive-cocoa-90213, version: 1
    XX:XX PM Getting current resource limits.
    Your browser has been opened to visit:
    
        https://accounts.google.com/o/oauth2/auth?scope=...
    
    If your browser is on a different machine then exit and re-run this
    application with the command-line parameter
    
      --noauth_local_webserver
    
    Authentication successful.
    XX:XX PM Scanning files on local disk.
    XX:XX PM Scanned 500 files.
    XX:XX PM Scanned 1000 files.
    XX:XX PM Cloning 1220 application files.
    XX:XX PM Uploading 28 files and blobs.
    XX:XX PM Uploaded 28 files and blobs.
    XX:XX PM Compilation starting.
    XX:XX PM Compilation completed.
    XX:XX PM Starting deployment.
    XX:XX PM Checking if deployment succeeded.
    XX:XX PM Will check again in 1 seconds.
    XX:XX PM Checking if deployment succeeded.
    XX:XX PM Will check again in 2 seconds.
    XX:XX PM Checking if deployment succeeded.
    XX:XX PM Will check again in 4 seconds.
    XX:XX PM Checking if deployment succeeded.
    XX:XX PM Deployment successful.
    XX:XX PM Checking if updated app version is serving.
    XX:XX PM Completed update of app: positive-cocoa-90213, version: 1
    XX:XX PM Uploading cron entries.
    
  • Go to console.cloud.google.com > Weave Integration Tests (positive-cocoa-90213) > AppEngine > Versions and ensure traffic is being directed to the newly deployed version.

  • Click on Tools > Logs, and ensure the application is behaving well.