Skip to content

Add instructions for running a openQA/tools dev environment #6590

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented Jul 15, 2025

@perlpunk perlpunk force-pushed the devcontainer branch 4 times, most recently from f7318e9 to ed94d79 Compare July 15, 2025 20:33
Comment on lines 1 to 23
# Setup a Development Enviroment for openQA and related Tools

These examples use `podman` and
[`distrobox`](https://en.opensuse.org/Distrobox). You can use similar tools
like `docker`, `toolbox` etc. to achieve the same.

You will run two containers:
* A separate postgres container (so you don't have to deal with the database
when updating your dev container)
* The openQA environment in a openSUSE Leap or Tumbleweed container, which
both can use the same postgres container.
In this example we will be settting up and using the Leap container.
Copy link
Member

Choose a reason for hiding this comment

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

I suggest to link to http://open.qa/docs/#contributing if not rather move the documentation there. Right now unfortunately it seems this documentation is a complete alternative to http://open.qa/docs/#development-setup confusing users which instructions they should follow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's why it's a draft

@perlpunk perlpunk force-pushed the devcontainer branch 3 times, most recently from 443aa23 to 6bc5a74 Compare July 16, 2025 14:18
@perlpunk
Copy link
Contributor Author

We could of course also leave out the Dockerfiles and leave that as a suggestion for those who want it.
Over time it becomes annoying that one has to reinstall things manually when wanting to use the latest leap or tumbleweed container, so I have this https://github.com/perlpunk/mytoolboxes for my own development containers.
The instructions could just mention the zypper addrepo and zypper install` commands for leap/tumbleweed instead.

Copy link

Great PR! Please pay attention to the following items before merging:

Files matching docs/*.asciidoc:

This is an automatically generated QA checklist based on modified files.

@perlpunk perlpunk force-pushed the devcontainer branch 2 times, most recently from 7d261ae to 7cd6d3c Compare July 16, 2025 21:09
@perlpunk
Copy link
Contributor Author

perlpunk commented Jul 16, 2025

I moved everything to docs/Contributing.asciidoc (and removed the Dockerfiles and scripts)

os-autoinst-devel openQA-devel \
os-autoinst-scripts-deps \
os-autoinst-scripts-deps-devel \
openssh-clients \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

openssh-clients is necessary to do git clone git@...

Should we add it to os-autoinst and openQA requirements?

Copy link
Contributor

@b10n1k b10n1k left a comment

Choose a reason for hiding this comment

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

There is also a https://open.qa/docs/#containerizedsetup
I am not sure where the === Quick container setup should be placed. Personally:

  • rename it to Development setup in containers or something like that.
  • I would place it between Dependencies and the next Conducting tests. At least in the structure which the document is now. The reason is that you need a setup before even look to the next instructions like Conducting tests

Comment on lines +186 to +187
For the lazy, check out the <<Contributing.asciidoc#quick-container-setup,Quick
container setup>> with instructions you can mostly copy & paste.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the very first line of the Development setup and it would be more enlightening to describe the options or the differences from other sections. Something like

In order to contribute, your development environment needs the following steps [blabla].. In order to setup a containerized env follow these instructions....[]

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