79108927

Date: 2024-10-21 07:15:05
Score: 1
Natty:
Report link

I agree with @Vivek Vaibhav Shandilya's comment.

CMD ["python3.9", "/root/framework/execute_results_testing.py", "&&", "tail", "-f", "/dev/null"]

Start .sh:

echo  "Executing Python script..."
python3.9  /root/framework/execute_results_testing.py  
echo  "Python script finished. Keeping container alive..."
tail  -f  /dev/null

Local logs:

enter image description here

After making the above changes, my container successfully stays alive without restarting.

Logs from the Azure Container Instance:

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Vivek
  • User mentioned (0): @kodekloud
  • Low reputation (0.5):
Posted by: Sirra Sneha