Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deploy/test.job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ spec:
requests:
cpu: "1"
memory: "512Mi"
ephemeral-storage: "12Gi"
limits:
ephemeral-storage: "15Gi"
imagePullPolicy: Always
restartPolicy: Never
backoffLimit: 0
15 changes: 13 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
}
)

Expand Down Expand Up @@ -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',
}
)

Expand Down Expand Up @@ -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()))}.")