From 3531ad8564f120030e368c939053ce77e6e9f24a Mon Sep 17 00:00:00 2001 From: Dawn India Date: Tue, 6 Aug 2024 12:54:13 +0530 Subject: [PATCH] Minor changes N/A --- Dockerfile | 2 ++ README.md | 7 +++++++ add_to_team_drive.py => py_generators/add_to_team_drive.py | 0 driveid.py => py_generators/driveid.py | 0 gen_sa_accounts.py => py_generators/gen_sa_accounts.py | 0 .../generate_drive_token.py | 0 .../generate_string_session.py | 0 requirements-cli.txt => py_generators/requirements-cli.txt | 0 8 files changed, 9 insertions(+) rename add_to_team_drive.py => py_generators/add_to_team_drive.py (100%) rename driveid.py => py_generators/driveid.py (100%) rename gen_sa_accounts.py => py_generators/gen_sa_accounts.py (100%) rename generate_drive_token.py => py_generators/generate_drive_token.py (100%) rename generate_string_session.py => py_generators/generate_string_session.py (100%) rename requirements-cli.txt => py_generators/requirements-cli.txt (100%) diff --git a/Dockerfile b/Dockerfile index f0035bb989a9..8282c2c56b93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,6 @@ RUN pip3 install --break-system-packages --no-cache-dir -r requirements.txt COPY . . +RUN rm -rf py_generators config_sample.env Dockerfile LICENSE README.md requirements.txt + CMD ["bash", "start.sh"] diff --git a/README.md b/README.md index 4c187974050a..85374133fa82 100644 --- a/README.md +++ b/README.md @@ -580,6 +580,7 @@ sudo docker logs --follow > **NOTE**: If you have created SAs in past from this script, you can also just re download the keys by running: ``` + cd py_generators python3 gen_sa_accounts.py --download-keys $PROJECTID ``` @@ -599,30 +600,35 @@ sudo docker logs --follow - List your projects ids ``` + cd py_generators python3 gen_sa_accounts.py --list-projects ``` - Enable services automatically by this command ``` + cd py_generators python3 gen_sa_accounts.py --enable-services $PROJECTID ``` - Create Sevice Accounts to current project ``` + cd py_generators python3 gen_sa_accounts.py --create-sas $PROJECTID ``` - Download Sevice Accounts as accounts folder ``` + cd py_generators python3 gen_sa_accounts.py --download-keys $PROJECTID ``` ##### 2. Create Service Accounts in New Project ``` + cd py_generators python3 gen_sa_accounts.py --quick-setup 1 --new-only ``` @@ -669,6 +675,7 @@ sudo docker logs --follow - Run: ``` + cd py_generators python3 add_to_team_drive.py -d SharedTeamDriveSrcID ``` diff --git a/add_to_team_drive.py b/py_generators/add_to_team_drive.py similarity index 100% rename from add_to_team_drive.py rename to py_generators/add_to_team_drive.py diff --git a/driveid.py b/py_generators/driveid.py similarity index 100% rename from driveid.py rename to py_generators/driveid.py diff --git a/gen_sa_accounts.py b/py_generators/gen_sa_accounts.py similarity index 100% rename from gen_sa_accounts.py rename to py_generators/gen_sa_accounts.py diff --git a/generate_drive_token.py b/py_generators/generate_drive_token.py similarity index 100% rename from generate_drive_token.py rename to py_generators/generate_drive_token.py diff --git a/generate_string_session.py b/py_generators/generate_string_session.py similarity index 100% rename from generate_string_session.py rename to py_generators/generate_string_session.py diff --git a/requirements-cli.txt b/py_generators/requirements-cli.txt similarity index 100% rename from requirements-cli.txt rename to py_generators/requirements-cli.txt