-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Remove Dockerfile in favour of OpenFaaS Golang template - Part 1 #97
Comments
@rgee0 anything else that needs to be covered as part of this change? |
If it is just about removal of Dockerfile then I can address this issue as I don't have much understanding of project and so it would be a good start for me. |
No it's not removing the file, it's migrating to the Golang template which involves removing the Dockerfile as part of the work. |
Is there a |
Ah Ok. |
Use the OpenFaaS CLI with the command line given above to migrate it from a stateless microservice using a Dockerfile to a function with the standard template. https://blog.alexellis.io/serverless-golang-with-openfaas/ If this is too technical for a new contributor then an existing OpenFaaS user or Derek contributor should take this on. |
I'll give it a shot, current contributors should also tackle this. I'll be looking at the Derek source code before making a suggestion.
Thanks for the clarification!
… On Oct 27, 2018, at 4:45 PM, Alex Ellis ***@***.***> wrote:
Use the OpenFaaS CLI with the command line given above to migrate it from a stateless microservice using a Dockerfile to a function with the standard template. https://blog.alexellis.io/serverless-golang-with-openfaas/
If this is too technical for a new contributor then an existing OpenFaaS user or Derek contributor should take this on.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Some additional changes are going to be needed on this one. I'm going to suggest picking it up myself or having one of the maintainers do it since it will need more moving around than I expected. |
Sounds good, although, I have a fork you can look at currently here : my attempt involved moving the go source code with suffix Handler to a new sub-level package called |
The approach in your fork is very similar to what I was doing locally. Can you raise a separate PR which only creates the handler package and nothing else? (Use |
Sure. Glad I can help. |
@cheikhshift are you still working on this, can you raise a PR? |
The Dockerfile is now unnecessary - Derek was developed before the Golang templating system, so we should move the code to use the Golang template for less to maintain, more frequent watchdog updates and other fixes done in the Golang template.
Since the Golang template uses the classic watchdog and allows for forking per request, no other changes are required to prevent os.Exit/panic handling.
The various environmental variables can be moved into there derek.yml file.
Once refactored part 2 can take place #96
The text was updated successfully, but these errors were encountered: