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

docker: Add Dockerfile for isotovideo+qemu-x86 #1567

Conversation

okurz
Copy link
Member

@okurz okurz commented Nov 15, 2020

I had
https://build.opensuse.org/package/view_file/home:okurz:container/isotovideo/Dockerfile
since about a year. This commit pushes that upstream to os-autoinst and
adapts to work in more general CI pipelines in a limited way, e.g. also
github actions where no nested virt and hence no KVM is available. With
this commit we can publish the container and image as an easier entry
point for users and also to be used within CI pipelines of other
projects.

The same Dockerfile configuration was used
in
https://build.opensuse.org/package/view_file/home:okurz:container/isotovideo-qemu-x86/Dockerfile?expand=1
which in turn was used in
os-autoinst/os-autoinst-distri-example#4
to show how isotovideo can be run as part of a CI pipeline using github
actions.

Related progress issue: https://progress.opensuse.org/issues/77905

@okurz okurz marked this pull request as draft November 15, 2020 15:48
@okurz

This comment has been minimized.

@okurz okurz force-pushed the feature/ci_standalone_isotovideo_only_container_poo77905 branch from 14fe013 to 83387ca Compare November 15, 2020 20:02
@okurz okurz changed the title docker: Add Dockerfile for isotovideo+qemu docker: Add Dockerfile for isotovideo+qemu-x86 Nov 15, 2020
@okurz okurz marked this pull request as ready for review November 15, 2020 20:04
README.asciidoc Outdated Show resolved Hide resolved
README.asciidoc Outdated Show resolved Hide resolved
The full warning is:
section title out of sequence: expected level 2, got level 3
I had
https://build.opensuse.org/package/view_file/home:okurz:container/isotovideo/Dockerfile
since about a year. This commit pushes that upstream to os-autoinst and
adapts to work in more general CI pipelines in a limited way, e.g. also
github actions where no nested virt and hence no KVM is available. With
this commit we can publish the container and image as an easier entry
point for users and also to be used within CI pipelines of other
projects.

The same Dockerfile configuration was used
in
https://build.opensuse.org/package/view_file/home:okurz:container/isotovideo-qemu-x86/Dockerfile?expand=1
which in turn was used in
os-autoinst/os-autoinst-distri-example#4
to show how isotovideo can be run as part of a CI pipeline using github
actions.

Related progress issue: https:/progress.opensuse.org/issues/77905
@okurz okurz force-pushed the feature/ci_standalone_isotovideo_only_container_poo77905 branch from 83387ca to 5916c98 Compare November 16, 2020 12:40
@codecov
Copy link

codecov bot commented Nov 16, 2020

Codecov Report

Merging #1567 (5916c98) into master (6e66e34) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1567   +/-   ##
=======================================
  Coverage   60.40%   60.40%           
=======================================
  Files          56       56           
  Lines        6546     6544    -2     
=======================================
- Hits         3954     3953    -1     
+ Misses       2592     2591    -1     
Impacted Files Coverage Δ
isotovideo 88.42% <ø> (ø)
backend/driver.pm 93.42% <0.00%> (+1.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e66e34...5916c98. Read the comment docs.

#!BuildTag: isotovideo:qemu-x86

FROM opensuse/tumbleweed
RUN zypper -n in os-autoinst qemu-x86 qemu-tools
Copy link
Contributor

@ilausuch ilausuch Nov 26, 2020

Choose a reason for hiding this comment

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

Could you please clarify why the qemu-x86 qemu-tools packages has to be added? Is the isotovideo going to use it?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes. os-autoinst supports multiple backends. qemu is just one of them so this is why I built multiple variants in https://build.opensuse.org/project/show/home:okurz:container, e.g. isotovideo-qemu, isotovideo-qemu-kvm, isotovideo-qemu-x86, see the build tag and the filename. Do you think we can better specify that specific variant elsewhere or differently? We could add specific subpackages to https://github.com/os-autoinst/os-autoinst/blob/master/dist/rpm/os-autoinst.spec#L92 and install these.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation. Could it be possible to do it architecture independent as we did on https://github.com/os-autoinst/openQA/blob/6a2b837473d592e55b6c49e7a0a18a9d53270b59/docker/worker/Dockerfile#L12?

Copy link
Member Author

Choose a reason for hiding this comment

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

I see the current PR as ready to be merged but based on your comment I have also provided #1573 now with an alternative approach. They don't conflict and we can also change Dockerfile.qemu-x86 later if the other packages are provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, I think I'll approve both 👍

@okurz
Copy link
Member Author

okurz commented Nov 26, 2020

@Martchus can you approve?

@mergify mergify bot merged commit 7e3235f into os-autoinst:master Nov 26, 2020
@okurz okurz deleted the feature/ci_standalone_isotovideo_only_container_poo77905 branch November 26, 2020 12:44
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