-
Notifications
You must be signed in to change notification settings - Fork 193
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
Simple Ocis Binary #79
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep works!
fixes #75 |
for ocis simple we want to change the PhoenixCommand ... or introduce a PhoenixSimpleCommand that uses a different build flag ... not sure how to minimize code duplication.
but can be done in a subsequent PR |
cannot avoid code duplication, not without getting into some nasty logic using go/build for handling conditions on build flags. In my opinion this duplication is at least accepted for this purpose. It can however be better structured and be separated on it's own folder (pkg) but then you'd have the same. The idiom of adding the The confusing bit is the |
@butonic feeling like adding the phoenix simple command to this PR? |
@refs no ... let us get the build tags in place first. we can then think about configuring phoenix and adding konnectd & devldap |
👍 I'll finish a few details and merge this. |
Complexity increasing per file
==============================
- pkg/command/server_simple.go 3
- pkg/tracing/tracing.go 9
Complexity decreasing per file
==============================
+ pkg/command/server.go -7
See the complete overview on Codacy |
Simple Ocis
To generate the simple-ocis binary:
TAGS=simple make build
run it:
./bin/ocis server
Services running
Build ocis with the subset of services for easy extensions development.
I also went ahead and disabled some services I found we don't need at this stage, not only for simple ocis but for the entire binary.
TODO