From 229f9c3730d53beca7b723f6f99186da966688f6 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 11 Oct 2021 14:09:53 +0200 Subject: [PATCH] Update DEVELOPMENT.md Signed-off-by: Evan Lezar --- DEVELOPMENT.md | 65 +++++++------------------------------------------- 1 file changed, 8 insertions(+), 57 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index b78c492e..33d48894 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -19,8 +19,7 @@ where `TARGET` is a make target that is valid for each of the sub-components. These include: * `ubuntu18.04-amd64` -* `docker-all` -with the later generating for all supported distribution and platform combinations. +* `centos8-x86_64` The packages are generated in the `dist` folder. @@ -33,62 +32,14 @@ environment variables. ## Testing packages locally -### Ubuntu - -Launch a docker container: - -``` -docker run --rm -it \ - -v $(pwd):/work \ - -v $(pwd)/dist/ubuntu18.04/amd64:/local-repository \ - -w /work \ - ubuntu:18.04 -``` +The [test/release](./test/release/) folder contains documentation on how the installation of local or staged packages can be tested. -``` -apt-get update && apt-get install -y apt-utils -``` +## Releasing +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 -``` - -``` -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 <