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

Support RHEL hosts by creating containers based on UBI #667

Merged
merged 7 commits into from
Jan 12, 2021

Conversation

debarshiray
Copy link
Member

This is based on #658

It splits up the commits a bit, contains some fix-ups, but most importantly skips some parts of the container & image tracking backend to side-step issues like the one caused by the use of latest tags. We can introduce the rest of the new backend later once we have solved all those issues.

A subsequent commit will add support for toolbox containers of
operating system distributions that aren't Fedora. That will require a
similar function that resolves a short image name to a fully qualified
one, but by iterating through a list of supported images instead of
using the image's RepoTags.

containers#667
debarshiray pushed a commit to debarshiray/toolbox that referenced this pull request Jan 12, 2021
This shouldn't have any user-visible effect. However, it parametrizes
various code paths that were currently hard-coded to represent Fedora.
Subsequent commits will build upon this to support toolbox containers
of operating system distributions that aren't Fedora.

A map of supported operating system distributions has been introduced
that lists out the necessary bits of metadata needed to work with them.
In the future, it should just be a matter of adding new entries to this
map to add support for distributions that aren't Fedora.

containers#667
debarshiray pushed a commit to debarshiray/toolbox that referenced this pull request Jan 12, 2021
This is meant to allow the user to create toolbox containers of
operating system distributions that are different from that of the
host and isn't Fedora.

containers#667
debarshiray pushed a commit to debarshiray/toolbox that referenced this pull request Jan 12, 2021
@debarshiray debarshiray force-pushed the wip/rishi/ubi-staging branch from 39c26dd to ae74d49 Compare January 12, 2021 00:07
@softwarefactory-project-zuul
Copy link

Build succeeded.

debarshiray added a commit to debarshiray/toolbox that referenced this pull request Jan 12, 2021
Fedora's /etc/bashrc sets the PROMPT_COMMAND environment variable to
__vte_prompt_command when running inside a VteTerminal. This becomes a
problem if the __vte_prompt_command shell function is missing because
/etc/profile.d/vte.sh itself is absent [1], which is the case with the
Red Hat Universal Base Image.

This tricks the code in /etc/bashrc into not doing that.

[1] https://pagure.io/setup/pull-request/23

containers#667
debarshiray pushed a commit to debarshiray/toolbox that referenced this pull request Jan 12, 2021
@debarshiray debarshiray force-pushed the wip/rishi/ubi-staging branch from ae74d49 to a7e633d Compare January 12, 2021 01:33
HarryMichal and others added 4 commits January 12, 2021 02:37
This shouldn't have any user-visible effect. However, it parametrizes
various code paths that were currently hard-coded to represent Fedora.
Subsequent commits will build upon this to support toolbox containers
of operating system distributions that aren't Fedora.

A map of supported operating system distributions has been introduced
that lists out the necessary bits of metadata needed to work with them.
In the future, it should just be a matter of adding new entries to this
map to add support for distributions that aren't Fedora.

containers#667
This is meant to allow the user to create toolbox containers of
operating system distributions that are different from that of the
host and isn't Fedora.

containers#667
Fedora's /etc/bashrc sets the PROMPT_COMMAND environment variable to
__vte_prompt_command when running inside a VteTerminal. This becomes a
problem if the __vte_prompt_command shell function is missing because
/etc/profile.d/vte.sh itself is absent [1], which is the case with the
Red Hat Universal Base Image.

This tricks the code in /etc/bashrc into not doing that.

[1] https://pagure.io/setup/pull-request/23

containers#667
@debarshiray debarshiray force-pushed the wip/rishi/ubi-staging branch from a7e633d to 21d25f8 Compare January 12, 2021 01:38
@softwarefactory-project-zuul
Copy link

Build succeeded.

@debarshiray debarshiray merged commit 21d25f8 into containers:master Jan 12, 2021
@debarshiray debarshiray deleted the wip/rishi/ubi-staging branch January 12, 2021 02:08
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.

2 participants