-
Notifications
You must be signed in to change notification settings - Fork 277
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
WIP: Build on MacOS. #740
WIP: Build on MacOS. #740
Conversation
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Rather than building natively for mac (or a given platform), what about making it easier to use the docker image in the CI system? Sayali spend a considerable amount of time adding changes to support child process detection in the test workflow and I feel like that was the tip of the iceberg. If our build system could detect if you are are docker or not, and then automatically launch the container that seems like it would be a compelling feature. This would also make transitioning to windows builds easier to manage because everything would be consistent. |
Are you saying that Mac (or Windows) users would need to run Docker to run OpenSearch, or are you saying we can build using a docker container running MacOS (or Windows) on Linux? |
Build using docker, effectively changing the requirement of this build system to require docker, or to be run inside of docker. |
Isn't running an OSX VM inside docker just another way to providing mac "hardware"? |
Ah, I am proposing that we do not support mac at all, but instead support running the CI CentOS docker image on a mac, windows, or linux to produce build artifacts. If we need platform specific packaging system, eg producing MSI for windows or DMGs for mac, we would separate that into another step with a separate docker image to minimize the variability in our build system. |
@peternied The ask in #38 and #33 is to have native support for Mac OS and Windows. On MacOS I'd want a DMG or support for |
Reversing my stance after read up on those issues and quickly synced offline - Yup we need to support building on the mac, we have gaps around docker images and we will need to mitigate those so we can support top down building for linux, mac and windows. |
@peternied Could I please have your opinion on the options in the body of this PR before I finalize it? |
In order of preference
|
I went after the north star in #748. |
Signed-off-by: dblock dblock@amazon.com
Description
With this change
build.sh manfests/1.1.0/opensarch-1.1.0.yml
works up until k-nn, which is #737.Current scripts for OpenSearch hard-code
linux
when they see-a x64
. Our options are:-a
(or replace it) and change it from "architecture" to "target", so-a x64
to-a darwin-x64
and-a linux-x64
.-m darwin
.Thoughts? /cc:@peternied @bbarani
Issues Resolved
Part of #38
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.