Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct dotnet entrypoint script to run the function host as the main process #1023

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

AlexPykavy
Copy link

@AlexPykavy AlexPykavy commented Jan 9, 2024

To ensure the signals are sent to the function host process rather than the entrypoint itself. For more details, see https://medium.com/@leonardo5621_66451/learn-how-to-use-entrypoint-scripts-in-docker-images-fede010f172d

Before:

root           1  0.0  0.0   3896  2788 ?        Ss   11:46   0:00 bash /opt/startup/start_nonappservice.sh
root           9 17.3  2.3 23691108 185812 ?     Sl   11:46   0:06 /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost
root          36  2.8  0.6 3680016 51824 ?       Sl   11:46   0:00 dotnet /app/App.dll --host 127.0.0.1 --port 43181 --workerId d1ce5a9f-ae39-41
...

Now:

USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  7.3  2.3 23469624 184548 ?     Ssl  11:49   0:02 /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost
root          35  1.8  0.6 3802876 52540 ?       Sl   11:49   0:00 dotnet /app/App.dll --host 127.0.0.1 --port 42789 --workerId a39ebb64-de06-49
...

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and CI is passing.

… process

To ensure the signals are sent to the function host process rather than the entrypoint itself.
For more details, see https://medium.com/@leonardo5621_66451/learn-how-to-use-entrypoint-scripts-in-docker-images-fede010f172d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant