Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image build supports vm #201

Merged
merged 12 commits into from
May 5, 2020
Merged

image build supports vm #201

merged 12 commits into from
May 5, 2020

Conversation

jschwinger233
Copy link
Member

No description provided.

@jschwinger233
Copy link
Member Author

TLDR:

  1. engine interface: ImageBuildFromExist(ctx context.Context, ID, name string) (string, error)
  2. eru API: build option has string field from_exist

@anrs
Copy link
Contributor

anrs commented May 5, 2020

LGTM.

@@ -116,6 +117,11 @@ func (e *Engine) ImageBuild(ctx context.Context, input io.Reader, refs []string)
return resp.Body, nil
}

// ImageBuildFromExist commits image from running container
func (e *Engine) ImageBuildFromExist(ctx context.Context, ID, name string) (imageID string, err error) {
return "", types.ErrEngineNotImplemented
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

说起来 docker 是可以做 image from exist 的- -, docker save

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对, docker commit 把容器做成镜像, docker save 把镜像导出成 tar 文件

@jschwinger233
Copy link
Member Author

good to go

@CMGS CMGS merged commit e41d600 into projecteru2:master May 5, 2020
atlas-comstock pushed a commit to atlas-comstock/core that referenced this pull request May 18, 2020
* add method ImageBuildFromExist into engine interface

* add existID in build option

* refactor calcium build

* implement build from exist

* bump version 05.01

* add build option field: build_method

* move BuildOption from enginetypes into types

* fix ut

* add missing image types

* build from scm is default method

* add errorDetail message when building fails

* catch up with ut coverage rate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants