185 Commits

Author SHA1 Message Date
Dimitri John Ledkov 45f0ff8b19 Clear linux use system binaries, instead of compiling systemd. 2015-06-02 15:40:16 +01:00
Dimitri John Ledkov ce7ad6b722 Merge branch 'master' of https://github.com/coreos/rkt 2015-05-20 14:22:19 +01:00
Iago López Galeiras 230dc1bc8c stage1: dlopen libsystemd instead of libsystemd-login
In systemd-209 libsystemd-login was merged into libsystemd and a
compatibility libsystemd-login library was created. Unfortunately,
distributions like Fedora don't ship the compatibility libraries so
runningFromUnitFile will always return false.

Fix it by dlopening libsystemd.so instead of libsystemd-login.so.
2015-05-18 11:23:58 +02:00
Dimitri John Ledkov 2416af1d35 Run lkvm in debug mode, when debugging is requested. 2015-05-14 13:48:32 +01:00
Dimitri John Ledkov fbe51e7d6c Use our ld.so, and our libraries. lsof output will be interesting. 2015-05-14 12:36:41 +01:00
Dimitri John Ledkov 423ca252ed Merge branch 'master' of https://github.com/coreos/rkt 2015-05-14 11:19:34 +01:00
Dimitri John Ledkov a072a99d16 Switch to uncompressed kernel. 2015-05-12 18:25:04 +01:00
Dimitri John Ledkov 34a3cbbbe8 Mount plan9 mounts inside the guest. 2015-05-12 13:40:30 +01:00
Alban Crequy 0ed3d37677 stage1: systemd: update build option
- remove --disable-readahead
- remove --disable-multi-seat-x
- add --disable-selinux

Also, write one option per line for better readability.

I kept the configure --help output order.
2015-05-12 10:03:39 +02:00
Dimitri John Ledkov 138ecb062d Add p9 read-write mounts for volumes. 2015-05-08 17:04:03 +01:00
Dimitri John Ledkov 8b9b4c062a Merge branch 'master' of https://github.com/coreos/rkt
Conflicts:
	stage1/init/init.go
	stage1/init/pod.go
2015-05-08 15:48:40 +01:00
Jonathan Boulle d61a4c52d7 Merge pull request #878 from endocode/iaguis/keep-unit
stage1: use systemd-nspawn's --keep-unit
2015-05-07 17:33:41 -07:00
Iago López Galeiras 3cbfa313f9 stage1: use systemd-nspawn's --keep-unit
If we're running from a unit file, we pass --keep-unit to systemd-nspawn
to avoid being moved to a different cgroup.
2015-05-07 15:24:00 -07:00
Jonathan Boulle 4c64fa6e93 Merge pull request #861 from jonboulle/copyright
*: adjust copyright header + remove NOTICE
2015-05-07 14:38:45 -07:00
Dimitri John Ledkov fad2dbf922 Implement kvm containment in stage1. 2015-05-06 15:41:29 +01:00
Yifan Gu b1190d99eb Merge pull request #858 from yifan-gu/forward_port
stage1/init: Use pod manifest to get forwarded ports
2015-05-04 07:54:04 -07:00
Jonathan Boulle 9685f37575 *: adjust copyright header
Inspired by a similar change in the Kubernetes project [1], this changes
the copyright header to the more generic "The rkt Authors" rather than
"CoreOS, Inc.", which is only sometimes correct.

https://github.com/GoogleCloudPlatform/kubernetes/commit/6b3a6e6b983f967c88d14d26542ec6e30c49ebd3
2015-05-03 14:29:15 -07:00
Yifan Gu 6a97d6f65e stage1/init: Use pod manifest to get forwarded ports
Instead of using image manifest to get forwarded ports, we should
use pod manifest.
2015-05-02 17:14:22 -07:00
Brandon Philips 40ced98c32 version: bump to v0.5.5 2015-05-01 19:16:44 -04:00
Alban Crequy e3bd37dafa stage1: systemd: register only if systemd on the host supports it 2015-04-28 17:24:52 +02:00
Alban Crequy f183907d9c build: systemd: add patches for systemd-master 2015-04-28 17:24:52 +02:00
Alban Crequy b0b22a6606 build: systemd v219: add new patches 2015-04-28 17:24:52 +02:00
Alban Crequy a5274f92b4 build: ability to choose a different systemd version
When building stage1 from sources with RKT_STAGE1_USR_FROM=src,
it is now possible to choose which systemd tag or branch should be
built:

  $ export RKT_STAGE1_USR_FROM=src
  $ export RKT_STAGE1_SYSTEMD_SRC=git://anongit.freedesktop.org/systemd/systemd
  $ export RKT_STAGE1_SYSTEMD_VER=v215
  $ ./build

By default, it still fetch the upstream git repository with tag v215 as
before. So defining the new variables is not necessary.

It is also possible to build against a local systemd repository:

  $ export RKT_STAGE1_USR_FROM=src
  $ export RKT_STAGE1_SYSTEMD_SRC=/home/user/git/systemd
  $ export RKT_STAGE1_SYSTEMD_VER=HEAD
  $ ./build

This should help developers to test newer systemd versions.

The patches in stage1/rootfs/usr_from_src/patches/ are versioned: the
subdirectory used is defined by $RKT_STAGE1_SYSTEMD_VER. If "HEAD" is
used, the master patchset will be selected.
2015-04-28 17:24:52 +02:00
Eugene Yakubovich 89558960a5 Merge pull request #827 from eyakubovich/cni-intg
CNI integration
2015-04-27 15:03:10 -07:00
Eugene Yakubovich 7abd8f3b84 net: switch to using CNI plugins 2015-04-27 14:43:25 -07:00
Eugene Yakubovich e1ec644fee net: vendoring cni 2015-04-27 14:43:25 -07:00
Vito Caputo f445d37892 rkt/enter: use pod.getPID() to get container's pid race-free
- Fixup pod.getPID() to cover race between xToRun() and stage1 getting
  around to writing the pid file.

- Rework `rkt enter` to retrieve the pid in rkt/stage0 and supply it to
  stage1 enter.

- Rework stage1 enter to consume pid from argv instead of opening it
  itself, so as to not have to duplicate the same race coverage.

- Some stage1 enter code cleanups thrown in for good measure, particularly
  around the argv forwarding copy which started simple had become unwieldy.
2015-04-24 17:29:30 -07:00
Vito Caputo aa4183a017 stage1/enter: use pexit_if() for errno-valid conditions
Also the capitalized error messages.
2015-04-24 13:46:49 -07:00
Alban Crequy d0d2396079 diagexec: non-root apps 2015-04-24 10:47:58 +02:00
Jonathan Boulle c8a7050a88 version: bump to v0.5.4 2015-04-23 10:39:30 -07:00
Eugene Yakubovich 69d9b4c747 Merge pull request #769 from eyakubovich/def-net-routes
net: remove obsolete 169.254.169.255/32 route
2015-04-21 12:45:27 -07:00
Jonathan Boulle 19fee5b4f4 Merge pull request #754 from klizhentas/master
stage1: pass arguments for keeping lock and writing PID
2015-04-17 11:14:24 -07:00
Alexander Klizhentas 2cdcd631d0 stage1: pass lock and PID args for stage1 "src" flavor. refs coreos/rkt#753 2015-04-15 14:40:17 -07:00
Eugene Yakubovich c59e150850 net: remove obsolete 169.254.169.255/32 route 2015-04-15 10:41:37 -07:00
Eugene Yakubovich bf33546a2d net: stage1 gc will clean up networking 2015-04-14 17:03:03 -07:00
Eugene Yakubovich 98e78d5f08 stage1: add stage1 gc entrypoint
Stage1 GC entrypoint is called as part of
"rkt gc", prior to recursively removing the
pod directory. This give the stage1 to do
any necessary cleanup.
2015-04-14 14:22:57 -07:00
Eugene Yakubovich d86dc77ce8 Merge pull request #731 from eyakubovich/extra-log-lines
stage1: discard logger output if no --debug is present
2015-04-08 10:18:01 -07:00
Eugene Yakubovich 8a83cf9e87 Merge pull request #703 from eyakubovich/expose-ports
net: add option to expose ports on hosts
2015-04-07 10:50:27 -07:00
Jonathan Boulle 006e2c4b31 stage1: rename container{,_test}.go -> pod{,_test} 2015-04-06 15:21:58 -07:00
Jonathan Boulle ca3910dd21 stage1: set systemd-nspawn machine to pod UUID 2015-04-06 14:34:48 -07:00
Eugene Yakubovich e01d4f2e02 stage1: discard logger output if no --debug is present
Also cleans up log.SetOutput handling in stage0 to only
do it once in main based on --debug.

Fixes #709
2015-04-06 13:09:25 -07:00
Eugene Yakubovich dbc1f0f238 net: add option to expose ports on hosts
Ports that were defined in app manifest can be
exposed via --port=name:host-port option on cmd line.
For example, given app manifest with ports entry:
{
    "name": "http",
    "port": 80,
    "protocol": "tcp"
}

rkt run --private-net --port=http:8888 myapp.aci
will forward traffic from host's tcp port 8888 to
container's port 80.

Fixes #624
2015-04-03 17:24:02 -07:00
Jonathan Boulle a8afce77b6 version: bump to v0.5.3 2015-03-31 20:38:54 -07:00
Jonathan Boulle 79753c9b19 *: rocket -> rkt 2015-03-31 16:31:21 -07:00
Jonathan Boulle 3fd0303076 *: global containers -> pods rename 2015-03-31 15:55:06 -07:00
Jonathan Boulle 16bcfe9750 version: bump to v0.5.2 2015-03-30 23:10:05 -07:00
Jonathan Boulle 19dae09039 Merge pull request #697 from vcaputo/defaultenv
stage1/init: set minimum appc-required environment defaults
2015-03-30 19:05:18 -07:00
Vito Caputo 95d056b6aa stage1/init: set minimum appc-required environment defaults
These are currently being set to static root values, will revisit once
the spec matures in this area.

Fixes #687
2015-03-30 17:04:39 -07:00
Eugene Yakubovich ebdc1503df mdsvc: no more 169.254.196.255 address
Since the spec requires AC_METADATA_URL env var,
well known IP is no longer needed. This removes
the iptables manipulation. Instead the IP address of the
host is passed in the AC_METADATA_URL. This host IP
is the address of the host end of the default veth.
2015-03-30 16:04:56 -07:00
Jonathan Boulle d11d31d717 stage1: bump acVersion 2015-03-27 13:59:51 -07:00