From ebefe96909f64ea881044706e330bcac80c64cf2 Mon Sep 17 00:00:00 2001 From: Harshad Reddy Nalla Date: Fri, 9 Sep 2022 15:24:40 -0400 Subject: [PATCH] :books: Update development and testing details Signed-off-by: Harshad Reddy Nalla Update .env.template Co-authored-by: Max Gautier --- .env.template | 18 ++++++++++++++---- README.rst | 30 ++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/.env.template b/.env.template index e004822..416558b 100644 --- a/.env.template +++ b/.env.template @@ -1,6 +1,16 @@ -THOTH_CEPH_BUCKET= -THOTH_CEPH_BUCKET_PREFIX= +# source ceph +THOTH_DEPLOYMENT_NAME="ocp-test" + +THOTH_S3_ENDPOINT_URL="https://s3.upshift.redhat.com/ +THOTH_CEPH_BUCKET="thoth" +THOTH_CEPH_BUCKET_PREFIX="data" THOTH_CEPH_KEY_ID= THOTH_CEPH_SECRET_KEY= -THOTH_DEPLOYMENT_NAME= -THOTH_S3_ENDPOINT_URL= + +# dest ceph +THOTH_DOCUMENT_SYNC_DST="s3://thoth/test" +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= + +# Job specifics +THOTH_DOCUMENT_SYNC_CONFIGURED_SOLVERS="solver-rhel-8-py36 solver-rhel-8-py38" diff --git a/README.rst b/README.rst index 854a6f8..a1434c6 100644 --- a/README.rst +++ b/README.rst @@ -23,3 +23,33 @@ CLI to copy data to the deployment which serves data. Thus the later deployment is configured via the standard `AWS CLI configuration file `__ that should be present in ``~/.aws/config``. + + +Development and Testing +----------------------- + +The ``.env.template`` has environment variables that are required for document-sync-job execution. |br| +Create ``.env`` file out of the ``.env.template`` with adjusted environment variable values. + +.. code-block:: console + + cp .env.template .env + vim .env + +As stated above the job accepts source s3 details as env vars and destination s3 details +as aws cli conf or env vars. + +The s3 credentials can be accessed via cluster. |br| +Check the additional documentation on `thoth-application `_. |br| +Assign the credentials value to the env variable in the ``.env`` file. + +If using s3 cluster different than s3.amazonaws.com. |br| +set the ``--endpoint https://`` in the list, at this `line `_. + +For testing purpose, + Developers can use PSI test instance as source and Operate-first smaug instance as destination. |br| + There is old data available on ``prefix``: ``ocp-test``. + +.. |br| raw:: html + +