StarlingX Installation/Update/Patching/Backup/Restore
Go to file
Luis Sampaio eb0440b637 Add make_patching_workspace for Debian
make_patching_workspace executes the following steps:
01 - Setup env
02 - Download binaries and sources
03 - Build all pkgs and image or rsync data from source build (build-avoidance)
04 - replace build ostree_repo by ostree_repo_source

Prereqs:
- Build pre reqs for Minikube or Kubernetes
- The script uses env variables to init the repo and build the
environment.
- Env variables to export prior to running the script:
    export PROJECT="stx-patch"
    export STX_BUILD_HOME="/localdisk/designer/${USER}/${PROJECT}"
    export MY_REPO="${STX_BUILD_HOME}/repo/cgcs-root"
    # Kubernetes:
    export STX_PLATFORM="kubernetes"
    export STX_K8S_NAMESPACE="${USER}-${PROJECT}"
    export KUBECONFIG="/build/.kube/config"
    # Minikube
    export STX_PLATFORM="minikube"

    # Manifest and branch
    export MANIFEST_URL="https://opendev.org/starlingx/manifest.git"
    export MANIFEST_BRANCH="master"
    export MANIFEST="default.xml"

Examples:
- Create workspace and build all packages
./make_patching_workspace.py \
--ostree-source /path_to_source_build/ostree_repo --build-all

- Create workspace and rsync source build data (aptly/mirrors)
source dir can be a source build home or a directory that contains
a copy of aptly and mirrors, these directories will be copied into
the patch build environment
./make_patching_workspace.py \
--ostree-source=/path_to_ostree/ostree_repo/ \
--build-avoidance --build-avoidance-dir=/path_to_source_dir

Test Plan:
Pass: create workspace using build-all
Pass: create workspace using build-avoidance
Pass: build-image on new workspace

* This commit also fixes the chmod permission for the
build_test_patches script.

Story: 2009969
Task: 45751
Signed-off-by: Luis Sampaio <luis.sampaio@windriver.com>
Change-Id: I46d9531fad88abbaef8f4b05bb6a0e16b5e54e14
2022-07-08 14:25:16 -07:00
api-ref/source Switch to newer openstackdocstheme and reno versions 2020-06-04 14:40:40 +02:00
cgcs-patch Update tostring while writing xml 2022-06-07 09:20:24 -07:00
devstack Subdirectories 'tsconfig ' relocated to repo 'stx-config' 2019-09-05 13:04:59 -04:00
doc Switch to newer openstackdocstheme and reno versions 2020-06-04 14:40:40 +02:00
enable-dev-patch Add Debian packaging for patch packages 2021-12-02 10:19:42 -06:00
extras/scripts Add setup_patch_repo.sh for patch-iso 2020-02-12 14:38:01 -05:00
patch-alarm Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
patch-boot-args StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch-scripts Update kubelet patch restarting script to check running version 2022-03-02 17:32:15 -05:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:40:40 +02:00
sw-patch Add make_patching_workspace for Debian 2022-07-08 14:25:16 -07:00
.gitignore Adding unit tests to tsconfig and clean it up a bit 2019-03-04 19:16:05 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:36 +00:00
.zuul.yaml Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:37:12 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:37:12 -07:00
README.rst StarlingX open source release updates 2018-05-31 07:37:12 -07:00
bindep.txt Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
centos_build_layer.cfg Build layering, add layer build config file 2019-10-15 12:56:44 +08:00
centos_dev_wheels.inc Config file changes to remove 'tsconfig ' after relocation to 'stx-config' 2019-09-04 15:36:52 -04:00
centos_iso_image.inc Config file changes to remove 'tsconfig ' after relocation to 'stx-config' 2019-09-04 15:36:52 -04:00
centos_pkg_dirs Patch script for restarting kubelet and isolcpus_plugin services 2022-02-28 17:06:34 -05:00
centos_stable_wheels.inc Config file changes to remove 'tsconfig ' after relocation to 'stx-config' 2019-09-04 15:36:52 -04:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:12:40 -04:00
debian_iso_image.inc Add debian_iso_image.inc file 2021-10-27 02:37:57 -04:00
debian_pkg_dirs Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
pylint.rc Enable Unused Variable 2019-07-19 10:28:00 -04:00
requirements.txt Add Zuul test foundation 2018-07-25 08:48:07 -05:00
test-requirements.txt Adding rpm-python to bindep to fix pylint 2021-12-15 09:13:13 -06:00
tox.ini make_patch utility for Debian 2022-06-14 09:48:53 -07:00

README.rst

stx-update

StarlingX Software Management