fix
Browse files- Dockerfile +5 -1
- docker_as_a_service/docker_as_a_service.py +5 -2
Dockerfile
CHANGED
@@ -19,4 +19,8 @@ WORKDIR /docker_as_a_service
|
|
19 |
# ENTRYPOINT [ "python3", "docker_as_a_service.py" ]
|
20 |
ENTRYPOINT ["/bin/bash", "-c"]
|
21 |
CMD ["python3 docker_as_a_service.py"]
|
22 |
-
# CMD ["python3", "docker_as_a_service.py"]
|
|
|
|
|
|
|
|
|
|
19 |
# ENTRYPOINT [ "python3", "docker_as_a_service.py" ]
|
20 |
ENTRYPOINT ["/bin/bash", "-c"]
|
21 |
CMD ["python3 docker_as_a_service.py"]
|
22 |
+
# CMD ["python3", "docker_as_a_service.py"]
|
23 |
+
# docker build -t testbbdown .
|
24 |
+
# docker run --rm -it -p 49000:49000 testbbdown
|
25 |
+
# docker run --rm -it -p 49000:49000 --name funnn testbbdown bash
|
26 |
+
# /root/.dotnet/tools/BBDown BV1LSSHYXEtv --audio-only --use-app-api --work-dir /tmp/tmp9lrn38wb
|
docker_as_a_service/docker_as_a_service.py
CHANGED
@@ -117,9 +117,12 @@ async def stream_generator(request_obj):
|
|
117 |
return_code = process.returncode
|
118 |
yield yield_message("(daas return code:) " + str(return_code))
|
119 |
print("(daas return code:) " + str(return_code))
|
120 |
-
|
|
|
121 |
# print(f"Successfully downloaded video {video_id}")
|
122 |
-
existing_file_after_download = glob.glob(os.path.join(download_folder, '**', '*'))
|
|
|
|
|
123 |
print("downloaded_files")
|
124 |
print(existing_file_after_download)
|
125 |
# existing_file_after_download = list(os.listdir(download_folder))
|
|
|
117 |
return_code = process.returncode
|
118 |
yield yield_message("(daas return code:) " + str(return_code))
|
119 |
print("(daas return code:) " + str(return_code))
|
120 |
+
# print('sleeping')
|
121 |
+
# time.sleep(9999)
|
122 |
# print(f"Successfully downloaded video {video_id}")
|
123 |
+
# existing_file_after_download = glob.glob(os.path.join(download_folder, '**', '*'))
|
124 |
+
existing_file_after_download = glob.glob(os.path.join(download_folder, '**'), recursive=True)
|
125 |
+
|
126 |
print("downloaded_files")
|
127 |
print(existing_file_after_download)
|
128 |
# existing_file_after_download = list(os.listdir(download_folder))
|