Add Dockerfiles and update package dependencies

Introduced Dockerfiles for logistics and frontend applications to streamline development and deployment. Updated package dependencies in the frontend to newer versions for improved stability and compatibility.
This commit is contained in:
GotthardG
2025-03-14 13:47:54 +01:00
parent 2f23533b2d
commit db6164ac3f
7 changed files with 151 additions and 59 deletions

View File

@ -3,8 +3,8 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-03-11T15:04:51.407218Z",
"start_time": "2025-03-11T15:04:51.403058Z"
"end_time": "2025-03-14T12:34:36.688448Z",
"start_time": "2025-03-14T12:34:36.274011Z"
}
},
"cell_type": "code",
@ -46,7 +46,7 @@
]
}
],
"execution_count": 48
"execution_count": 1
},
{
"metadata": {},
@ -486,8 +486,8 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-03-07T20:51:14.203996Z",
"start_time": "2025-03-07T20:51:14.134135Z"
"end_time": "2025-03-14T12:37:36.649779Z",
"start_time": "2025-03-14T12:37:36.597340Z"
}
},
"cell_type": "code",
@ -499,14 +499,14 @@
"import requests\n",
"\n",
"# List of file paths to the images you want to upload\n",
"file_paths = [\n",
" \"backend/tests/sample_image/0_200.jpg\",\n",
" \"backend/tests/sample_image/90_200.jpg\",\n",
" \"backend/tests/sample_image/0_700.jpg\",\n",
" \"backend/tests/sample_image/90_700.jpg\",\n",
"]\n",
"#file_paths = [\n",
"# \"backend/tests/sample_image/0_200.jpg\",\n",
"# \"backend/tests/sample_image/90_200.jpg\",\n",
"# \"backend/tests/sample_image/0_700.jpg\",\n",
"# \"backend/tests/sample_image/90_700.jpg\",\n",
"#]\n",
"\n",
"#file_paths = [\"backend/tests/sample_image/mount.jpeg.jpg\"]\n",
"file_paths = [\"backend/tests/sample_image/mount.jpeg.jpg\"]\n",
"\n",
"\n",
"# Sample ID (ensure this exists on your backend)\n",
@ -551,40 +551,22 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Uploading 0_200.jpg...\n",
"API Response for 0_200.jpg:\n",
"200\n",
"{'pgroup': 'p20003', 'sample_id': 299, 'sample_event_id': 572, 'filepath': 'images/p20003/2025-03-07/Dewar Five/PKK007/16/Mounting_2025-03-06_14-31-00/0_200.jpg', 'status': 'active', 'comment': None, 'id': 2}\n",
"Uploading 90_200.jpg...\n",
"API Response for 90_200.jpg:\n",
"200\n",
"{'pgroup': 'p20003', 'sample_id': 299, 'sample_event_id': 572, 'filepath': 'images/p20003/2025-03-07/Dewar Five/PKK007/16/Mounting_2025-03-06_14-31-00/90_200.jpg', 'status': 'active', 'comment': None, 'id': 3}\n",
"Uploading 0_700.jpg...\n",
"API Response for 0_700.jpg:\n",
"200\n",
"{'pgroup': 'p20003', 'sample_id': 299, 'sample_event_id': 572, 'filepath': 'images/p20003/2025-03-07/Dewar Five/PKK007/16/Mounting_2025-03-06_14-31-00/0_700.jpg', 'status': 'active', 'comment': None, 'id': 4}\n",
"Uploading 90_700.jpg...\n",
"API Response for 90_700.jpg:\n",
"200\n",
"{'pgroup': 'p20003', 'sample_id': 299, 'sample_event_id': 572, 'filepath': 'images/p20003/2025-03-07/Dewar Five/PKK007/16/Mounting_2025-03-06_14-31-00/90_700.jpg', 'status': 'active', 'comment': None, 'id': 5}\n"
"Uploading mount.jpeg.jpg...\n",
"API Response for mount.jpeg.jpg:\n",
"404\n",
"{'detail': 'Sample not found'}\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings\n",
" warnings.warn(\n",
"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings\n",
" warnings.warn(\n",
"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings\n",
" warnings.warn(\n",
"/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings\n",
" warnings.warn(\n"
]
}
],
"execution_count": 47
"execution_count": 2
},
{
"metadata": {},