Skip to content

Instantly share code, notes, and snippets.

Ross Boucher boucher

Block or report user

Report or block boucher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:112bb36f088e94c9d1f5
### Keybase proof
I hereby claim:
* I am boucher on github.
* I am boucher (https://keybase.io/boucher) on keybase.
* I have a public key whose fingerprint is F4FE 783B 7CB0 C0EF DDBE 84A0 465F 9F37 14A0 59E3
To claim this, I am signing this object:
View gist:16de1a70c314b448229c
(00.000021) ========================================
(00.000053) Dumping processes (pid: 89)
(00.000055) ========================================
(00.000169) Found anon-shmem device at 4
(00.000179) Reset 95's dirty tracking
(00.000229) ... done
(00.000260) Dirty track supported on kernel
(00.000296) irmap: Searching irmap cache in work dir
(00.000309) irmap: Searching irmap cache in parent
(00.000314) irmap: No irmap cache
View gist:19d5f73b4d75e70734fd
(00.000012) ========================================
(00.000027) Dumping processes (pid: 9187)
(00.000029) ========================================
(00.000077) Found anon-shmem device at 4
(00.000085) Reset 9196's dirty tracking
(00.000118) ... done
(00.000144) Dirty track supported on kernel
(00.000174) irmap: Searching irmap cache in work dir
(00.000189) irmap: Searching irmap cache in parent
(00.000194) irmap: No irmap cache
View gist:f4848c0489ae2ae3cf78
var stdout bytes.Buffer
stdinR, stdinW, err := os.Pipe()
pconfig := libcontainer.Process{
Args: []string{"cat"},
Env: standardEnvironment,
Stdin: stdinR,
Stdout: &stdout,
}
View gist:dd947c494445bfc25c91
Provisioned slave ubuntu us-west-2 (ami-1d15252d) failed to launch
java.lang.NullPointerException
at hudson.plugins.ec2.SlaveTemplate.provisionSpot(SlaveTemplate.java:640)
at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:286)
at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:398)
at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:394)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
View gist:fb7b7086b681b481dae7
(00.000047) Added /app/available_modules:/app/available_modules ext mount mapping
(00.000072) Added /app/modules/db:/app/modules/db ext mount mapping
(00.000075) Added /etc/resolv.conf:/etc/resolv.conf ext mount mapping
(00.000077) Added /etc/hostname:/etc/hostname ext mount mapping
(00.000079) Added /etc/hosts:/etc/hosts ext mount mapping
(00.000083) ========================================
(00.000089) Dumping processes (pid: 22777)
(00.000091) ========================================
(00.000146) Found anon-shmem device at 4
(00.000157) Reset 22830's dirty tracking
View gist:06439aa19b8e0c195217
var container = await docker.createContainerAsync(options);
// FIXME we need to be checkpointed before we can restore
await container.startAsync();
await container.checkpointAsync({})
await container.restoreAsync({
ImagesDirectory: getCheckpointPath(request.URL, lastChecksum)
})
View gist:08faf44aa51934883de6
diff --git a/configs/config.go b/configs/config.go
index 33c9fc0..b07f252 100644
--- a/configs/config.go
+++ b/configs/config.go
@@ -96,9 +96,6 @@ type Config struct {
// ReadonlyPaths specifies paths within the container's rootfs to remount as read-only
// so that these files prevent any writes.
ReadonlyPaths []string `json:"readonly_paths"`
-
- // Container's standard descriptors (std{in,out,err}), needed for checkpoint and restore
View gist:d1c6e8cd434099c698f2
diff --git a/container_linux.go b/container_linux.go
index f76c777..1e596b5 100644
--- a/container_linux.go
+++ b/container_linux.go
@@ -5,6 +5,7 @@ package libcontainer
import (
"encoding/json"
"fmt"
+ "io/ioutil"
"os"
@boucher
boucher / dump.log
Created Apr 27, 2015
dump/restore new container test
View dump.log
vagrant@vagrant:~$ sudo cat /tmp/checkpoints/ctest2-checkpoint/dump.log
(00.000071) Added /etc/resolv.conf:/etc/resolv.conf ext mount mapping
(00.000102) Added /etc/hostname:/etc/hostname ext mount mapping
(00.000105) Added /etc/hosts:/etc/hosts ext mount mapping
(00.000109) ========================================
(00.000112) Dumping processes (pid: 30187)
(00.000114) ========================================
(00.000161) Found anon-shmem device at 4
(00.000170) Reset 30226's dirty tracking
(00.000203) ... done
You can’t perform that action at this time.