bugfix: remove Healthcheck field when build from scratch

Signed-off-by: DCCooper <1866858@gmail.com>
This commit is contained in:
DCCooper 2021-02-09 19:50:23 +08:00
parent 1828cadbc1
commit 8993fb26f9
5 changed files with 36 additions and 3 deletions

View File

@ -1 +1 @@
0.9.5-3
0.9.5-4

View File

@ -1 +1 @@
71551b69a7cea32697271820c855ae28bab4c25e
384a5e76fd695ddef1237488f634c29337c0440c

View File

@ -2,7 +2,7 @@
Name: isula-build
Version: 0.9.5
Release: 3
Release: 4
Summary: A tool to build container images
License: Mulan PSL V2
URL: https://gitee.com/openeuler/isula-build
@ -85,6 +85,12 @@ fi
/usr/share/bash-completion/completions/isula-build
%changelog
* Tue Feb 09 2021 DCCooper <1866858@gmail.com> - 0.9.5-4
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC:remove Healthcheck field when build from scratch
* Tue Feb 09 2021 DCCooper <1866858@gmail.com> - 0.9.5-3
- Type:enhancement
- CVE:NA

View File

@ -0,0 +1,26 @@
From dd2d69a851cba9619196166b78564093861ce46b Mon Sep 17 00:00:00 2001
From: DCCooper <1866858@gmail.com>
Date: Tue, 9 Feb 2021 19:11:05 +0800
Subject: [PATCH] bugfix: remove Healthcheck field when build from scratch
Signed-off-by: DCCooper <1866858@gmail.com>
---
image/image.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/image/image.go b/image/image.go
index b5b2264..bbbc7b9 100644
--- a/image/image.go
+++ b/image/image.go
@@ -289,7 +289,7 @@ func createScratchV2Image() *docker.Image {
ExposedPorts: make(docker.PortSet),
Env: make([]string, 0, 0),
Cmd: make([]string, 0, 0),
- Healthcheck: &docker.HealthConfig{},
+ Healthcheck: nil,
Volumes: make(map[string]struct{}),
Entrypoint: make([]string, 0, 0),
OnBuild: make([]string, 0, 0),
--
1.8.3.1

View File

@ -3,3 +3,4 @@ patch/0030-xattr-support-ima-and-evm.patch
patch/0033-isula-build-remove-docker-releated-path-for-authenti.patch
patch/0037-isula-build-fix-goroutine-leak-problem.patch
patch/0038-vendor-update-images-display.patch
patch/0039-bugfix-remove-Healthcheck-field-when-build-from-scra.patch