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

xx-info: oracle linux support #53

Merged
merged 2 commits into from
Nov 18, 2021
Merged

Conversation

crazy-max
Copy link
Collaborator

follow-up #52 with oracle linux support that was missing

second commit add tests against currently supported rhel distribs (just xx-info test atm)

base/Dockerfile Outdated
Comment on lines 37 to 46
RUN <<EOT
#!/usr/bin/env bash
if ! yum install -y epel-release; then
if . /etc/os-release 2>/dev/null; then
if [ "$ID" != "fedora" ]; then
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION:0:1}.noarch.rpm
fi
fi
fi
EOT
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This instruction has been added to be able to install epel-release (extra packages) to make sure bats is available.

@@ -2,8 +2,19 @@

load "assert"

vendor="rhel"
if grep <"/etc/redhat-release" "Fedora" 2>/dev/null >/dev/null; then
Copy link
Owner

Choose a reason for hiding this comment

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

why the quotes around path

Copy link
Owner

Choose a reason for hiding this comment

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

maybe put all these inside -f /etc/redhat-release condition.

base/Dockerfile Outdated
@@ -33,6 +34,16 @@ RUN --mount=type=cache,target=/pkg-cache \
WORKDIR /work

FROM ${TEST_BASE_IMAGE} AS test-base-rhel
RUN <<EOT
#!/usr/bin/env bash
Copy link
Owner

Choose a reason for hiding this comment

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

why the shebang? and no set -ex

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max
Copy link
Collaborator Author

rebased

@tonistiigi tonistiigi merged commit 5238dd4 into tonistiigi:master Nov 18, 2021
@crazy-max crazy-max deleted the oraclelinux branch November 18, 2021 07:48
@panekj panekj mentioned this pull request Feb 5, 2024
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