This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
count="0" | |
while [ "$count" -lt "5" ] | |
do | |
echo "Iteration: $count" | |
job_id=$(lavacli --identity localhost jobs submit /tmp/lxc.yaml) | |
echo "Submitted job: $job_id" | |
lavacli --identity localhost jobs wait $job_id | |
count=$[$count+1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -v /home/stylesen/fileshare:/fileshare -v /var/run/docker.sock:/var/run/docker.sock -itd -e HOSTNAME='docker-worker-1' -e MASTER='tcp://lava.codehelp.co.uk:5556' -e SOCKET_ADDR='tcp://lava.codehelp.co.uk:5555' -e LOG_LEVEL='DEBUG' -e ENCRYPT=1 -e MASTER_CERT='/fileshare/master.key' -e SLAVE_CERT='/fileshare/docker-worker-1.key_secret' -p 2222:22 --privileged --name ld-2018.2-1 stylesen/lava-dispatcher-debian-stretch:2018.2-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import guestfs | |
import subprocess | |
image = '/tmp/rpb-console-image-hikey-20171218134627-9.rootfs.img' | |
ext4_img = 'rpb-console-image-hikey-20171218134627-9.rootfs.img.ext4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get -y update | |
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/lava_dispatcher/protocols/lxc.py b/lava_dispatcher/protocols/lxc.py | |
index 4c7c118415..5acb2ab37f 100644 | |
--- a/lava_dispatcher/protocols/lxc.py | |
+++ b/lava_dispatcher/protocols/lxc.py | |
@@ -127,13 +127,15 @@ class LxcProtocol(Protocol): # pylint: disable=too-many-instance-attributes | |
logger.exception(msg) | |
raise JobError("Invalid call to %s %s" % (self.name, exc)) | |
- def _call_handler(self, command): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import yaml | |
import xmlrpclib | |
USERNAME = "stylesen" | |
TOKEN = "yourtoken" |