2 Commits
Author SHA1 Message Date
pierre geeraert 8b68d52be0 try
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9m24s
2025-07-31 22:00:56 +01:00
pierre geeraert 8f52aca2b4 try the unbuffered 2025-07-31 21:47:13 +01:00
3 changed files with 9 additions and 5 deletions
+3 -4
View File
@@ -47,14 +47,13 @@ def handle_survey_form(request):
template_manifest['spec']['template']['spec']['containers'][0]['name'] ="stash-pornpics-dowloader-"+name template_manifest['spec']['template']['spec']['containers'][0]['name'] ="stash-pornpics-dowloader-"+name
#edit the command based on the input #edit the command based on the input
command=['bash', '/config/download.sh','--skip_searching_gallery',skip_searching_gallery, '--http_proxy', 'http://gluetun-svc.gluetun.svc:8888', '--BASE_URL', url, '--pornstars', name] command=['bash', '/config/download.sh', '--http_proxy', 'http://gluetun-svc.gluetun.svc:8888', '--BASE_URL', url, '--pornstars', name]
template_manifest['spec']['template']['spec']['containers'][0]['command']=command template_manifest['spec']['template']['spec']['containers'][0]['command']=command
#execute based on the value #execute based on the value
api_response = v1.create_namespaced_job(body=template_manifest,namespace='stash') #api_response = v1.create_namespaced_job(body=template_manifest,namespace='stash')
return HttpResponse(template_manifest)
return HttpResponse(api_response)
+4
View File
@@ -1,10 +1,14 @@
FROM python:3 FROM python:3
ENV PYTHONUNBUFFERED 1
WORKDIR /code/ WORKDIR /code/
COPY requirements.txt ./ COPY requirements.txt ./
COPY django_code ./ COPY django_code ./
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip
RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
+1
View File
@@ -8,3 +8,4 @@ ruamel.yaml
pyyaml pyyaml
django-bootstrap-v5 django-bootstrap-v5
jinja2 jinja2
watchdog