From 64ec24cd5b3b5ee8acbd3155495ae41b2f3eb471 Mon Sep 17 00:00:00 2001 From: TommyLike Date: Fri, 8 Sep 2023 08:59:28 +0800 Subject: [PATCH] Update readme for EUR key migration --- tools/migrate-pgp-local-keys/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/migrate-pgp-local-keys/README.md b/tools/migrate-pgp-local-keys/README.md index 8eb822d..9aad830 100644 --- a/tools/migrate-pgp-local-keys/README.md +++ b/tools/migrate-pgp-local-keys/README.md @@ -9,6 +9,8 @@ Get the kubeconfig and copy the whole directory by kubectl command ```shell mkdir local-store kubectl cp -c /:/var/lib/copr-keygen/gnupg ./local-store +# for example +# kubectl cp -c copr-keygen-signer fedora-copr/copr-keygen-64956467b4-pqknn:/var/lib/copr-keygen/gnupg ./local-store ``` ## Using python docker image to run the script @@ -16,18 +18,18 @@ we need to mount the pgp data folder as well as the python script folder ```shell docker pull python:3.11 # mount local_store and migrate.py folder -docker run -it --entrypoint bash -v :/app/working-dir -v :/app/data python:3.11 +docker run -it --entrypoint bash -v :/app/working-dir -v ./local-store:/app/data python:3.11 ``` ## Install requirements(in Docker) ```shell cd /app/working-dir -pip install -r requirments.txt +pip install -r requirements.txt `` ``` ## Migrate Keys(in Docker) -Generate the signatrust API token, user email and use it in the following command +Generate the signatrust API token, user email and use it in the following command, the email address and api token should be matched. ```shell python migrate.py https://signatrust.test.osinfra.cn/ /app/data ====================== processing 1 key: mywaaagh_admin_copr ==================== -- Gitee