Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions tests/release/docker/centos8/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
: ${LOCAL_REPO_DIRECTORY:=/local-repository}
if [[ -d ${LOCAL_REPO_DIRECTORY} ]]; then
echo "Setting up local-repository"
createrepo /local-repository
createrepo "${LOCAL_REPO_DIRECTORY}"

cat >/etc/yum.repos.d/local.repo <<EOL
[local-repository]
name=NVIDIA Container Toolkit Local Packages
baseurl=file:///local-repository
enabled=0
baseurl=file://${LOCAL_REPO_DIRECTORY}
enabled=1
gpgcheck=0
protect=1
EOL
yum-config-manager --enable local-repository

elif [[ -n ${TEST_REPO} ]]; then
./install_repo.sh ${TEST_REPO}
else
Expand Down
7 changes: 3 additions & 4 deletions tests/release/docker/fedora35/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@
: ${LOCAL_REPO_DIRECTORY:=/local-repository}
if [[ -d ${LOCAL_REPO_DIRECTORY} ]]; then
echo "Setting up local-repository"
createrepo /local-repository
createrepo "${LOCAL_REPO_DIRECTORY}"

cat >/etc/yum.repos.d/local.repo <<EOL
[local-repository]
name=NVIDIA Container Toolkit Local Packages
baseurl=file:///local-repository
enabled=0
baseurl=file://${LOCAL_REPO_DIRECTORY}
enabled=1
gpgcheck=0
protect=1
EOL
yum-config-manager --enable local-repository
elif [[ -n ${TEST_REPO} ]]; then
./install_repo.sh ${TEST_REPO}
else
Expand Down