Rolf Neugebauer
65885ea9a0
Merge pull request #1783 from dave-tucker/rtf-cases
...
[WIP] Add a test suite ✅
2017-05-12 21:44:14 +01:00
Dave Tucker
ce2bdea399
Add a test suite ✅
...
This adds a test suite to be executed using `linuxkit/rtf`.
This is installed in the top-level Makefile
The tests are written in shell script and cover the following cases:
- Kernel Config is OK!
- Kernel Modules can be built and loaded
- QEMU can build and run kernel+initrd, iso-bios and iso-uefi
- That we can build for all other supported output formats
- That all of the examples in `./examples` can be built
- The LTP tests can be run (if `-l slow` is provided)
The virtsock and docker-bench tests were migrated but no test has been
written as yet as AFAICT they are still a WIP
Signed-off-by: Dave Tucker <dt@docker.com>
2017-05-12 20:12:59 +01:00
Dave Tucker
7027dc814c
Fix path handling in QEMU to allow containers outside the PWD
...
Signed-off-by: Dave Tucker <dt@docker.com>
2017-05-12 20:12:59 +01:00
Ian Campbell
0fb3d1c6e9
Updated swarmd commit
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:48:52 +01:00
Ian Campbell
a28d34f18c
Modernise swarmd pkg build
...
Uses multi stage builds and the tree-sh as tag.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:48:01 +01:00
Riyaz Faizullabhoy
a11c373f0c
Merge pull request #1811 from ijc25/runc-workdir-workaround
...
pkg/runc: WORKDIR as first item in second stage
2017-05-12 11:42:22 -07:00
Ian Campbell
5eee4c0607
pkg/runc: WORKDIR as first item in second stage
...
Works around https://github.com/moby/moby/issues/33176 and fixes #1807 .
Updated al users of linuxkit/runc:2649198589ef0020d99f613adaeda45ce0093a38 to
this new build.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:23:27 +01:00
Ian Campbell
1b31a0ea3b
swarmd: Mount persistent disk on /var/lib/swarmd
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:11:45 +01:00
Ian Campbell
14b0c00133
swarmd: Switch to oneshot DHCP
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:11:45 +01:00
Ian Campbell
6c87493ec5
swarmd: Add metadata service
...
Also update other users of linuxkit/metadata to the newest build while I'm
here.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:10:49 +01:00
Ian Campbell
5b0f92fb9e
swarmd: Update to latest images (from linuxkit.yml)
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:02:25 +01:00
Ian Campbell
f5732b2cb5
swarmd: Add ntpd
...
Follows https://github.com/docker/moby/pull/1576
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:02:25 +01:00
Ian Campbell
8e90e67eea
swarmd: host pid namespace for CNI access to /proc/PID/ns/net
...
Since containers are spawned by containerd (which is in the host PID namespace)
and not in the swarmd container's namespace.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-12 19:02:23 +01:00
Justin Cormack
2388f483c3
Merge pull request #1810 from justincormack/init-clean
...
Init clean up
2017-05-12 16:09:21 +01:00
Justin Cormack
6a5f8099a4
Remove extra files from init
...
fix #1807
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-12 15:36:13 +01:00
Justin Cormack
589d4bff58
Remove some old .gitignore files
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-12 15:25:59 +01:00
Justin Cormack
aa3c4883fa
Merge pull request #1809 from justincormack/img-gz
...
Add image builder for compressed disk image
2017-05-12 14:56:45 +01:00
Justin Cormack
fe4b6aaf5d
Add image builder for compressed disk image
...
This is a fairly generic bootable disk with syslinux. Should
work if you `dd` it onto a USB stick, and should also work for AWS.
You need to uncompress it of course! Default size is 1G.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-12 14:43:55 +01:00
Justin Cormack
a9a00fae62
Merge pull request #33 from justincormack/img-gz
...
Add a compressed disk image format
2017-05-12 14:43:13 +01:00
Justin Cormack
1274f81f81
Add a compressed disk image format
...
This is a fairly generic bootable disk with syslinux. Should
work if you dd it onto a USB stick, and should also work for AWS.
You need to uncompress it of course! Default size is 1G.
Will add cli option to set the size once I split out `moby build`
and `moby package` shortly.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-12 14:29:14 +01:00
Justin Cormack
b40b0a08cc
Merge pull request #1808 from justincormack/mobyup
...
Update Moby tool
2017-05-12 13:24:41 +01:00
Justin Cormack
4746e67b9e
Update Moby tool
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-12 13:08:59 +01:00
Justin Cormack
1135cdddcc
Merge pull request #32 from justincormack/fix-pull
...
Fix docker pull
2017-05-12 13:08:17 +01:00
Justin Cormack
0ade84e151
Fix docker pull
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-12 13:04:19 +01:00
Justin Cormack
91e78b73b9
Merge pull request #31 from justincormack/fix-exec
...
Add missing import
2017-05-12 11:42:03 +01:00
Justin Cormack
8a71fbdbb6
Add missing import
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-12 11:41:37 +01:00
Justin Cormack
9afbc24c79
Merge pull request #30 from riyazdf/revert-run-api
...
Revert "Use Docker API for run"
2017-05-12 11:31:33 +01:00
Justin Cormack
4bef9648f9
Merge pull request #18 from riyazdf/docker-pull-api
...
implement docker pull using docker API + notary library
2017-05-12 11:30:49 +01:00
Riyaz Faizullabhoy
e26f2878d3
Revert "Use Docker API for run"
...
This reverts commit ec6fea1d67
.
2017-05-11 17:32:32 -07:00
Rolf Neugebauer
7cac6e57c6
Merge pull request #1806 from MagnusS/memlogd-containerd
...
Update logging project to use containerd
2017-05-11 20:40:45 +01:00
Rolf Neugebauer
122267c6f8
Merge pull request #1803 from ijc25/mkmetadata
...
Add `linuxkit metadata create` command
2017-05-11 20:09:52 +01:00
Magnus Skjegstad
1da0b14e23
logging: update example to use latest init/containerd
...
Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
2017-05-11 21:08:23 +02:00
Magnus Skjegstad
37ddf42b5b
logging: add log capture to onboot and service startup
...
Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
2017-05-11 21:07:58 +02:00
Magnus Skjegstad
4a9a5afd03
logging: update init scripts to latest version with containerd
...
Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
2017-05-11 20:59:55 +02:00
Ian Campbell
c1ce8b4688
Consolidate metadata ISO writing into a single function
...
Used by both `metadata create` and the hyperkit runner.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-11 19:25:28 +01:00
Ian Campbell
36eaa44d7e
Add linuxkit metadata
command
...
Only subcommand is currently `create` which is a thin wrapper to create an iso
file in the format expected by `pkg/metadata`.
Currently very basic and just takes the content on the command line but could
be extended to read from a file etc.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-11 19:25:27 +01:00
Chanwit Kaewkasi
d83c35259a
add Source attribute to File
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2017-05-12 01:01:53 +07:00
Riyaz Faizullabhoy
9afeda3c78
Vendoring for notary
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2017-05-11 10:11:38 -07:00
Riyaz Faizullabhoy
abf0028ee8
Use docker and notary API for pull
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2017-05-11 10:11:19 -07:00
Justin Cormack
c4da8863fd
Merge pull request #1804 from justincormack/containerdup
...
Switch to containerd
2017-05-11 11:41:54 +01:00
Justin Cormack
66d6d3a6e3
Update containers to use containerd
...
Now the issues seem fixed, switch over to containerd.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-11 11:25:06 +01:00
Justin Cormack
716f60f226
Update containerd
...
This includes the bug fix that was causing output to be lost much
of the time.
fix #1660
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-11 10:11:18 +01:00
Rolf Neugebauer
54479cb917
Merge pull request #1802 from ijc25/metadata-simple-content
...
Metadata fix + a simpler file content option
2017-05-11 08:18:25 +01:00
Ian Campbell
800badea42
metadata: Allow simple string keys
...
If a file is a simple string (as opposed to a map) then write it with the
default perms. This makes for slightly terser metadata when creating a simple
datafile.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-11 01:39:03 +01:00
Ian Campbell
8fd1a3cbdb
metadata: Fix parsing of JSON
...
`ok` was not assigned when type casting to `map[string]interface{}` so the
subsequent check was testing a stale value.
Also, the error message upon failure had the wrong sense.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-10 17:37:45 +01:00
Justin Cormack
ba07bbfb0d
Merge pull request #26 from justincormack/gitignore-del
...
Remove .gitignore
2017-05-10 17:00:17 +01:00
Justin Cormack
0ea9dfdfe1
Remove .gitignore
...
Was ignoring too much...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-10 16:59:25 +01:00
Justin Cormack
e0bcac3a28
Merge pull request #1799 from rneugeba/win-script
...
scripts: Rename named pipe for the serial port on Hyper-V
2017-05-10 14:54:46 +01:00
Rolf Neugebauer
3efdc694c5
Merge pull request #1798 from rneugeba/virtsock
...
Update virtsock test
2017-05-10 13:45:14 +01:00
Rolf Neugebauer
008edbb438
scripts: Rename named pipe for the serial port on Hyper-V
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-05-10 13:36:27 +01:00