Fixup on the worker code / imports.

This commit is contained in:
2024-09-11 12:31:27 +01:00
parent 33c87f39b0
commit bbb41681df
5 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ RUN adduser --disabled-password --gecos "" --uid 1001 runner \
WORKDIR /home/runner
COPY storage.conf containers.conf registries.conf /home/runner/.config/containers/
COPY requirements.txt export.py cleanup.py ./
COPY requirements.txt export.py cleanup.py s3_utils.py ./
USER runner
RUN sudo chown -R runner:runner /home/runner/.config \
&& python3 -m pip install --no-cache-dir --only-binary=:all: -r requirements.txt
+4
View File
@@ -1,7 +1,11 @@
#!/usr/bin/env python3
import os
import sys
import argparse
from botocore.exceptions import ClientError
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from s3_utils import get_s3_client, parse_s3_path, add_common_arguments, validate_args
def remove_directory(destination, use_role=False, role_name=None, aws_access_key_id=None, aws_secret_access_key=None, endpoint_url=None, region=None):
+3
View File
@@ -1,7 +1,10 @@
#!/usr/bin/env python3
import os
import sys
import argparse
from botocore.exceptions import ClientError
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from s3_utils import get_s3_client, parse_s3_path, add_common_arguments, validate_args
def transfer_file(source, destination, use_role=False, role_name=None, aws_access_key_id=None, aws_secret_access_key=None, endpoint_url=None, region=None):