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

Use alternative method to discover containerfile #1

Open
wants to merge 2 commits into
base: rocky9-ofed
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions elements/rocky9-ofed/environment.d/01-containerfile.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# note eval to expand the result of the get function
if [[ -z "${DIB_CONTAINERFILE_DOCKERFILE-}" ]]
then
eval declare -A image_elements=($(get_image_element_array))
element_path=${image_elements["rocky9-ofed"]}
export DIB_CONTAINERFILE_DOCKERFILE=$element_path/containerfiles/rocky-9.1-ofed-5.8
path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
path="$( dirname $path)"
export DIB_CONTAINERFILE_DOCKERFILE="$path/containerfiles/rocky-9.1-ofed-5.8"
fi