Commit Graph

5622 Commits

Author SHA1 Message Date
Ian Campbell
4f79366526 Update yaml
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-11 13:14:31 +00:00
Ian Campbell
794ea7ed72 Make runtime.mounts[].destination relative to container rootfs
This is similar to ae64ab6b82 from #2849 which
did the same for runtime.mkdir.

This makes it possible to specify both host (absolute) or container (relative)
paths.

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-11 12:58:09 +00:00
Ian Campbell
57cf8df3b2 Revendor moby tool to f816553d2f
Pulls in:

f816553 Merge pull request #195 from ijc/prepend-rootfs-mounts
0a6d69d Prepend the rootfs mounts to the user specified runtime.mounts.

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-11 12:22:34 +00:00
Robin Winkelewski
a7e61c4da7 bump yml format
Signed-off-by: Robin Winkelewski <w9ncontact@gmail.com>
2018-01-11 13:21:54 +01:00
Rolf Neugebauer
cd1a472678
Merge pull request #2852 from rn/pktpxe
Improve packet.net support
2018-01-11 12:12:47 +00:00
Rolf Neugebauer
293b2bb982 docs: Update packet.net documentation
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-11 10:49:48 +00:00
Robin Winkelewski
bd20f419bf format: fix for nvme
Signed-off-by: Robin Winkelewski <w9ncontact@gmail.com>
2018-01-11 11:43:53 +01:00
Justin Cormack
47bba67fe4
Merge pull request #2853 from thebsdbox/vmware_host_fix
Added capability to find a host if -hostname isn't specified
2018-01-11 10:38:17 +00:00
thebsdbox
8b9eddf6f6 Added capability to find a host if -hostname isn't specified
Will return the list of all hosts that are part of a vCenter DataCenter
and choose one at random to use.

Signed-off-by: Dan Finneran <daniel.finneran@gmail.com>
2018-01-10 19:44:18 +00:00
Rolf Neugebauer
1cef947ee1 cmd/serve: Add a new 'linuxkit serve' command
This simply starts a web server serving the specified directory.
It's useful for PXE booting.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:48:47 +00:00
Rolf Neugebauer
16ae50b593 cmd/packet: Add linuxkit push packet support
This currently just copies the kernel/initrd to a destination
and writes the iPXE script there as well. The scheme is flexible
enough to support scp or other means for pushing in the future.

The kernel/initrd are conditionally decompressed (default for arm64).

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:45:35 +00:00
Rolf Neugebauer
2431dd9950 cmd/packet: Use IPXEScriptURL instead of passing script via Userdata
Using the userdat to pass the iPXE script precludes us from passing
actual userdata to the instance. Instead pass a URL to the iPXE script.
The script is expected to be a <base-url>/<name>-packet.ipxe.

When starting a server also serve the iPXE script from memory (not
the file system). The http server needed extending to differentiate
between the serving files and the iPXE script and ServeMux is used
to differentiate based on path.

A subsequent commit will provide an option to write the iPXE script
to disk.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:45:34 +00:00
Rolf Neugebauer
8ae4f5bc86 cmd/packet: Factor out the iPXE script creation
Subsequent commits will use it in other places.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:45:24 +00:00
Rolf Neugebauer
90510777ad cmd/packet: Tidy up the code
prefix packet.net specific functions with 'packet' and make
non-packet specific functions, such as validateHTTPURL()
more generic so that they can easily be moved to 'utils.go'
should they be needed elsewhere.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:45:24 +00:00
Rolf Neugebauer
50c4eb5461 cmd/packet: Actually use the -serve argument
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:45:24 +00:00
Rolf Neugebauer
007854f85e cmd/packet: Fix API changes in the new version of the go bindings
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:45:23 +00:00
Rolf Neugebauer
b272819540 cmd/packet: Update the vendored packet.net go binding
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 17:45:23 +00:00
Justin Cormack
4c2a3f5c3d
Merge pull request #2849 from justincormack/fix-mkdir
Fix runtime mkdir
2018-01-10 17:06:19 +00:00
Justin Cormack
d6d376c631 update init hashes
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-10 15:03:03 +00:00
Justin Cormack
ae64ab6b82 Make relative paths in runtime mkdir be relative to container rootfs
Currently all paths were treated as absolute paths.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-10 14:58:49 +00:00
Justin Cormack
a4a332f39a Use logrus not log for logging consistently
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-10 14:28:50 +00:00
Rolf Neugebauer
c2b534245b
Merge pull request #2846 from rn/kup
Update kernels to 4.14.13/4.9.76/4.4.111
2018-01-10 13:26:12 +00:00
Rolf Neugebauer
aa59ffb82d Update YAML files to latest kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 12:05:49 +00:00
Rolf Neugebauer
9a101d1136 kernel: Update to 4.14.13/4.9.76/4.4.111
This looks like there are a couple of minor fixes to the
recent KPTI changes but nothing major...

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-10 11:12:27 +00:00
Justin Cormack
b06e11c7d7
Merge pull request #2840 from justincormack/authorsup
Update AUTHORS
2018-01-08 15:19:23 +00:00
Justin Cormack
ac82664b76 Update AUTHORS
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-08 13:57:21 +00:00
Justin Cormack
421a4d3d7c
Merge pull request #2809 from stevvooe/plumb-namespace-context
pkg/init/cmd/service: plumb containerd namespace
2018-01-08 13:43:37 +00:00
Rolf Neugebauer
c603aa1811
Merge pull request #2839 from rn/kern-up
Kernel update to 4.14.12/4.9.75/4.4.110
2018-01-06 22:39:21 +00:00
Rolf Neugebauer
7f44ca5442 doc: Security update in top level readme.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-06 21:22:16 +00:00
Rolf Neugebauer
23fd00471b Update YAML files to the latests kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-06 19:53:57 +00:00
Rolf Neugebauer
682f6d8819 kernel: Enable KPTI on 4.9.x and 4.4.x kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-06 11:24:43 +00:00
Rolf Neugebauer
d86d43fe40 kernel: Update to 4.14.12/4.9.75/4.4.110
4.9.75 and 4.4.10 now have KPTI backported as well

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-06 10:00:13 +00:00
Stephen J Day
d40b86537e
examples, projects: update linuxkit hash
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2018-01-05 14:46:50 -08:00
Stephen J Day
fbbab9eafd
pkg/init/cmd/service: plumb containerd namespace
This PR correctly plumbs a single context to propagate the containerd
namespace to the necessary commands. Services launched with containerd
after this change will now be in a default namespace of
`services.linuxkit`.

A top-level flag is added to the service command,
`--containerd-namespace` which can be used to change, if needed.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2018-01-05 14:45:19 -08:00
Rolf Neugebauer
bad114476a
Merge pull request #2837 from rn/clean
Remove some stale files/projects
2018-01-05 18:40:52 +00:00
Rolf Neugebauer
de2ab148f6
Merge pull request #2835 from rn/foreign-kernels
Change support for foreign kernels
2018-01-05 16:17:37 +00:00
Rolf Neugebauer
b565d62e68 projects: Update docs
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 15:39:26 +00:00
Rolf Neugebauer
4834def83b projects: Remove kernel-config
The scheme we currently have seems relatively usable and
this project has not been maintained for a while.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 15:36:38 +00:00
Rolf Neugebauer
db52123afc projects: Remove the etcd projects
It was last used close to a year ago and is not longer
maintained/used.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 15:19:42 +00:00
Rolf Neugebauer
07c2f49edc scripts: Remove LinuxKit.ps1
This existed before 'linuxkit run hyperv' and is no longer
needed/maintained.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 15:18:45 +00:00
Rolf Neugebauer
c673813582 docs: Update kernel documentation
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 14:58:02 +00:00
Rolf Neugebauer
b1b8b1e6c2 foreign-kernels: Add README
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 14:58:02 +00:00
Rolf Neugebauer
c67d249410 foreign-kernels: Rewrite scripts to only build one local image
The scripts used to scrape the various repositories to build
and push package for all foreign kernels. They were designed
to be run periodically and provide "official" foreign kernel
packages. Needless to say we did not run them periodically
and the linuxkit packages became out-dated quickly.

Now, we just provide users who are interested in using foreign
kernels the means to build their own package from specific
vendor kernels.

Each script uses slightly different command line arguments
as the location and naming of the kernel packages differ
wildly. The help message provide a working example which
has been tested with a minimal LinuxKit YAML file.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 14:58:02 +00:00
Rolf Neugebauer
f696c5a253 foreign-kernels: Switch to 3.7 and use FROM scratch
We don't use toybox-media anymore as the base for kernel
images.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-05 14:58:02 +00:00
Rolf Neugebauer
8b88cb95fb
Merge pull request #2834 from ijc/remove-projects/swarmd
Remove projects/swarmd
2018-01-05 00:40:46 +00:00
Ian Campbell
0e64c95561 Remove projects/swarmd
Support for this has stalled in the swarmkit project due to lack of maintainer
time to review and support and the existing code no longer works with the
version of containerd used in linuxkit.

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-04 16:39:01 +00:00
Justin Cormack
167d739354
Merge pull request #2833 from justincormack/mobyup
Update Moby tool
2018-01-04 15:32:23 +00:00
Justin Cormack
976eab2499
Merge pull request #2832 from tklauser/unix-reboot
Use pure Go unix.Reboot function in rc.init
2018-01-04 15:01:52 +00:00
Justin Cormack
baac3e98c9 Update linuxkit deps in line with moby
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-04 13:55:42 +00:00
Tobias Klauser
a43bfba832 Update YAML files to linuxkit/init:5a577d070817b4f17821657823082651baafd4ed
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2018-01-04 14:18:53 +01:00