~ubuntuone-hackers/+junk/ttd-server-side

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created ~u1-time-to-deploy-bot on Launchpad
# Generated credentials using cli-sso-login
#
# Copied credentials to server, converted them into something that looks like
# a correct launchpadlib credentials file.  i.e. a ConfigParser file with a
# [1] section and consumer_key, consumer_secret, access_token, and
# access_secret entries.

# TODO: Make ssh key for u1-time-to-deploy-bot and register it with Launchpad.
# TODO: Update this script to specify launchpad-login

# Updated time-to-deploy script to take credentials as a path
# Updated projects.json to use local branch location for libdep.

# Added crontab
# 23 5 * * * (cd time-to-deploy  && python time-to-deploy.py --creds ~/lp-creds.cfg libdep --branch-url file:///home/ubuntu/src/libdep-service > ~/output/libdep-$(date +\%Y\%m\%d).csv)


# Installed mail locally so I could debug crontab

LP_NAME=u1-time-to-deploy-bot


# On a fresh Canonistack instance...


# Currently working on canonistack=10.55.60.166

# jml@grace:~/src/time-to-deploy$ . ~/.canonistack/novarc 
# jml@grace:~/src/time-to-deploy$ euca-allocate-address
# ADDRESS 91.189.93.111
# jml@grace:~/src/time-to-deploy$ euca-associate-address -i i-000057a7 91.189.93.111
# jml@grace:~/src/time-to-deploy$ euca-describe-instances 

# Install bzr & R
sagi bzr r-base-core apache2




# XXX: Manually install ggplot2 and reshape R packages
# Need to specify a CRAN mirror
#   $ R
#   > install.packages(c("reshape", "ggplot2"))
#   

# Get source code
bzr branch lp:~canonical-ca-hackers/+junk/time-to-deploy

# XXX: lp:libdep-service doesn't actually work.  Must specify proper URL or
# load Launchpad plugin.


# XXX: How do you share access to a canonistack instance?