Lai Jiangshan
783d711be1
Merge pull request #96 from gao-feng/init-exit
...
kill processes in container if container init exited
2016-05-17 15:08:11 +08:00
Gao feng
30b3bf772b
kill processes in container if container init exited
...
consist with docker behavior.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-05-17 11:13:20 +08:00
Lai Jiangshan
d69a74be22
Merge pull request #90 from laijs/user
...
enable the user config
2016-05-16 22:31:19 +08:00
Lai Jiangshan
908797e672
enable the user config
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-05-13 16:34:40 +08:00
Lai Jiangshan
42ba6daf6d
Merge pull request #91 from WeiZhang555/typo
...
Fix typo
2016-05-10 18:11:06 +08:00
Zhang Wei
61b2963d0d
Fix typo
...
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2016-05-10 16:36:50 +08:00
Peng Tao
c92d2d6430
Merge pull request #87 from laijs/fix-double-free
...
fix double free bug
2016-05-05 09:26:24 +08:00
Lai Jiangshan
274fa5cd84
fix double free bug
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-05-05 00:33:05 +08:00
Peng Tao
402a930af0
Merge pull request #85 from bergwolf/strdup
...
fix a few strdup memory leaks
2016-04-29 15:37:57 +08:00
Peng Tao
4475e2db1b
fix possible memory leak
...
We are overriding container->image when passed container->scsiaddr. Make
sure we also free its memory if caller also passes the image field.
Signed-off-by: Peng Tao <bergwolf@gmail.com >
2016-04-29 15:36:28 +08:00
Peng Tao
2c12120713
fix two strdup memory leak
...
Signed-off-by: Peng Tao <bergwolf@gmail.com >
2016-04-29 15:36:14 +08:00
Gao feng
84207a3f97
Merge pull request #84 from laijs/allow-container_setup_modules-failed
...
Allow container_setup_modules() failed
2016-04-29 00:43:50 -05:00
Lai Jiangshan
ab1c293818
extend the stack for hyper_container_init()
...
container_setup_modules() needs a large stack
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-27 21:46:03 +08:00
Lai Jiangshan
3fbba94a0f
ignore error of setup modules
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-27 20:22:42 +08:00
Gao feng
a9b7fed072
Merge pull request #81 from laijs/sync-time
...
sync hardware time to system time when start pod
2016-04-26 21:36:40 -05:00
Gao feng
ad196e2fe3
Merge pull request #83 from bergwolf/xfs
...
xfs needs nouuid mount option
2016-04-25 21:09:35 -05:00
Peng Tao
0c3b80fdbd
xfs needs nouuid mount option
...
Otherwise devicemapper/rbd mount might fail due to device UUID
conflicts on snapshot/clone devices.
Signed-off-by: Peng Tao <bergwolf@gmail.com >
2016-04-25 22:08:43 +08:00
Lai Jiangshan
c835eb9dfe
sync hardware time to system time when start pod
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-25 18:17:06 +08:00
Gao feng
99319c29a6
Merge pull request #79 from gao-feng/module
...
Add useful modules for hyper container
2016-04-22 20:43:38 -05:00
Gao feng
354c4f44b6
Add useful modules for hyper container
...
Add cgroup, netfilter, tun, veth and rtc driver.
Note: In some case, kernel will try to use userspace modprobe to
load module, so make sure init mntns has modprobe and modules.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-04-20 17:46:32 +08:00
Gao feng
048ee7ba27
Merge pull request #75 from gao-feng/volume
...
fix fail to populate volume created by sharefs
2016-04-19 23:37:30 -05:00
Xu Wang
9eef10d3c3
Merge pull request #78 from laijs/hyperd-address
...
update the github address of the hypercontainer
2016-04-19 00:13:50 +08:00
Lai Jiangshan
ecdc3cd339
update the github address of the hypercontainer
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-19 00:07:24 +08:00
Xu Wang
4f5b747c2b
Merge pull request #76 from bergwolf/setup_dns
...
recreate /etc/resolv.conf iff specified in pod spec
2016-04-18 18:28:25 +08:00
Peng Tao
a0bc0851d6
recreate /etc/resolv.conf iif specified in pod spec
...
hyperd would inject a default DNS server if user did not specify
it in pod spec. If we recreate resolv.conf here, the injected file
will be lost.
Signed-off-by: Peng Tao <bergwolf@gmail.com >
2016-04-17 17:37:52 +08:00
Gao feng
c68c7b76d1
fix fail to populate volume created by sharefs
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-04-16 13:46:13 +08:00
Gao feng
9590958aae
Merge pull request #70 from laijs/fix-exec-part2-update-API-between-runv-and-hyperstart
...
Fix exec part2 update api between runv and hyperstart
2016-04-07 21:03:54 -05:00
Lai Jiangshan
d3199fcc60
remove defautl setting on tty when exec
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-07 16:45:56 +08:00
Lai Jiangshan
4b45b28122
use VmProcess and hyper_parse_process() for exec
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-07 15:11:38 +08:00
Lai Jiangshan
e458707966
add hyper_parse_process() for parsing VmProcess
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-07 14:26:13 +08:00
Gao feng
3554b8ef0b
Merge pull request #69 from laijs/fix-exec-part1-cleanup
...
Fix exec part1 cleanup
2016-04-07 00:44:25 -05:00
Lai Jiangshan
48e7b27737
rename container_parse_cmd() to container_parse_argv()
...
and take struct hyper_exec as its first argument.
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-07 12:17:50 +08:00
Lai Jiangshan
1cff207e67
kill all exec rather than only container in hyper_term_all()
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-06 15:03:52 +08:00
Lai Jiangshan
aa50e5812b
move envs to struct hyper_exec
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-06 14:59:08 +08:00
Lai Jiangshan
64cbfd2a0b
move workdir to struct hyper_exec
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-06 14:19:15 +08:00
Lai Jiangshan
e487303205
rename container_free_cmd() to container_cleanup_exec()
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-06 13:56:11 +08:00
Lai Jiangshan
5a91148a37
remove unused var path
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-06 12:52:25 +08:00
Lai Jiangshan
6a56562120
require exec->seq be set, we can't handle zero seq well
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-06 12:06:04 +08:00
Lai Jiangshan
8803fa8ccb
move symlink of devices to container_setup_mount()
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-06 10:35:50 +08:00
Lai Jiangshan
90998a9b21
Merge pull request #67 from bergwolf/no-init
...
recreate docker init layer files
2016-04-05 10:56:17 +08:00
Peng Tao
5e945d507e
recreate docker init layer files
...
So that it is possible for the container creation code to skip
the init layer all together.
Signed-off-by: Peng Tao <bergwolf@gmail.com >
2016-04-05 03:09:53 +08:00
Lai Jiangshan
c1023f414f
Merge pull request #68 from gao-feng/copy
...
Copy
2016-04-04 23:58:21 +08:00
Gao feng
e737392fc4
copy: symlink sh and tar to busybox
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-04-04 23:22:42 +08:00
Gao feng
01a09c9b8f
copy: remove .oldroot prefix for busybox path
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-04-04 23:20:56 +08:00
Gao feng
a524b04f8c
copy: return error when exec copy failed
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-04-04 23:20:23 +08:00
Gao feng
2332d39620
Merge pull request #66 from laijs/setup-rootfs-before-chroot
...
Setup mounts&rootfs before chroot
2016-04-04 10:18:19 -05:00
Lai Jiangshan
bc28dfedf8
remove prefix from hyper_find_sd()
...
we always use the intial /sys, so we don't need prefix
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-03 22:47:09 +08:00
Lai Jiangshan
09c0a1b41b
remove oldroot
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-03 22:41:27 +08:00
Lai Jiangshan
b441c1bffe
do container_setup_dns() before move the rootfs
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-03 19:09:11 +08:00
Lai Jiangshan
5be2a71a84
do container_setup_volume() before move the rootfs
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-04-03 16:52:14 +08:00