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

Define single-instance container for Codespaces #5818

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

baierjan
Copy link
Member

@baierjan baierjan commented Aug 5, 2024

Reference: https://progress.opensuse.org/issues/161399

This is part 1.

@perlpunk
Copy link
Contributor

perlpunk commented Aug 5, 2024

@b10n1k
Copy link
Contributor

b10n1k commented Aug 5, 2024

Why don't you change https://github.com/os-autoinst/openQA/blob/master/container/single-instance/Dockerfile ?

it is gonna be in part 2?! :)

@baierjan
Copy link
Member Author

baierjan commented Aug 5, 2024

Why don't you change https://github.com/os-autoinst/openQA/blob/master/container/single-instance/Dockerfile ?

Not sure what exactly you mean, but that's likely against AC2 in the referenced ticket.

#!BuildTag: openqa-single-instance-codespaces:latest opensuse/openqa-single-instance-codespaces:latest opensuse/openqa-single-instance-codespaces:%PKG_VERSION% opensuse/openqa-single-instance-codespaces:%PKG_VERSION%.%RELEASE%

# hadolint ignore=DL3006
FROM openqa-single-instance
Copy link
Contributor

Choose a reason for hiding this comment

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

isnt that a Leap? I thought that it should be a TW. should we have a comment? wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is Leap right now, but it will be Tumbleweed in a near future, see #5819.

Copy link
Contributor

Choose a reason for hiding this comment

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

I just saw https://github.com/os-autoinst/openQA/pull/5819/files#diff-cd62a72c6c09ba757d9d23c56722b50b7c1b2e2da6a7a0c496c8a8e6e3ce8e9fR5. Still it would be nice to have a link to the container/single-instance/Dockerfile here?

Copy link
Contributor

@perlpunk perlpunk left a comment

Choose a reason for hiding this comment

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

I think having tar and awk in the "pure openqa-single-instance" container would be fine, but ok :)


# install Codespaces requirements
# hadolint ignore=DL3037
RUN zypper in -y awk tar && \
Copy link
Member

Choose a reason for hiding this comment

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

Why not add those to the existing container? Seems like they would be useful anyway and we wouldn't need yet another container to maintain - and I wonder where to test this? openQA-in-openQA tests or somewhere else?

Copy link
Member Author

@baierjan baierjan Aug 5, 2024

Choose a reason for hiding this comment

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

See #5818 (comment)

It violates AC2 as discussed during the estimation (yes, I would also think adding just those basic tools wouldn't hurt, but the ticket says otherwise).

I do not know if codespaces containers can be tested automatically, for manual testing I guess just start the environment should do the trick (although it is unclear to me if I can do that without changing the devcontainer definition).

Copy link
Contributor

@perlpunk perlpunk Aug 5, 2024

Choose a reason for hiding this comment

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

testing codespaces is a bit cumbersome. you would need to branch the obs project (and enable publishing) and then in your github fork in the devcontainer point to the container from your fork.

Copy link
Contributor

Choose a reason for hiding this comment

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

regarding awk and tar - The downside of having two containers is that it makes it even harder to test any changes, so I personally would vote against AC2.

@mergify mergify bot merged commit 40fce5a into master Aug 5, 2024
47 checks passed
@mergify mergify bot deleted the containers_1 branch August 5, 2024 15:18
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.

5 participants