55 Commits

Author SHA1 Message Date
jingxiaolu
14dc79a977 add read lock in load/import/pull to fix GC preempts to exit subprocess
Signed-off-by: jingxiaolu <lujingxiao@huawei.com>
2022-12-07 09:44:55 +08:00
DCCooper
047ff69757 isula-build: use vendor instead specific vendor name
Signed-off-by: DCCooper <1866858@gmail.com>
2022-11-23 17:34:41 +08:00
daisicheng
bcbaf5fe3e fix the problem that the /var/lib/isula-build/storage/overlay is still existed when killing daemon 2022-11-01 23:40:03 +08:00
xingweizheng
1ba6007281 improve security compile option of isula-build binary 2022-09-14 11:07:15 +08:00
daisicheng
3f4cd34322 modify the Makefile and README document;add the constraints and limitations of the doc;fix the possible file leakage problem in util/cipher 2022-08-19 17:09:39 +08:00
lujingxiao
35a49a7a5f registries.toml could not be empty;hosts, resolv.conf, .dockerignore file could be empty 2022-07-27 09:28:41 +08:00
xingweizheng
b7dccd8256 supplement patches in series.conf 2022-07-26 14:40:00 +08:00
xingweizheng
40482f769a sync upstream patches 2022-06-15 15:42:51 +08:00
loong_C
782a151776 fix spec changelog date 2022-05-26 14:43:55 +08:00
xingweizheng
c6b137e2e4 disable go-selinux on openEuler 2022-03-16 11:36:58 +08:00
DCCooper
4874973146 isula-build: add syscall "statx" in seccomp
Signed-off-by: DCCooper <1866858@gmail.com>
2022-01-13 16:57:54 +08:00
jingxiaolu
92e5c7823b isula-build: refactor image separator
Signed-off-by: jingxiaolu <lujingxiao@huawei.com>
2021-12-31 17:46:43 +08:00
DCCooper
3706fabc10 isula-build: sync upstream patches
Signed-off-by: DCCooper <1866858@gmail.com>
2021-12-23 20:45:38 +08:00
DCCooper
e88dea05c4 isula-build: sync upstream patches
Signed-off-by: DCCooper <1866858@gmail.com>
2021-12-08 16:55:36 +08:00
DCCooper
623f21835c isula-build: bump version to 0.9.6
Signed-off-by: DCCooper <1866858@gmail.com>
(cherry picked from commit 02013af4daa311ccfb4c10b8adc9d1c3143c5952)
2021-12-06 15:10:30 +08:00
jingxiaolu
bd20a6e1c1 isula-build: add repo to local image when output is docker
Signed-off-by: jingxiaolu <lujingxiao@huawei.com>
2021-11-17 22:22:54 +08:00
DCCooper
d9fa9f3bb7 isula-build: add log info for layers processing
Signed-off-by: DCCooper <1866858@gmail.com>
2021-11-10 10:16:45 +08:00
DCCooper
f3f4360f9a isula-build: sync upstream to fix panic when using image ID to save separated image
Signed-off-by: DCCooper <1866858@gmail.com>
2021-11-04 16:53:30 +08:00
DCCooper
69a110a5d4 isula-build: sync upstream to fix loaded images cover existing images name and tag
Signed-off-by: DCCooper <1866858@gmail.com>
2021-11-03 15:17:10 +08:00
DCCooper
2cfdf996dd isula-build: sync upstream to fix inaccurate error output from client
Signed-off-by: DCCooper <1866858@gmail.com>
2021-11-03 14:45:37 +08:00
DCCooper
030edc55ba isula-build:sync upstream to fix random sequence for saving separated image tarball
Signed-off-by: DCCooper <1866858@gmail.com>
2021-11-03 14:38:01 +08:00
DCCooper
3d943142b3 isula-build:support save/load separated image
reason: 1. support save/load separated image
        2. add relative test cases and bugfixes

Signed-off-by: DCCooper <1866858@gmail.com>
2021-11-02 12:40:19 +08:00
DCCooper
36a8e66c74 isula-build:Sync patch from upstream
reason: sync patches from upstream, including
relocate export package, clean code for tests and golint

Signed-off-by: DCCooper <1866858@gmail.com>
2021-10-25 17:27:38 +08:00
DCCooper
95e1d9b62c isula-build:use pre instead of pretrans for groupadd
reason: mv groupadd from pretrans to pre to prevent install failed when
doing: `yum install -y isula-build --installroot /root/test`. This could
fail because there is no **sh** command then.
%Pretrans will run the script before any package installed, so it is not
proper to do `groupadd` in the Pretrans step.

Signed-off-by: DCCooper <1866858@gmail.com>
2021-10-14 10:20:09 +08:00
xingweizheng
d9ba09901f Sync from upstream for:
bugfix: fix for save single image with multiple tags when id first
tests:
enhance integration test in this scenario
Signed-off-by: meilier xingweizheng@huawei.com
2021-09-03 10:33:43 +08:00
jingxiaolu
16d4ded5e2 isula-build: sync for fix save multi-tags and tests update
Sync from upstream for:
- bugfix: fix save multiple tags single image failed
- tests:
  - pidofbuilder do not set when running a new bash script in new child process
  - shellcheck fix of common.sh
  - add integration tests for saving one image with multiple tags

Signed-off-by: jingxiaolu <lujingxiao@huawei.com>
2021-08-31 10:54:46 +08:00
DCCooper
c9a48f58c7 isula-build: update documents about file mode
Signed-off-by: DCCooper <1866858@gmail.com>
2021-07-26 19:08:08 +08:00
DCCooper
422afc4cfa isula-build: change isula-build file mode
reason: since isula-build client file mode is too large(0551),
we decided to remove other's permission(0550) on it.
Beside, we change the public key(isula-build.pub) file
mode to 0400(from 0444), so only the owner of the public
key can read the key.
After this commit, if the non-root user want to use command
login, logout, build with args(http_proxy, https_proxy, etc...),
they need use sudo to temporarily obtain root permission.

Signed-off-by: DCCooper <1866858@gmail.com>
2021-07-26 17:52:20 +08:00
DCCooper
08770c2029 isula-build: sync upstream patch
Signed-off-by: DCCooper <1866858@gmail.com>
2021-06-16 14:41:17 +08:00
DCCooper
b3c544dea6 isula-build: sync patches from upstream
reason: updates are showing as follow:
- fix data and run root not effective when setting configuration.toml
- enhancement on go tests
- set user's uid and gid for containers
- make isula-build client side static so that which can be run in containers environment

Signed-off-by: DCCooper <1866858@gmail.com>
2021-06-02 14:45:19 +08:00
DCCooper
950f2f8ba2 isula-build:Sync upstream patches
Signed-off-by: DCCooper <1866858@gmail.com>
2021-03-03 19:29:30 +08:00
DCCooper
6ab2f2f958 enhancement:remove empty lines when showing image list
Signed-off-by: DCCooper <1866858@gmail.com>
2021-02-10 10:59:29 +08:00
DCCooper
8993fb26f9 bugfix: remove Healthcheck field when build from scratch
Signed-off-by: DCCooper <1866858@gmail.com>
2021-02-09 19:50:23 +08:00
DCCooper
64811290f2 isula-build: remove go-md2man build require
Signed-off-by: DCCooper <1866858@gmail.com>
(cherry picked from commit bd5c977e25dca66719d225a06aa5ddd76c5e7a10)
2021-02-09 19:04:16 +08:00
leizhongkai
f7cf3d08ea isula-build: make isula-build ctr-img images display comfortably
Signed-off-by: leizhongkai <leizhongkai@huawei.com>
2021-01-29 11:12:32 +08:00
DCCooper
2342a5e3c9 isula-build: bump version to 0.9.5
Signed-off-by: DCCooper <1866858@gmail.com>
2021-01-26 15:45:32 +08:00
DCCooper
dc98b0aac2 hack:modify gen-version script and add changelog automatically
Signed-off-by: DCCooper <1866858@gmail.com>
2020-12-11 14:54:01 +08:00
Lu Jingxiao
e46a9bb5bc isula-build: change default umask of isula-builder process
Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
2020-12-11 11:29:49 +08:00
caihaomin
bc52d40edd isula-build:fix printing FROM command double times to console
Signed-off-by: caihaomin <caihaomin@huawei.com>
2020-12-08 21:53:29 +08:00
caihaomin
f4d473efd4 isula-build:fix problems found by code review
Signed-off-by: caihaomin <caihaomin@huawei.com>
2020-12-08 19:58:12 +08:00
caihaomin
53ba58d5eb isula-build:add more fuzz tests
Signed-off-by: caihaomin <caihaomin@huawei.com>
2020-12-08 19:46:41 +08:00
caihaomin
dc0ff1f10a isula-build:imporve daemon push and pull unit test
Signed-off-by: caihaomin <caihaomin@huawei.com>
2020-12-08 15:55:34 +08:00
DCCooper
fce1d7eb3e Hack: add compile flag ftrapv and enable debuginfo
Signed-off-by: DCCooper <1866858@gmail.com>
2020-11-27 17:31:40 +08:00
xiadanni
fe11e3e73f isula-build: mask /proc/pin_memory
Signed-off-by: xiadanni <xiadanni1@huawei.com>
2020-11-20 09:58:53 +08:00
DCCooper
8db70c3871 isula-build:support build Dockerfile only have FROM command
Signed-off-by: DCCooper <1866858@gmail.com>
2020-11-19 19:43:27 +08:00
DCCooper
3b80d7492e cleancode: delete patches no longer usefull
Signed-off-by: DCCooper <1866858@gmail.com>
2020-11-18 16:21:47 +08:00
DCCooper
71c5e594ed bugfix: fix unsuitable filemode for isula-build(er)
Signed-off-by: DCCooper <1866858@gmail.com>
2020-11-17 15:56:56 +08:00
DCCooper
6a3abbbc70 bugfix:chown config root path before daemon started
Signed-off-by: DCCooper <1866858@gmail.com>
2020-11-12 21:06:15 +08:00
DCCooper
0384beb883 HotFix: fix panic when user knock ctrl-c in pull/push/save command
Signed-off-by: DCCooper <1866858@gmail.com>
2020-11-10 15:05:58 +08:00
DCCooper
6cfc203e6f isula-build: bump version to 0.9.4
Signed-off-by: DCCooper <1866858@gmail.com>
2020-11-06 17:34:07 +08:00