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
DUMP stringOpts: {"images_dir_fd":77,"pid":22554,"leave_running":true,"ext_unix_sk":false,"tcp_established":true,"shell_job":false,"log_level":4,"log_file":"dump.log","notify_scripts":true,"root":"/var/lib/docker/aufs/mnt/fa93b09a86f58242352e2c96dd81646df36a16edf060f0f13179868f8209c0dc","work_dir_fd":75,"ext_mnt":[{"key":"/app/available_modules","val":"/var/lib/docker/aufs/mnt/fa93b09a86f58242352e2c96dd81646df36a16edf060f0f13179868f8209c0dc/app/available_modules"},{"key":"/app/modules/db","val":"/var/lib/docker/aufs/mnt/fa93b09a86f58242352e2c96dd81646df36a16edf060f0f13179868f8209c0dc/app/modules/db"},{"key":"/etc/resolv.conf","val":"/var/lib/docker/aufs/mnt/fa93b09a86f58242352e2c96dd81646df36a16edf060f0f13179868f8209c0dc/etc/resolv.conf"},{"key":"/etc/hostname","val":"/var/lib/docker/aufs/mnt/fa93b09a86f58242352e2c96dd81646df36a16edf060f0f13179868f8209c0dc/etc/hostname"},{"key":"/etc/hosts","val":"/var/lib/docker/aufs/mnt/fa93b09a86f58242352e2c96dd81646df36a16edf060f0f13179868f8209c0dc/etc/hosts"}],"manage_cg |
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
vagrant@vagrant:/docker$ sudo cat /tmp/strace.log | |
8238 execve("/usr/local/sbin/criu", ["criu", "swrk", "3"], [/* 12 vars */]) = 0 | |
8238 brk(0) = 0x2070000 | |
8238 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
8238 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9391c49000 | |
8238 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
8238 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4 | |
8238 fstat(4, {st_mode=S_IFREG|0644, st_size=33432, ...}) = 0 | |
8238 mmap(NULL, 33432, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f9391c40000 | |
8238 close(4) = 0 |
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
(00.000517) Added eth0:vethdb4a064 veth map | |
(00.000590) Added /var/lib/docker/aufs/mnt/bf027699523765ea6ec7531a022fa12a37cee7a4312ea65b1218ec34ba1fc681/app/available_modules:/var/lib/docker/vfs/dir/25194a66f9d81334b1136c836b20ad86df2b35631616fdfb0c4836807dd0f729 ext mount mapping | |
(00.000600) Added /var/lib/docker/aufs/mnt/bf027699523765ea6ec7531a022fa12a37cee7a4312ea65b1218ec34ba1fc681/app/modules/db:/var/lib/docker/vfs/dir/a8b8cc89fad06385b3ff27d937d782107c1f245a0e0ea2e3689ea01bb5346870 ext mount mapping | |
(00.000603) Added /var/lib/docker/aufs/mnt/bf027699523765ea6ec7531a022fa12a37cee7a4312ea65b1218ec34ba1fc681/etc/resolv.conf:/var/lib/docker/containers/bf027699523765ea6ec7531a022fa12a37cee7a4312ea65b1218ec34ba1fc681/resolv.conf ext mount mapping | |
(00.000607) Added /var/lib/docker/aufs/mnt/bf027699523765ea6ec7531a022fa12a37cee7a4312ea65b1218ec34ba1fc681/etc/hostname:/var/lib/docker/containers/bf027699523765ea6ec7531a022fa12a37cee7a4312ea65b1218ec34ba1fc681/hostname ext mount mapping | |
(00.000612) Added /var/lib/ |
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
# file run.sh | |
#!/bin/bash | |
if [ "$DEPLOY_ENV" == "development" ]; then | |
# refresh npm modules | |
mkdir -p /tmp/packages | |
cp /app/package.json /tmp/packages/ | |
cp /app/npm-shrinkwrap.json /tmp/packages/ |
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
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 |
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
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" |
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
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 |
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 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) | |
}) |
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
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) |
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 stdout bytes.Buffer | |
stdinR, stdinW, err := os.Pipe() | |
pconfig := libcontainer.Process{ | |
Args: []string{"cat"}, | |
Env: standardEnvironment, | |
Stdin: stdinR, | |
Stdout: &stdout, | |
} |