diff --git a/arenadata/README.md b/arenadata/README.md index fff0b986..d890992c 100644 --- a/arenadata/README.md +++ b/arenadata/README.md @@ -5,18 +5,33 @@ How to build Docker image: (["readme.md"](https://github.com/arenadata/gpdb/blob 1. Download the cmake-3.20 install script from ([source](https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-x86_64.sh)). -2. Build diskquota in the Docker container. -Change and to the appropriate paths on your local machine. +2. Prepare diskquota-.tar.gz which must contains all . versions of diskquota. For each versions you need to use last tag (see `git tag`). Name of this archive must be `diskquota-.tar.gz`, where is tag for the latest version of diskquota in this archive. All `*.so` files must be at `lib/postgresql` path: + +``` +evgeniy@evgeniy-pc:~/gpdb/diskquota_bin$ tar -tvf diskquota-2.2.1_arenadata3.tar.gz +drwxrwxr-x evgeniy/evgeniy 0 2023-10-05 14:40 lib/ +drwxrwxr-x evgeniy/evgeniy 0 2023-10-05 14:41 lib/postgresql/ +-rwxr-xr-x evgeniy/evgeniy 281632 2023-10-03 13:55 lib/postgresql/diskquota.so +-rwxr-xr-x evgeniy/evgeniy 550080 2023-10-03 13:53 lib/postgresql/diskquota-2.0.so +-rwxr-xr-x evgeniy/evgeniy 619824 2023-10-03 13:51 lib/postgresql/diskquota-2.1.so +-rwxr-xr-x evgeniy/evgeniy 755664 2023-10-04 10:11 lib/postgresql/diskquota-2.2.so +``` + +This archive is needed for run upgrade tests for diskquota. This tests may be disabled (see ([commit](https://github.com/arenadata/diskquota/commit/50ed2e4e1883ec8ec4e7086b750cb28cdc5a2dc0)). + +3. Build diskquota in the Docker container. +Change and to the appropriate paths on your local machine. is the same as at step 2. If upgrade test is disabled, line with is not needed. ``` docker run --rm -it -e DISKQUOTA_OS=rhel7 \ -v /tmp/diskquota_artifacts:/home/gpadmin/diskquota_artifacts \ -v :/home/gpadmin/diskquota_src \ -v :/home/gpadmin/bin_cmake/cmake-3.20.0-linux-x86_64.sh \ + -v :/home/gpadmin/last_released_diskquota_bin/diskquota-.tar.gz \ hub.adsw.io/library/gpdb6_regress:latest diskquota_src/concourse/scripts/entry.sh build ``` -3. Run tests. +4. Run tests. Change and to the appropriate paths on your local machine. ```