cross compiling for linux x86_64 using bazel on osX
up vote
0
down vote
favorite
I am trying to build binaries for x86_64 linux box . I have my code on osX and using bazel to build the binaries.
Since i am new to bazel build system , i wanted to know what is the current practice to be able to build binaries for different architecture by running bazel on my host osX machine . Any pointer to code sample will be helpful ?
I have hear one strategy is to use some custom crosstool chain . How to figure this out for different architecture.
Also is it possible to run bazel build within a linux docker image with all the necessary compiler, tools and bazel installed within the docker image. This way i can share the docker image across environments and developers to we all have a uniform build system ? Not sure if such an image is already out there provided or is it even feasible to run bazel build within docker image while building code on my host os.
My end goal is to build these x86_64 linux binaries which will be deployed to using k8s . So after building this binary i do create a docker image with these binaries copied over and deploying those docker images using k8s. So what would be a good practice here ?
add a comment |
up vote
0
down vote
favorite
I am trying to build binaries for x86_64 linux box . I have my code on osX and using bazel to build the binaries.
Since i am new to bazel build system , i wanted to know what is the current practice to be able to build binaries for different architecture by running bazel on my host osX machine . Any pointer to code sample will be helpful ?
I have hear one strategy is to use some custom crosstool chain . How to figure this out for different architecture.
Also is it possible to run bazel build within a linux docker image with all the necessary compiler, tools and bazel installed within the docker image. This way i can share the docker image across environments and developers to we all have a uniform build system ? Not sure if such an image is already out there provided or is it even feasible to run bazel build within docker image while building code on my host os.
My end goal is to build these x86_64 linux binaries which will be deployed to using k8s . So after building this binary i do create a docker image with these binaries copied over and deploying those docker images using k8s. So what would be a good practice here ?
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to build binaries for x86_64 linux box . I have my code on osX and using bazel to build the binaries.
Since i am new to bazel build system , i wanted to know what is the current practice to be able to build binaries for different architecture by running bazel on my host osX machine . Any pointer to code sample will be helpful ?
I have hear one strategy is to use some custom crosstool chain . How to figure this out for different architecture.
Also is it possible to run bazel build within a linux docker image with all the necessary compiler, tools and bazel installed within the docker image. This way i can share the docker image across environments and developers to we all have a uniform build system ? Not sure if such an image is already out there provided or is it even feasible to run bazel build within docker image while building code on my host os.
My end goal is to build these x86_64 linux binaries which will be deployed to using k8s . So after building this binary i do create a docker image with these binaries copied over and deploying those docker images using k8s. So what would be a good practice here ?
I am trying to build binaries for x86_64 linux box . I have my code on osX and using bazel to build the binaries.
Since i am new to bazel build system , i wanted to know what is the current practice to be able to build binaries for different architecture by running bazel on my host osX machine . Any pointer to code sample will be helpful ?
I have hear one strategy is to use some custom crosstool chain . How to figure this out for different architecture.
Also is it possible to run bazel build within a linux docker image with all the necessary compiler, tools and bazel installed within the docker image. This way i can share the docker image across environments and developers to we all have a uniform build system ? Not sure if such an image is already out there provided or is it even feasible to run bazel build within docker image while building code on my host os.
My end goal is to build these x86_64 linux binaries which will be deployed to using k8s . So after building this binary i do create a docker image with these binaries copied over and deploying those docker images using k8s. So what would be a good practice here ?
asked Nov 7 at 17:02
user179156
382518
382518
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53194312%2fcross-compiling-for-linux-x86-64-using-bazel-on-osx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown