-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
7fa66b8
to
5d98157
Compare
base/Dockerfile
Outdated
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 |
There was a problem hiding this comment.
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.
base/test-info-rhel.bats
Outdated
@@ -2,8 +2,19 @@ | |||
|
|||
load "assert" | |||
|
|||
vendor="rhel" | |||
if grep <"/etc/redhat-release" "Fedora" 2>/dev/null >/dev/null; then |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
5d98157
to
899590c
Compare
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
899590c
to
b75e80b
Compare
rebased |
follow-up #52 with oracle linux support that was missing
second commit add tests against currently supported rhel distribs (just xx-info test atm)