From d756e23b4d0d8f38ef6ebc6edd9fdf3e00cb0bd3 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Thu, 23 May 2019 16:56:32 -0500 Subject: [PATCH] README: Add explanation of developing against git osc. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 0639e27d..30a628a9 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,18 @@ If working on an `osc` plugin create symlinks for the plugin and `osclib` in eit ln -sr ./osc-staging.py ./osclib ~/.osc-plugins +It can also be useful to work against a development copy of `osc` either to utilize new features or to debug/fix functionality. To do so one must place the development copy in the path to be loaded and utilize the wrapper script if working on `osc` plugins. One method to accomplish this is shown below. + + # outside of openSUSE-release-tools checkout + git clone git clone https://github.com/openSUSE/osc.git + + # inside openSUSE-release-tools checkout + # note the ending /osc which points to the osc directory within the checkout + ln -s /path/to/osc/osc ./ + + # to utilize the wrapper for working on osc plugins from osrt checkout + $(realpath ./osc)/../osc-wrapper.py --version + A containerized OBS can be started via one command. The default credentials are `Admin` and `opensuse` on [0.0.0.0:3000](http://0.0.0.0:3000). ./dist/ci/docker-compose-obs