From 588480c88da7937359b1884d21b03d18a1af25d8 Mon Sep 17 00:00:00 2001 From: Leonid Fedorov Date: Tue, 12 Dec 2023 13:07:49 +0000 Subject: [PATCH] installation env helper --- .drone.jsonnet | 3 +++ docs/install_package_from_ci.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 docs/install_package_from_ci.md diff --git a/.drone.jsonnet b/.drone.jsonnet index 083c52eea..4100034d4 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -836,6 +836,9 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise') image: 'alpine/git', commands: [ "echo -e '\\e]8;;" + publish_pkg_url + '\\e\\\\' + publish_pkg_url + "\\e]8;;\\e\\\\'", + "echo 'for installation run:'", + "export OS="+result, + "export PACKAGES_URL="+packages_url, ], }, ] + diff --git a/docs/install_package_from_ci.md b/docs/install_package_from_ci.md new file mode 100644 index 000000000..bed02c2cf --- /dev/null +++ b/docs/install_package_from_ci.md @@ -0,0 +1,30 @@ +Without limitation of generality let's set we want to install packages from nightly build +https://ci.columnstore.mariadb.net/mariadb-corporation/mariadb-columnstore-engine/9294/1/11 + +First go to the build step 'publish pkg url', copy the +like https://cspkg.s3.amazonaws.com/index.html?prefix=stable-23.10/cron/9294/10.6-enterprise/amd64/centos7/ + +remove index.html?prefix= and last two pathes from url and +run +``export PACKAGES_URL=https://cspkg.s3.amazonaws.com/stable-23.10/cron/9294/10.6-enterprise`` and +run ``export OS=centos7`` + + +get the ``https://raw.githubusercontent.com/mariadb-corporation/mariadb-columnstore-engine/develop/setup-repo.sh`` +using wget or curl + +run ``bash setup-repo.sh`` + +for rocky linux run ``yum install epel-release procps`` + +then install columnstore +like +``yum install MariaDB-columnstore-engine.x86_64 MariaDB-columnstore-cmapi.x86_64`` for rockys +or +``apt install mariadb-columnstore-cmapi mariadb-plugin-columnstore` for debians`` + + + + + +