mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Update DEVELOPMENT.md
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
845701447c
commit
229f9c3730
@ -19,8 +19,7 @@ where `TARGET` is a make target that is valid for each of the sub-components.
|
|||||||
|
|
||||||
These include:
|
These include:
|
||||||
* `ubuntu18.04-amd64`
|
* `ubuntu18.04-amd64`
|
||||||
* `docker-all`
|
* `centos8-x86_64`
|
||||||
with the later generating for all supported distribution and platform combinations.
|
|
||||||
|
|
||||||
The packages are generated in the `dist` folder.
|
The packages are generated in the `dist` folder.
|
||||||
|
|
||||||
@ -33,62 +32,14 @@ environment variables.
|
|||||||
|
|
||||||
## Testing packages locally
|
## Testing packages locally
|
||||||
|
|
||||||
### Ubuntu
|
The [test/release](./test/release/) folder contains documentation on how the installation of local or staged packages can be tested.
|
||||||
|
|
||||||
Launch a docker container:
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run --rm -it \
|
|
||||||
-v $(pwd):/work \
|
|
||||||
-v $(pwd)/dist/ubuntu18.04/amd64:/local-repository \
|
|
||||||
-w /work \
|
|
||||||
ubuntu:18.04
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
```
|
## Releasing
|
||||||
apt-get update && apt-get install -y apt-utils
|
|
||||||
```
|
|
||||||
|
|
||||||
|
A utility script [`scripts/release.sh`](./scripts/release.sh) is provided to build
|
||||||
|
packages required for release. If run without arguments, all supported distribution-architecture combinations are built. A specific distribution-architecture pair can also be provided
|
||||||
|
```sh
|
||||||
|
./scripts/release.sh ubuntu18.04-amd64
|
||||||
```
|
```
|
||||||
echo "deb [trusted=yes] file:/local-repository/ ./" > /etc/apt/sources.list.d/local.list
|
where the `amd64` builds for `ubuntu18.04` are provided as an example.
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
cd /local-repository && apt-ftparchive packages . > Packages
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
apt-get update
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Centos
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run --rm -it \
|
|
||||||
-v $(pwd):/work \
|
|
||||||
-v $(pwd)/dist/centos8/x86_64:/local-repository \
|
|
||||||
-w /work \
|
|
||||||
centos:8
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
yum install -y createrepo
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
createrepo /local-repository
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
cat >/etc/yum.repos.d/local.repo <<EOL
|
|
||||||
[local]
|
|
||||||
name=NVIDIA Container Toolkit Local Packages
|
|
||||||
baseurl=file:///local-repository
|
|
||||||
enabled=1
|
|
||||||
gpgcheck=0
|
|
||||||
protect=1
|
|
||||||
EOL
|
|
||||||
```
|
|
||||||
|
Loading…
Reference in New Issue
Block a user