Commit Graph

64 Commits

Author SHA1 Message Date
Yan Ka, Chiu
72d21ea33d refactor 2023-07-21 21:41:25 -04:00
Yan Ka, Chiu
0d9bf93a10 refactor some container lifecycle logic 2023-07-20 13:44:41 -04:00
Yan Ka, Chiu
0bab596dc0 layer_manager is not in the tree yet 2023-07-19 03:36:17 -04:00
Yan Ka, Chiu
74beaed67a add the concept of 'netgroup', containers inside a netgroup cause the generation of /etc/hosts which contains all the hosts in all the groups the container belongs to 2023-07-18 14:29:58 -04:00
Yan Ka, Chiu
b8c7dea630 allow setting up os version strings 2023-07-18 06:59:44 -04:00
Yan Ka, Chiu
1fe329ab68 allow exec to run process that requires tty 2023-07-18 04:59:22 -04:00
Yan Ka, Chiu
5472681b1a use shell (sh -c) directly for RUN commands 2023-07-15 17:31:50 -04:00
Yan Ka, Chiu
9dd93fadc4 allow to run ad-hoc command as entry point 2023-07-15 17:20:36 -04:00
Yan Ka, Chiu
49a0658dd0 add a empty predefined image for easy testing and building 2023-07-15 17:19:07 -04:00
Yan Ka, Chiu
1f02f47127 add option to not touch any resolv.conf 2023-07-15 17:18:23 -04:00
Yan Ka, Chiu
d5555d2ee5 This commit contains multiple pretty big changes:
- Adjust how ZFS image datasets created
- Preliminary support for build layers caching by creating cache directory that
  preserves the state of the files that may change generated layers
- Implement remove image and purge ipc calls
2023-07-15 14:33:58 -04:00
Yan Ka, Chiu
ebbf75d1ab add missed file 2023-07-14 14:52:22 -04:00
Yan Ka, Chiu
e1124b0ec9 bug fixes 2023-07-14 14:41:56 -04:00
Yan Ka, Chiu
44024994a0 Add support routines to create image manifest list for multi-arch images 2023-07-14 06:36:30 -04:00
Yan Ka, Chiu
0eb1fa127b stop being nice to ZFS datasets 2023-07-14 02:12:13 -04:00
Yan Ka, Chiu
2fb0b5e23d clippy fixes 2023-07-14 02:07:31 -04:00
Yan Ka, Chiu
ba9f7aa5be Allow setting environment variables for entry point in Jailfile 2023-07-14 02:07:18 -04:00
Yan Ka, Chiu
8c8a476e3b Improve Jailfile parsing logic 2023-07-14 02:06:39 -04:00
Yan Ka, Chiu
975d077cd1 Make destination of a mount be referenced by the name of the mount, check if all required volumes are mounted before instantiation 2023-07-14 02:03:42 -04:00
Yan Ka, Chiu
7c52ff049c Make compressing with zstd by default when commiting a layer 2023-07-14 02:02:09 -04:00
Yan Ka, Chiu
38018d7332 fix a bug where the } token are not consumed during parsing 2023-07-14 02:00:44 -04:00
Yan Ka, Chiu
c2455376f1 root user should always able to rwx and mount 2023-07-14 02:00:08 -04:00
Yan Ka, Chiu
7e45ca7916 Properly handle different output mode 2023-07-13 09:06:32 -04:00
Yan Ka, Chiu
9cb55b78e5 add support to ENTRYPOINT, CMD, WORKDIR directives 2023-07-13 07:41:09 -04:00
Yan Ka, Chiu
ffdff8a00a Typo fix, should have close and dup stderr instead of stdout 2023-07-13 07:39:36 -04:00
Yan Ka, Chiu
64a34cb444 cleanup and bug fix for 'commit to file' feature 2023-07-12 13:13:36 -04:00
Yan Ka, Chiu
7b04267d5b add missing volume directive fiel 2023-07-12 12:24:50 -04:00
Yan Ka, Chiu
bec2128881 preliminary support for 'committing' to a file 2023-07-12 12:23:56 -04:00
Yan Ka, Chiu
c3f091b885 Allow additional layers (tar archive) to be added before running a container 2023-07-12 10:16:01 -04:00
Yan Ka, Chiu
23fc7e958f add versioning to our image format 2023-07-12 09:20:23 -04:00
Yan Ka, Chiu
d9f3dd6948 minor image format refactoring 2023-07-12 03:07:24 -04:00
Yan Ka, Chiu
b26696cea2 finally handling error on image pull 2023-07-12 00:10:42 -04:00
Yan Ka, Chiu
06799b1346 cleanup 2023-07-11 23:18:37 -04:00
Yan Ka, Chiu
be1603d488 add ALLOW, NOINIT, NODEINIT, SYSVIPC, MOUNT directives 2023-07-11 13:16:38 -04:00
Yan Ka, Chiu
60738c5555 add COPY directive 2023-07-11 10:51:10 -04:00
Yan Ka, Chiu
ec36863235 preliminary RUN and FROM directive support, without network 2023-07-09 18:47:05 -04:00
Yan Ka, Chiu
9a01722657 add run-main client bits 2023-07-09 14:18:38 -04:00
Yan Ka, Chiu
369ad8c87d clippy bits 2023-07-09 13:23:32 -04:00
Yan Ka, Chiu
39a856b24b add missing files 2023-07-09 09:23:48 -04:00
Yan Ka, Chiu
390e42c7dc Fix a bug when pulling from the default registry can cause a panic due to the lack of hostname 2023-07-09 09:23:21 -04:00
Yan Ka, Chiu
3d97226a6a add exec command 2023-07-09 09:20:56 -04:00
Yan Ka, Chiu
cd1f646e4d fix testcase 2023-07-09 09:05:56 -04:00
Yan Ka, Chiu
40ec3c6a53 clippy bits 2023-07-09 08:44:26 -04:00
Yan Ka, Chiu
121b8125a3 fix testcases 2023-07-09 08:43:00 -04:00
Yan Ka, Chiu
2d0998463d add more image modification options 2023-07-06 13:18:46 +08:00
Yan Ka, Chiu
0f95f1bce8 allow changing the default ifconfig in compile time 2023-07-06 10:18:30 +08:00
Yan Ka, Chiu
b48f14b122 clean up 2023-07-06 01:24:56 +08:00
Yan Ka, Chiu
1d4dbad7d0 add a new patch action to modify image config and redirect action for better port redirect insight 2023-07-06 01:23:39 +08:00
Yan Ka, Chiu
c3c1845bb2 allow container to be referenced by jid 2023-07-06 01:22:46 +08:00
Yan Ka, Chiu
e1c445582b allow container to be reference by jid 2023-07-06 01:21:22 +08:00