Skip to content

Support RHEL hosts by creating containers based on UBI - #667

Merged
debarshiray merged 7 commits into
containers:masterfrom
debarshiray:wip/rishi/ubi-staging
Jan 12, 2021
Merged

debarshiray merged 7 commits into
containers:masterfrom
debarshiray:wip/rishi/ubi-staging

Conversation

@debarshiray

Copy link
Copy Markdown
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-delete-me

Copy link
Copy Markdown

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
martymichal 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-delete-me

Copy link
Copy Markdown

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