Commit Graph

514 Commits

Author SHA1 Message Date
David Sheets
dbadd16989 transfused: change protocol to support events, add syslog logging
The event string in the 9p socket file system now contains a 1 byte
channel type immediately preceding the connection ID. This channel type
determines which protocol will be used on the channel -- m for FUSE
protocol, e for events. The event messages are host-initiated and have
the following structure:

  2 bytes for total length
  2 bytes for path length + NUL (x)
  x bytes for path
  1 byte  for syscall

stderr logging was also changed to syslog-based logging in this patch.

Signed-off-by: David Sheets <david.sheets@docker.com>
2016-03-18 09:33:41 +00:00
Justin Cormack
33d6a8adf0 fix typo properly
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 19:47:14 +00:00
Justin Cormack
2c172c040b typo
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 18:27:42 +00:00
Justin Cormack
0c75abcb3e shift logs to host before docker startup, keep old logs
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 15:27:50 +00:00
Justin Cormack
1ed23add2b too early to log here, fuse not up
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 14:49:35 +00:00
Justin Cormack
9d3c651aba add log message for starting docker
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 14:28:55 +00:00
Justin Cormack
8326f389ab fix typo
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 14:06:39 +00:00
Justin Cormack
396407dd7e make sure transfused is logging
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 12:30:18 +00:00
Justin Cormack
ab6a41551f move hostlog into 9pinit so it happens early enough to capture logs
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-17 12:27:20 +00:00
Justin Cormack
f5edf03a6c docker download needs Linux not linux, sigh
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 16:00:28 +00:00
Justin Cormack
11cf541e75 clean up download to make sure errors correctly
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 15:45:43 +00:00
Justin Cormack
19e4a1bbdd revert to 32k transfers for next beta
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 15:20:56 +00:00
Justin Cormack
90b270b186 Debian unstable cannot currently compile Linux without segfaulting, revert to Ubuntu
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-15 10:32:17 +00:00
Justin Cormack
5107100739 also set OS for arm builds
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 20:00:39 +00:00
Justin Cormack
ac03f3ab4d explicitly set OS=linux as Windows sets OS env var
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 19:57:15 +00:00
Justin Cormack
46d5aef0ad 256k transfers working now on pinata
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 15:26:48 +00:00
Justin Cormack
697f251af3 revert max 9p transfer size to 64k
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 14:41:56 +00:00
Justin Cormack
19bbdc8ad2 increase max 9p transfer size to 256k
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-14 13:57:28 +00:00
Justin Cormack
c2ea7f7e82 more memory
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 14:13:12 +00:00
Justin Cormack
7521720d22 fix sha256 commit for arm
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 14:09:16 +00:00
Justin Cormack
fbc8112acb fix exact commit for arm
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 13:54:55 +00:00
Justin Cormack
373375569a fix arm build, dtb files now checked in
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 13:48:59 +00:00
Justin Cormack
09daa77e39 fix docker pidfile, may resolve #44
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-11 11:52:24 +00:00
Justin Cormack
6973ce71f0 update to docker 1.10.3
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 22:08:48 +00:00
Justin Cormack
a17aa0bcbd exact commit for alpine to help match source
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 20:41:28 +00:00
Justin Cormack
3c4b2d9a43 use debian not ubuntu for making iso so we have fewer base images
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:34:11 +00:00
Justin Cormack
027be103c0 update kernel to 4.1.19
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:22:34 +00:00
Justin Cormack
c69f65b5db bump aufs patch
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:21:54 +00:00
Justin Cormack
7ba416e9f8 move ntp cron job to correct directory, fix timekeeping drift better
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:15:01 +00:00
Justin Cormack
4e1222f8c5 generate compressed initrd, use it for xhyverun
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-10 11:09:54 +00:00
Justin Cormack
08788f5fdb empty /mnt mountpoint
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-08 00:48:08 +00:00
Justin Cormack
c62a163b2c Merge pull request #43 from rneugeba/initrdfix
initrd: don't include /mnt in the initrd
2016-03-07 13:29:16 +00:00
Rolf Neugebauer
fde8e83c1d initrd: don't include /mnt in the initrd
With the move to compose/volume mounts this now includes the current
directory. Noticed it when my initrds were getting bigger and bigger.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2016-03-07 12:34:41 +00:00
Justin Cormack
d855ecc326 clean up docker init
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-04 11:50:28 +00:00
Justin Cormack
0e33cf80a0 Do not write ip address to database, no longer needed.
See discussion in #39.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-04 10:43:01 +00:00
Justin Cormack
c6f18d1dd1 explicit compose build
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-03 09:22:55 +00:00
Justin Cormack
6a1fabe94b explicit compose build
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-03 09:21:58 +00:00
Justin Cormack
e05fba4d31 use the new cdn based Alpine repo, its faster and global
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-02 22:31:09 +00:00
Justin Cormack
81bfcbacef somehow networking is resetting hostname, get mdnstool to fix for now
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-01 16:50:30 +00:00
Justin Cormack
4778cde8c5 do not set hostname in dhcp
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-01 14:57:11 +00:00
Justin Cormack
57adc82c00 Merge pull request #40 from djs55/add-ip-debug
Add debugging around writing the "ip" file
2016-03-01 09:28:00 +00:00
David Scott
f2cf697cc4 Add debugging around writing the "ip" file
If writing the "ip" file doesn't happen, this should show the reason
why.

Related to #39

Signed-off-by: David Scott <dave.scott@docker.com>
2016-03-01 09:21:28 +00:00
Justin Cormack
2a029eca74 clean up transfused startup scripts
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-26 13:46:26 +00:00
Justin Cormack
9ed8b91027 Revert "set debug mode on docker daemon"
This reverts commit 52cce5311a.
2016-02-24 16:18:47 +00:00
Justin Cormack
52cce5311a set debug mode on docker daemon
See https://github.com/docker/pinata/issues/827

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-24 14:24:58 +00:00
Justin Cormack
4462a4b88d update to 1.10.2
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-22 23:25:06 +00:00
Justin Cormack
705d33afb8 update kernel to 4.1.18
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-22 16:48:54 +00:00
Justin Cormack
41ecb8ff3e output that we are shutting down docker
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-19 16:59:38 +00:00
Justin Cormack
e7d2e0c4cd add a qemu iso target
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-19 16:11:23 +00:00
Justin Cormack
704b4d87b1 use volume for building iso
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-02-19 16:11:09 +00:00