-
Notifications
You must be signed in to change notification settings - Fork 182
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
When ulfius starts in a docker container it exits 0 #273
Comments
I think I need to set the host, is this done via the |
Hello, It's hard to say without the server source code, which doesn't seem to be hosted in the repo you mention. But my first guess is that you don't make your server waiting right after starting the ulfius endpoint. Ulfius webserver is executed in a non blocking thread so your server can do other things. In the example programs, I usually use You can search for "daemon programming c" to get some examples. |
Here's the current server code:
This is the Dockerfile
|
@babelouest
Is it possible to set the host, for example to |
I'm not sure what tout expect if you set the host, but setting the Your problem doesn't seem to be how to use ulfius but how to program a daemon in C. My best guess is to look for examples, to help you build a program running in docker. |
@babelouest ok thanks for the advice. I got it working using
|
Describe the issue
I want to dockerize an app that uses ulfius, it builds and runs successfully but then exists 0 straight away
For example:
To Reproduce
You can pull down the code from https://github.com/joegasewicz/forestmq
Expected behavior
I expect the ulfius server to persist when run inside a docker container
System (please complete the following information):
2.7.15
The text was updated successfully, but these errors were encountered: