-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Distribute binary through composer #71
Comments
@grachevko there 2 things that comes to mind:
I think it's not a really good idea to do that. But it's only my opinion. |
@Alex-Bond it depends on how to solve that. If you don't need to download default binary, just not add call downloader in composer.json. But It will not be superfluous to investigate how other libs solve that. |
In theory, I can download the needed file from releases directly (via GitHub API) and unpack it. Though, I would not recommend making this script autorun. I think |
@wolfy-j yeap, that is exactly what i mean. |
You can now build RR locally with or without additional services. See https://github.com/spiral/roadrunner/wiki/Quick-Builds |
@wolfy-j how about removing Docker dep? Building RR inside Docker inside Docker (2 times) not so cool idea :) |
I do not expect it to be build in Docker but outside. This approach gives us flexibility to build any RR version based on custom specs. I'm still open to implement |
You can also compile it outside of your container, thought in this case I might need to add -os flag as currently it detect the OS on host machine. |
@wolfy-j how about adding the flag to build in local env? Like qbuild -local. |
It is actually intended to build in local env, this is the approach my DevOps requested (specifically to use with Jenkins). You expect to build (or use already build version) rr locally and then pack it with the rest of your applications before deployment. |
Thats not a really good idea to have binaries inside git. |
There is no binaries in git. |
If you compile it locally, how you will pass it to jenkins? Jenkins running whole build process inside docker. |
I'm not fully aware of the details where Jenkins is building Docker images, but you convinced me that this approach might not work for everyone. I'll try to come up with alternative. |
@wolfy-j while preparing Sentry package i found a pretty interesting thing - how we will sen dependancy? Like what if my module depends on some internal or 3d party module and must be called only after deps injected? |
I was about to open a new ticket to ask a question about the binary file for Shouldn't composer execute The only problem I have with this option is that I have to symlink the generated file to Has anyone else figure out a better way? |
@stefanos82 i think it's not a good idea to build it from sources every time. Build it 1 time when you deploying app first time and that's it. Just update it if you need to. Don't forget that most of the people will not have Go runtime on the server (why you need to?). |
OK, now I'm really confused. If that's the case, then what's the use of If I go to If I don't need the Go runtime, what's the purpose of this dependency? |
I just saw the 'src' folder that contains all the PHP files. Silly me... |
What about include build binary to composer install?
To update need to do two thing: update composer and update binary. This is not convenient.
The text was updated successfully, but these errors were encountered: