- A "base" ami which is updated very infrequently which contains the mininmal requirements to run some version of docker.
- docker worker itself runs in its own isolated LXC container but with access to docker via the unix socket
- deploying a worker is done by:
- pushing to github somewhere
- building a docker image for the worker
- start freshly built docker worker and run end-to-end tests (on either staging or production queue)
- deploying docker image (somehow) to S3 or private docker index
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 -e | |
configurations=$(ls procfile/* | sed 's/procfile\///'); | |
usage() { | |
echo | |
echo " Usage: ./bin/test <configuration> <file...>" | |
echo | |
echo " Available configurations" | |
for name in $configurations | |
do |
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
var azure = require('azure'); | |
var table = 'testtable'; | |
var BlobService = azure.BlobService; | |
var getACL = BlobService.prototype.getContainerAcl; | |
var tableService = azure.createTableService(); | |
tableService.apiVersion = '2012-02-12'; | |
tableService.getTableACL = BlobService.prototype.getContainerAcl; | |
tableService.setTableACL = BlobService.prototype.setContainerAcl; |
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
{ | |
task: 'http://...', | |
start: 'http:/...', | |
end: 'http://...' | |
} |
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
{ | |
"value": [ | |
{ | |
"PartitionKey": "aws-docker", | |
"RowKey": "031110672480958-4882e220-9a5d-11e3-a124-5d7e9372709c", | |
"Timestamp": "2014-02-20T19:22:42.8377149Z", | |
"exitCode": 0, | |
"ironMessageId": "5982550652071297833", | |
"log": "https://taskclusterproduction.blob.core.windows.net:443/taskclusterlogs/b9a22032-0cf5-421a-b38b-bd1ccfb84b00", | |
"queue": "aws-docker", |
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
{ | |
version: "0.2.0", | |
provisionerId: "aws-provisioner", | |
workerType: "ami-1ad0bc2a", | |
routing: "task-testing.task-creator", | |
retries: 5, | |
// since we invented our own queue format might as well call it heartbeat instead of timeout or whatever else... | |
heartbeat: 30, | |
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
# /etc/default/docker | |
mkdir -p /mnt/var/lib/docker | |
mkdir -p /mnt/docker-tmp | |
export TMPDIR="/mnt/docker-tmp" | |
export DOCKER_OPTS=" -g /mnt/var/lib/docker" |
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
client.executeAsyncScript(function() { | |
if (window.magicFooIsdone) return marionetteScriptFinished(); | |
// wait for magic foo! | |
setTimeout(marionetteScriptFinished, 1000, 'retvalue'); | |
}); |
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
argv: ['/tools/buildbot/bin/python', 'scripts/scripts/b2g_desktop_unittest.py', '--cfg', 'b2g/desktop_automation_config.py', '--test-suite', 'reftest', '--test-manifest', 'tests/layout/reftests/reftest-sanity/reftest.list', '--blob-upload-branch', 'b2g-inbound', '--download-symbols', 'ondemand'] |
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
module.exports = mem(function(databaseConnection) { | |
var MyOtherObjectThatDoesDbStuff = require('./stuff')(databaseConnection); | |
return { | |
}; | |
}); |
OlderNewer