Rolf Neugebauer
ae5dfc6d7d
Update all YAML files to use the new binfmt, dhcpcd and rngd packages
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-05-23 15:55:40 +01:00
Rolf Neugebauer
a6d834ddf0
Merge pull request #1865 from justincormack/go-compile
...
more Go compile fixes
2017-05-21 11:18:45 +01:00
Rolf Neugebauer
4377ae3209
Merge pull request #1861 from justincormack/containerd-build
...
Update containerd
2017-05-21 11:13:07 +01:00
Justin Cormack
e52bf2f745
Update sysctl and sysfs in yaml files
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-20 11:16:48 +01:00
Justin Cormack
702ad5d9d9
Update git hashes for sysctl
...
And remove all the config options as they are now in the label.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-19 22:05:15 +01:00
Justin Cormack
a3ea4646e5
Update containerd in yaml files
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-19 11:52:12 +01:00
Rolf Neugebauer
6bea56c185
Update all YAML files to use the new packages
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-05-18 18:55:22 +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
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
Rolf Neugebauer
423957cfef
Update YAML files to new packages
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-05-08 16:49:39 +01:00
Rolf Neugebauer
21f1646ce2
Update YAML files with new package hashes
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-05-04 22:27:59 +01:00
Justin Cormack
72c3f9cfa2
More renames to LinuxKit
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-14 11:47:24 -05:00
Rolf Neugebauer
b0629176ab
examples: Don't use a file section if you don't need it
...
Exception is ./moby.yaml where it serves as an example.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 12:26:30 +01:00
Rolf Neugebauer
a59e24b4fa
example: Don't use the full @sha25t version of images
...
The sha1 tag should be sufficient to uniquely identify the image
and the sha256 versions are just very long...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 12:24:02 +01:00
Justin Cormack
2c7628c101
Support dhcpcd in one shot mode as well
...
This is needed for cloud environments that want to get their metadata in
the onboot phase over the network.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-11 14:58:57 +01:00
Rolf Neugebauer
733e8f3307
config: Remove unused binfmt container
...
A few YAML files include the binfmt container, where it's not really
needed. Remove it to make the samples simpler.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-09 10:09:00 +01:00
Justin Cormack
eb22d6909f
system → onboot daemon → services
...
As suggested by @shykes these are clearer
- onboot for things that are run at boot time to completion
- services for persistent services
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-08 16:56:47 +01:00
Justin Cormack
d9faecdee9
Make init accept a list of images not just a single one.
...
fix #1527
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-07 14:25:28 +01:00
Justin Cormack
0a030dc219
Clean up dhcpcd container
...
It is not necessary to bring up `eth0`, the program does it fine.
This means we can remove shell script, clean up build.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-06 15:32:22 +01:00
Ian Campbell
2b54e18f9f
Drop unnecessary use of start-stop-daemon with containerd.
...
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-04-06 09:34:38 +01:00
Ian Campbell
8270bdfe33
Use exec in a couple of places to avoid needless lingering /bin/sh processes
...
```
$ apk -U add procps
$ ps xf
1 ? Ss 0:05 /sbin/init
357 ? Ss 0:00 /bin/sh /etc/init.d/containerd
359 ? Sl 0:00 \_ /usr/bin/containerd
360 ? Ss 0:00 /bin/sh /etc/init.d/containers
432 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/swa
466 ? Ssl 0:00 | \_ /usr/bin/swarmd --containerd-addr=/run/contai
427 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/dhc
457 ? Ss 0:00 | \_ bin/sh /usr/local/bin/start_dhcpcd.sh
474 ? S 0:00 | \_ /sbin/dhcpcd --nobackground
429 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/rng
576 ? Ss 0:00 \_ /bin/tini /usr/sbin/rngd -f
580 ? S 0:00 \_ /usr/sbin/rngd -f
```
becomes
```
$ ps xf
1 ? Ss 0:06 /sbin/init
358 ? Ss 0:00 /bin/sh /etc/init.d/containers
426 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/dhc
458 ? Ss 0:00 | \_ /sbin/dhcpcd --nobackground
431 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/swa
460 ? Ssl 0:00 | \_ /usr/bin/swarmd --containerd-addr=/run/contai
428 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/rng
574 ? Ss 0:00 \_ /bin/tini /usr/sbin/rngd -f
578 ? S 0:00 \_ /usr/sbin/rngd -f
356 ? Ssl 0:00 /usr/bin/containerd
```
Specifically these are gone:
357 ? Ss 0:00 /bin/sh /etc/init.d/containerd
457 ? Ss 0:00 | \_ bin/sh /usr/local/bin/start_dhcpcd.sh
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-04-06 09:34:38 +01:00
Ian Campbell
f01d77930c
swarmd: Switch to DHCPD container
...
Follows on from #1316 , copies stanza from moby.yml but also picks up update
from #1493 .
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-04-05 10:39:04 +01:00
Ian Campbell
8859a7c0a6
swarmd: use standard init
...
In #1485 I was still using a local mobylinux/init containing #1436 , even though
I had included the necessary files in the swarmd container.
Switch to the current standard init package and drop the unnecessary bind.
Also `git add .gitignore` which I forgot last time too.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-04-04 16:23:25 +01:00
Ian Campbell
6a0bd7d035
Initial swarmkit package
...
This is based on https://github.com/docker/swarmkit/pull/1965 which adds a
direct containerd executor to swarmkit. It is very much a work in progress.
With a suitable moby image (such as projects/swarmd/swarmd.yml) something like
this should work:
runc exec swarmd swarmctl service create --image docker.io/library/nginx:alpine --name nginx
runc exec swarmd swarmctl service ls
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-04-04 16:00:03 +01:00