diff --git a/deploy/test.job.yaml b/deploy/test.job.yaml index 730ac5c..ff41b86 100644 --- a/deploy/test.job.yaml +++ b/deploy/test.job.yaml @@ -102,6 +102,9 @@ spec: requests: cpu: "1" memory: "512Mi" + ephemeral-storage: "12Gi" + limits: + ephemeral-storage: "15Gi" imagePullPolicy: Always restartPolicy: Never backoffLimit: 0 diff --git a/main.py b/main.py index c09024b..a7fee89 100644 --- a/main.py +++ b/main.py @@ -70,7 +70,10 @@ def podman_create(tags): unique_id = str(uuid.uuid4()) dockerfile = ( "FROM quay.io/jitesoft/alpine\n" - "RUN echo %s > /tmp/key.txt" + "RUN echo %s > /tmp/key.txt\n" + "RUN dd if=/dev/zero of=/tmp/file1 bs=1M count=20\n" + "RUN dd if=/dev/zero of=/tmp/file2 bs=1M count=20\n" + "RUN dd if=/dev/zero of=/tmp/file3 bs=1M count=10" ) % unique_id # Call Podman to build the Dockerfile @@ -409,6 +412,10 @@ def create_test_push_job(namespace, quay_host, username, password, concurrency, requests={ 'cpu': '1', 'memory': '512Mi', + 'ephemeral-storage': '12Gi', + }, + limits={ + 'ephemeral-storage': '15Gi', } ) @@ -482,6 +489,10 @@ def create_test_pull_job(namespace, quay_host, username, password, concurrency, requests={ 'cpu': '1', 'memory': '512Mi', + 'ephemeral-storage': '12Gi', + }, + limits={ + 'ephemeral-storage': '15Gi', } ) @@ -778,4 +789,4 @@ def batch_process(users_chunk, batch_args): end_time = datetime.datetime.utcnow() logging.info(f"Ending cleanup phase (UTC): {end_time.strftime('%Y-%m-%d %H:%M:%S.%f')}") elapsed_time = end_time - start_time - logging.info(f"The cleanup phase took {str(datetime.timedelta(seconds=elapsed_time.total_seconds()))}.") + logging.info(f"The cleanup phase took {str(datetime.timedelta(seconds=elapsed_time.total_seconds()))}.") \ No newline at end of file