View Help
git_clone_pr
Checkout PR 1234 from the apache remote to default branch pr1234
git_clone_pr apache 1234
| "brooklyn-jetty-server-8443-qtp878715618-32" prio=10 tid=0x00007f7ecd87d000 nid=0x7371 waiting on condition [0x00007f7eba19a000] | |
| java.lang.Thread.State: WAITING (parking) | |
| at sun.misc.Unsafe.park(Native Method) | |
| - parking to wait for <0x00000007be966a90> (a java.util.concurrent.FutureTask) | |
| at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186) | |
| at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:425) | |
| at java.util.concurrent.FutureTask.get(FutureTask.java:187) | |
| at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63) | |
| at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:361) | |
| at org.apache.brooklyn.util.time.Durations.get(Durations.java:43) |
| #!/bin/sh | |
| echo "Running dhclient change hostname script for Ubuntu. reason=${reason}" | |
| timestamp=$(date +%s) | |
| if grep localhost /etc/hostname; then | |
| echo "Current hostname:" | |
| cat /etc/hostname | |
| echo "Attempting to configure hostname" | |
| if [ "x$reason" = "xBOUND" ]; then | |
| hostname=$new_host_name |
| #!/bin/sh | |
| # Filename: /etc/dhcp/dhclient-exit-hooks.d/sethostname | |
| # Purpose: Used by dhclient-script to set the hostname of the system | |
| # to match the DNS information for the host as provided by | |
| # DHCP. | |
| # logs in /var/log/syslog | |
| # | |
| echo dhclient-exit-hooks.d/sethostname: reason = $reason, interface = $interface |
| MARATHON_URL=http://xxx.xxx.xxx.xxx:8080 | |
| curl -X POST ${MARATHON_URL}/v2/apps -d @sample_marathon_task.json -H "Content-type: application/json" |
| mkdir ~/tmp_gopath_dir | |
| cd ~/tmp_gopath_dir | |
| export GOPATH=`pwd` | |
| go get -d github.com/brooklyncentral/brooklyn-cli/br | |
| cd $GOPATH/src/github.com/brooklyncentral/brooklyn-cli/br | |
| godep go install |
| require 'cgi' | |
| require 'digest/md5' | |
| require 'net/https' | |
| require 'uri' | |
| module Jekyll | |
| class GistTag < Liquid::Tag | |
| def initialize(tag_name, text, token) | |
| super | |
| @text = text |
View Help
git_clone_pr
Checkout PR 1234 from the apache remote to default branch pr1234
git_clone_pr apache 1234
Add the bash functions to your profile, either directly in ~/.bash_profile or preferably by loading the snippets from ~/.bash_profile.d - for example add the following to your .bash_profile:
# Run snippets
for script in ~/.bash_profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done
| brooklyn.catalog: | |
| version: 0.9.0-SNAPSHOT # BROOKLYN_VERSION | |
| items: | |
| # load everything in the classpath with a @Catalog annotation | |
| - scanJavaAnnotations: true | |
| - id: server | |
| description: | | |
| Provision a server, with customizable provisioning.properties and credentials installed, |
Doesn't really work too well, assumes systemd which isn't present, installation steps are as follows:
sudo add-apt-repository ppa:jpsutton/cockpit
sudo apt-get update
sudo apt-get install cockpit
sudo apt-get install glib-networking
sudo apt-get install pcp
sudo /usr/sbin/remotectl certificate --ensure --user=root