Added docker build and quick-start#101
Conversation
|
I updated #40 with how I think the "official" docker container should be implemented. However, I really like the idea of what is presented here to use docker as a developer tool for building and testing. I've also responded to some of your questions here #2 (comment) |
|
@tonygermano, I'm no longer aware of issues outside of the registry name (presumably someone owns the official URL?). Differences I'm aware of relative to the original repo:
Happy to discuss as needed. Every compose file, kubernetes deployment, etc... that I've tested doesn't notice the difference between this and stock. |
|
@mgaffigan I pulled your launcher script out of this PR, made significant changes, and put it in its own PR in #119 . I think it is useful outside of a docker context, and it can still be used with docker. Would you mind reviewing it and giving any feedback? |
|
@tonygermano, Excellent! I'd love to see that merged and agree it is useful outside of docker. |
a3709ea to
6b7246f
Compare
|
I've updated the PR to depend upon #119 for oieserver.sh and match the conventions of #126 assuming that has more community input. Currently blocked by merge of: #119 and #126 Process used for testing:
|
Don't link to #126, it is still a draft and not ready for review. |
25d21a6 to
944208e
Compare
a296c57 to
ed66e29
Compare
tonygermano
left a comment
There was a problem hiding this comment.
Neither of these comments are blocking:
- This does not work in my environment (podman installed from package manager in debian bookworm) because of the
COPY --excludesyntax. If I was using docker instead, I think it still would not work without some modification to my environment to tell it to use BuildKit. - At some point the content of
DEVELOPERS.mdwill need to be reconciled with the changes toCONTRIBUTING.mdin #201 , and likely most of this "how to build" documentation should be moved to https://github.com/OpenIntegrationEngine/docs-website where it can be better organized rather than living in this repo.
ed66e29 to
37d46c7
Compare
I updated the syntax line to be more specific - hopefully that will give a better error in podman if --exclude is not supported.
Agreed. Updated DEVELOPERS.md to reference the docs website. Not sure about reconciling 201. I wouldn't mind moving that reconciliation to #201, since I'm trying for a small PR here that delivers the dockerfile. |
tonygermano
left a comment
There was a problem hiding this comment.
I preferred the short and sweet DEVELOPERS.md before Jon's changes. I don't think we're at the point yet to say the docker build is the preferred method. As I mentioned in my previous review, it doesn't work in my environment, and I plan to continue building without docker, but I wasn't going to block others from using it. I also expect the docker build to be slightly slower because it has to copy the source files into the container first and otherwise is running the same build. The local build will definitely be faster if we get incremental builds working eventually.
I think it's good to let the repo have just enough info and refer to the docs site, which can evolve more easily as things change.
43d7dc9 to
e87f428
Compare
|
I've removed developers.md entirely to leave that to a separate PR. While we opine about documentation, this PR nears its 1st birthday. Perfect is the enemy of done. This PR being merged is blocking for smoke testing in github pipelines, and frankly for many modern dev workflows. |
jonbartels
left a comment
There was a problem hiding this comment.
I have recently worked on Dockerfiles for my own deploys. This update covers updates to the entrypoint script that I have seen in the wild. The new dockerfile seems correct and applies some recent best practices
Adds docker build and configure-from-env script to configure OIE server based on environment variables at container startup time. Issue: OpenIntegrationEngine#40 Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
93d5ace to
5076c0f
Compare
While this might be somewhat responsive to #40, it is primarily just to provide a quick-start way for a developer to build and test. While trying to address Issue 5 I had hours of challenges getting things building happily - and shifted to docker as an escape hatch.
I do not expect this PR is ready to merge as is, but wanted to get something posted publicly. Known issues include:
That said, it does work to the point of passing tests, running server, client, and simple message processing.
I'm new to the project, so if I've missed a step please let me know.