Commit Graph

5149 Commits

Author SHA1 Message Date
Rolf Neugebauer
d29cc52be4 examples: Fix the vpnkit-forwarder example
The 'vpnkit-forwarder' packages lacked the vpnkit-expose-port which
was removed in f48a2bfe12 ("pkg: update vpnkit-forwarder").

It is not longer needed as the vpnkit-expose-port functionality
was integrated into 'linuskit run'

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-10 11:52:45 +00:00
Rolf Neugebauer
bc84fab42f vendor: remove github.com/satori/go.uuid
With the switch to github.com/satori/go.uuid this is no
longer needed. Strangely, it was not in vendor.conf...

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-10 11:52:45 +00:00
Rolf Neugebauer
638f15e1f8 tool/qemu: Switch to use github.com/google/uuid
With the hyperkit backend switched to this UUID package
switch qemu as well.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-10 11:52:44 +00:00
Rolf Neugebauer
c45179dce8 tool/hyperkit: Rename uuid.vpnkit to vpnkit.uuid
Other vpnkit related files start with vpnkit too.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-10 11:52:44 +00:00
Rolf Neugebauer
69501a8b26 tool/hyperkit: Add ability to expose port on localhost
When hyperkit is used with VPNKit we can "publish" VM ports
on localhost by using an API to the VPNKit process.

This commit adds a "-publish" flag to the hyperkit backend
exposing this functionality. "-publish" can be used multiple
times and is used the same way as for the qemu backend.

Other changes:
- Use 'github.com/google/uuid' as the 'uuid' package since
  VPKNkit uses it
- use 'vpnkit' prefix instead of 'vpnKit'
- Improve logging

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-10 11:52:44 +00:00
Rolf Neugebauer
6a159585e9 Vendor vpnkit go bindings
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-09 16:02:54 +00:00
Rolf Neugebauer
fe953f6bc2 tool: Move multipleFlag handling to utils.go
It's a generic thing and may be shared by other code.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-09 16:02:54 +00:00
Rolf Neugebauer
a272eba740 tool: Make ports uint16
The type of the guest and host ports should be uint16 not int. Also
make them public member of the PublishPort structure.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-09 16:02:54 +00:00
Rolf Neugebauer
d4517bc26f tool: Move the code for parsing published ports to utils.go
This code will soon be shared by other backends.

While at it, also rename the type to PublishPort (from publishPorts)
as it is just one Port and the function from splitPublish() to
NewPublishPort() as this seems more go like.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-09 16:02:54 +00:00
Ian Campbell
abe13b1f44
Merge pull request #2699 from ijc/containerd-v1.0.0-beta.3
Bump to containerd v1.0.0-beta.3
2017-11-09 15:11:11 +00:00
Ian Campbell
eb491824ba Update linuxkit.packages.getty-containerd for ctr changes
`ctr pull` → `ctr images pull`

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-09 13:50:51 +00:00
Ian Campbell
a5f4da2ebb Bump yml for containerd v1.0.0-beta.3
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-09 10:16:33 +00:00
Ian Campbell
61ca751840 Bump packages to new alpine w/ containerd v1.0.0-beta.3
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-09 10:16:33 +00:00
Ian Campbell
73cf544d33 alpine: bump to containerd containerd-v1.0.0-beta.3
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-09 10:16:33 +00:00
Justin Cormack
dd6087098b
Merge pull request #2694 from rn/debug
pkglib: Enable runtime debug output
2017-11-07 21:27:50 +00:00
Rolf Neugebauer
f97b885bef pkglib: Enable runtime debug output
Log commands executed when '-v' is used on the commandline.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-07 15:31:57 +00:00
Ian Campbell
c68ed82f99
Merge pull request #2690 from ijc/circleci
Add Circle CI runes
2017-11-07 13:53:08 +00:00
Rolf Neugebauer
c2e1700033
Merge pull request #2692 from rn/rpi3-doc
docs: Add documentation for the Raspberry Pi 3b
2017-11-07 13:36:46 +00:00
Ian Campbell
1332ab979e Remove travis.yml
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-07 11:48:56 +00:00
Rolf Neugebauer
3286376054 docs: Add documentation for the Raspberry Pi 3b
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-07 11:23:44 +00:00
Ian Campbell
1cb4d173e4 Add Circle CI runes
Advantage over Travis for this usecase is the automatic artifact handling
without needing to mess with S3 or similar, making it simple to offer
downloads.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-07 10:17:44 +00:00
Ian Campbell
479e183c8a local-build: build a static + stripped binary by default
On Linux enable pie too.

Lastly, give the user control over the target name (e.g. to allow them to build
with a GOOS+GOARCH suffix).

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-07 10:17:44 +00:00
Ian Campbell
2bc91c65e3
Merge pull request #2688 from pgayvallet/disable-kube
Kubernetes : add capability not to start kubelet
2017-11-07 09:53:07 +00:00
Rolf Neugebauer
678adbd784
Merge pull request #2693 from deitch/single-rng
Remove double invocation of virtio-rng-pci
2017-11-07 08:42:38 +00:00
Avi Deitcher
2460b45397 Remove double invocation of virtio-rng-pci
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2017-11-07 09:17:51 +02:00
Rolf Neugebauer
626adf5375
Merge pull request #2689 from rn/kconfig
Tweak kernel configuration
2017-11-06 17:36:32 +00:00
pgayvallet
179c82e0cb Move kubelet.sh.conf sourcing before exit checks
Signed-off-by: pgayvallet <pierre.gayvallet@gmail.com>
2017-11-06 17:32:59 +01:00
Justin Cormack
7485f2b6bf
Merge pull request #2686 from rn/random
qemu: Use /dev/urandom on Linux for virtio-rng-pci
2017-11-06 15:26:46 +00:00
Rolf Neugebauer
48ddaf9f44 kernel: Disable CONFIG_SCSI_PROC_FS on all kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-06 15:04:05 +00:00
Rolf Neugebauer
8500ac20ca kernel: Enable DSAF for HiSilicon arm64 servers
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-06 14:58:27 +00:00
pgayvallet
ba8e01bf13 Add capability to not start kubelet depending on either a configuration file or an environment variable.
Signed-off-by: pgayvallet <pierre.gayvallet@gmail.com>
2017-11-06 15:08:22 +01:00
Rolf Neugebauer
0c997129f5 qemu: Use /dev/urandom on Linux for virtio-rng-pci
On Linux the default is /dev/random which may block if there
is not enough entropy (and it determines lack of entropy
conservatively). /dev/urandom never blocks but is fed from
the same entropy source as /dev/random so this change should
not affect platforms which have hardware RNGs but helps to
prevent stalls on platforms, in particular some arm64 platforms,
where the hardware RNG is either not present or not enabled.

If you really care about proper entropy inside a VM do not use
'linuxkit run', it's mostly for testing and shouldn't be used
for production anyway.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-06 14:07:48 +00:00
Justin Cormack
2902764b87
Merge pull request #2649 from w9n/kube_init
Kubernetes: Autoinit and persistent state by default
2017-11-05 14:54:03 +00:00
Rolf Neugebauer
3209cb0393
Merge pull request #2679 from ijc/linuxkit-pkg-dev-mode
linuxkit pkg: add `--dev` to force local org and hash
2017-11-05 14:49:20 +00:00
Rolf Neugebauer
ee24626b4b
Merge pull request #2680 from justincormack/foobar
Remove accidental example commits
2017-11-05 14:49:04 +00:00
Rolf Neugebauer
42593a2b7f
Merge pull request #2673 from thebsdbox/vSphere_panic_fix
vSphere Panic Fix
2017-11-05 14:48:53 +00:00
w9n
7b16f41540 Kubernetes: Autoinit and persistent state by default
Signed-off-by: Robin Winkelewski <w9ncontact@gmail.com>
2017-11-05 13:15:50 +01:00
Ian Campbell
c3a150d5f7 linuxkit pkg: add --dev to force local org and hash
$USER and "dev" respectively.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-03 17:17:53 +00:00
thebsdbox
3f544d25ed vSphere Panic Fix
This fixes issue #2635 related to no network being passed during an
image upload as no network is required. However a hostname is still
required due to vCenter handing the upload to a vSphere server and it’s
DataStore.

Signed-off-by: Dan Finneran <daniel.finneran@gmail.com>
2017-11-03 16:50:46 +00:00
Justin Cormack
be53867567 Remove accidental example commits
From #2672

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-03 16:46:35 +00:00
Justin Cormack
8f12286b77
Merge pull request #2678 from justincormack/authorsup
Update Authors
2017-11-03 16:44:42 +00:00
Justin Cormack
ed366246eb
Merge pull request #2672 from rn/up
Update wireguard and kernels (4.13.11/4.9.60/4.4.96)
2017-11-03 16:36:38 +00:00
Justin Cormack
c3e5d3e7c6
Merge pull request #2676 from justincormack/lint2
Some linting improvements from gometalinter
2017-11-03 16:36:19 +00:00
Justin Cormack
3441937b4c
Merge pull request #2677 from ijc/linuxkit-pkg
linuxkit pkg: pull the actual tag before build
2017-11-03 16:36:09 +00:00
Justin Cormack
919fa346fb Update Authors
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-03 15:21:46 +00:00
Rolf Neugebauer
4866a1c4d6 Update YAML files with latest kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:07 +00:00
Rolf Neugebauer
cb7699ee5a kernel: Temporarily patch wireguard
Version 0.0.20171101 errors out when compiled for
debug kernels. This will be fixed in the next release.

In the meantime pull in the patch which fixes the
compile error.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Rolf Neugebauer
1ea69cbcf3 kernel: Update to 4.13.11/4.9.60/4.4.96
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Rolf Neugebauer
0ab77ee843 Update YAMLs with getty/ip/sshd packages
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00
Rolf Neugebauer
7c5f797935 pkg: Update getty/ip/sshd package to pick up new wireguard
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-11-03 15:11:06 +00:00