Commit Graph

88 Commits

Author SHA1 Message Date
dengbo 69491336f3 Revert "chore: use ll-box replace crun"
This reverts commit ccf0c8a3e8.
2024-05-09 10:33:41 +08:00
dengbo ccf0c8a3e8 chore: use ll-box replace crun
use ll-box replace crun

Log:
2024-05-06 09:30:23 +08:00
black-desk bbda931b9b feat: allow set the oci runtime via env variable
1. Introduce LINGLONG_DEFAULT_OCI_RUNTIME cmake option to set the
   default oci runtime cli used by linglong;
2. Allow override oci runtime by set env variable LINGLONG_OCI_RUNTIME.

Signed-off-by: black-desk <me@black-desk.cn>
2024-04-18 11:11:56 +08:00
black-desk 36c9d35800 build: backport to UOS v20
1. vendor more dependencies
   - docopt.cpp
   - tl-expected
2. make ocppi subproject
3. upgrade PFL.cmake

Signed-off-by: black-desk <me@black-desk.cn>
2024-04-17 20:55:14 +08:00
myml 06b20ad74b fix: ll-build build error
修复多个会导致构建失败的错误

Log:
2024-04-08 06:44:37 +00:00
black-desk 8d11b8b05a
refact: compatible with server api in another way
Signed-off-by: black-desk <me@black-desk.cn>
2024-04-03 00:09:47 +08:00
ComixHe 7c345afe47 chore: change generator sequence
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-04-02 18:10:23 +08:00
ComixHe c9be53253f refactor: move some operation to a new generator
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-04-02 17:40:21 +08:00
black-desk a50f60cd10 fix: add types for v0 API
Signed-off-by: black-desk <me@black-desk.cn>
2024-04-02 14:35:19 +08:00
black-desk 451e82c1ba
fix: correct generators
Signed-off-by: black-desk <me@black-desk.cn>
2024-04-01 20:35:40 +08:00
black-desk ee364e3007 refact: all API types use quicktype
1. Update dbus interface xml files to
   use QVariantMap as parameters and response;

2. Add api/schema/v1.yaml to generate all API types;

3. Remove qserializer.

Signed-off-by: black-desk <me@black-desk.cn>
2024-04-01 17:05:32 +08:00
dengbo 0a5cfbd4a2 feat: implement linglong path mapping function
mapping user-specified file path to linglong path(/run/host)

Log:
2024-03-25 06:00:50 +00:00
ComixHe a59668b0d0 feat: add rollback container
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-03-19 11:55:21 +08:00
ComixHe b72ecefa93 refactor(package_manager): install and upgrade
* use dbus signal to notify cli download progress
  * support cancel downloading manually
  * use eventloop instead of threadpool

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-03-15 18:00:42 +08:00
myml d7f04aa85a feat: add overlayfs mount paramenters to annotations
添加overlayfs挂载参数到容器的配置文件里
便于调试重现

Log:
2024-03-08 02:21:10 +00:00
black-desk e4d9706517
fix: add missing find_package for spdlog
Signed-off-by: black-desk <me@black-desk.cn>
2024-02-27 14:37:31 +08:00
black-desk 3903d7cfef
fix: update PFL.cmake
Signed-off-by: black-desk <me@black-desk.cn>
2024-02-22 10:56:59 +08:00
black-desk 3595a15382
chore: remove ll-service
Signed-off-by: black-desk <me@black-desk.cn>
2024-02-01 18:21:27 +08:00
black-desk e613e3fa59
chore: upgrade ocppi to 0.2.2
Signed-off-by: black-desk <me@black-desk.cn>
2024-02-01 16:54:30 +08:00
myml abf262d844 feat: Optimize source download with shallow clone
使用浅克隆方式下载源代码,避免git仓库太大的问题

Log:
2024-01-26 18:29:14 +08:00
myml 648d09d4c5 feat: Support using run and build
使用支持oci标准的crun替换ll-box

Log:
2024-01-26 13:28:33 +08:00
black-desk c4ec461bbe
refact: remove old repo config
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-26 10:19:41 +08:00
myml 1caf76fe9e clean: clean unused methods
清理未使用的方法

Log:
2023-12-21 18:25:49 +08:00
black-desk a2bbdaed25
build: add new repo config to library
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-21 17:28:42 +08:00
black-desk 295feec687
chore: sort source files in CMakeLists.txt
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-21 17:28:41 +08:00
kamiyadm e4ace08526 chore: rename layer_package.* to layer_packager.*
-

Log:
2023-12-21 16:08:14 +08:00
kamiyadm abbc19681f :feat: add some oprations for layer
add some class to manage layer.

Log:
2023-12-20 17:49:40 +08:00
black-desk 5e9277df7c build: use CTest
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
myml 9e506dd7e7 feat: rewrite QueryApps method
使用新的http client重写QueryApps方法

Log:
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 11:32:03 +08:00
myml a66ac84558
feat: use openapi generator cpp code for http api
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 09:03:59 +08:00
linxin 4c8681b5e5
refact: use libostree
Refact ostree_repo from call ostree command to use libostree.

Signed-off-by: black-desk <me@black-desk.cn>
2023-11-24 09:54:16 +08:00
linxin f0ea664a1f
refact: refact repo module error handling
rewrite util::error by utils::error

Log: rewrite error handing
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-24 09:54:14 +08:00
black-desk 85c46d0b77 chore: add ytj
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-20 13:49:02 +08:00
black-desk 309cef9ff1
refact: introduce new Reference
1. introduce new Reference to replace old Ref;
2. upgrade tl-expected to 1.1.0;
   https://github.com/TartanLlama/expected/issues/61

Signed-off-by: black-desk <me@black-desk.cn>
2023-11-16 15:43:36 +08:00
black-desk 467a6ab061 chore: update reuse config
It is ok to use a GPL-3.0-only code generator to produce code in a LGPL
project.
2023-11-13 01:01:23 +08:00
black-desk f441040403 refact: refactory cli and its test
1. use pImpl for error;
2. remove factory template;
3. use gmock;
4. remove command helper class.
2023-11-13 01:01:23 +08:00
linxin 6712e3fc43 feat: add ll-cli command test
add ll-cli test

Log: add test
2023-11-13 01:01:23 +08:00
linxin ae2ab9850c reface: add json output
add the type of data output by json

Log: add data output type
Issue:
2023-11-13 01:01:23 +08:00
linxin 6aed2a2b6c refact: ll-cli command parser implement
use docopt lib to replace Qt command line parser lib

Log: change command line parser implement
Issues:
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-13 01:01:23 +08:00
black-desk 0bf59b4d56 refact: use occpi
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-21 19:03:29 +08:00
black-desk f57dbf6f30 build: add ocppi
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-21 19:03:29 +08:00
black-desk 48b2af9233
fix: correct constants in configure.h.in
Configure header `configure.h.in` need CMake vars.
So we have to include this cmake module here.

Signed-off-by: black-desk <me@black-desk.cn>
2023-10-19 16:16:59 +08:00
black-desk 46ac7d7e6d
refact: remove old desktop entry code
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-13 17:47:38 +08:00
black-desk 0336a600e1
refact(utils/xdg): new DesktopEntry
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-13 17:47:36 +08:00
black-desk 9d0f2b70ec
chore: sort LINK_LIBRARIES
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-12 10:09:39 +08:00
black-desk 5645fe7003
build: manually add alias for yaml-cpp
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 22:53:13 +08:00
black-desk 7fa2bb3d6b
chore: update PFL.cmake
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 22:53:12 +08:00
black-desk 9ada065677
build: refact build process
- update cmake-format config;
- using PFL.cmake (https://github.com/black-desk/PFL.cmake);
- using CPM.cmake (https://github.com/cpm-cmake/CPM.cmake).

Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 13:35:51 +08:00
black-desk cc8465bd91
build: add tl::expected
- add tl::expected in CMakeLists.txt and debian/control;
- run wrap-and-sort.

Signed-off-by: black-desk <me@black-desk.cn>
2023-09-28 14:03:03 +08:00
black-desk 2eee362db8
feat: use journald to logging
- introduce the new utils/global module for holding functions using
  everywhere;
- add qt message handler for logging to journald;
- add -DQT_MESSAGELOGCONTEXT for enabling source location of log.

Signed-off-by: black-desk <me@black-desk.cn>
2023-09-25 14:07:31 +08:00