File tree Expand file tree Collapse file tree 3 files changed +30
-6
lines changed
test/release/docker/ubuntu18.04 Expand file tree Collapse file tree 3 files changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ RUN fpm -s empty \
4040
4141
4242ARG WORKFLOW=nvidia-docker
43- ARG TEST_REPO=nvidia.github.io
4443RUN curl -s -L https://nvidia.github.io/${WORKFLOW}/gpgkey | apt-key add - \
4544 && curl -s -L https://nvidia.github.io/${WORKFLOW}/ubuntu18.04/nvidia-docker.list | tee /etc/apt/sources.list.d/nvidia-docker.list \
4645 && apt-get update
4746
4847COPY entrypoint.sh /
48+ COPY install_repo.sh /
4949
5050ENTRYPOINT [ "/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -24,12 +24,11 @@ if [[ -d ${LOCAL_REPO_DIRECTORY} ]]; then
2424 echo " Setting up local-repository"
2525 echo " deb [trusted=yes] file:/local-repository ./" > /etc/apt/sources.list.d/local.list
2626 $( cd /local-repository && apt-ftparchive packages . > Packages)
27- apt-get update
27+ elif [[ -n ${TEST_REPO} ]]; then
28+ ./install_repo.sh ${TEST_REPO}
2829else
29- echo " Setting up TEST repo: ${TEST_REPO} "
30- sed -i -e ' s#nvidia\.github\.io/libnvidia-container#${TEST_REPO}/libnvidia-container#g' /etc/apt/sources.list.d/nvidia-docker.list
31- sed -i -e ' /experimental/ s/^#//g' /etc/apt/sources.list.d/nvidia-docker.list
32- apt-get update
30+ echo " Skipping repo setup"
3331fi
32+ apt-get update
3433
3534exec bash $@
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
4+ #
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
17+ # This script is used to build the packages for the components of the NVIDIA
18+ # Container Stack. These include the nvidia-container-toolkit in this repository
19+ # as well as the components included in the third_party folder.
20+ # All required packages are generated in the specified dist folder.
21+
22+ test_repo=$1
23+ echo " Setting up TEST repo: ${test_repo} "
24+ sed -i -e " s#nvidia\.github\.io/libnvidia-container#${test_repo} /libnvidia-container#g" /etc/apt/sources.list.d/nvidia-docker.list
25+ sed -i -e ' /experimental/ s/^#//g' /etc/apt/sources.list.d/nvidia-docker.list
You can’t perform that action at this time.
0 commit comments