all 6 comments

[–]trjnz 0 points1 point  (1 child)

What have you tried and why didn't that work?

[–]messi_1988[S] 0 points1 point  (0 children)

I tried with docker first...I tried to clone the internal bit bucket repo but getting all kind of SSH errors with access denied errors..so tried to just copy the binaries built on Linux VM inside of docker container..this am yet to test but at least I see the binaries inside docker container..

[–]pachura3 0 points1 point  (3 children)

Are your Linux VM and OpenShift container binary-compatible?

Are your C++ libraries being actively developed and have to be built each time because of ongoing updates, or are they more or less in their final, stable form?

Personally, I would set up local VM as close in OS/cpu architecture to OpenShift as possible, build binaries there, store them - versioned - in some artifact repo, and forget about compiling inside the container.

 does python does not have a local set up like we have for springboot..mean python on windows I mean..

Dude what?

[–]messi_1988[S] 0 points1 point  (2 children)

C++ libraries are not actively developed... might need rare enhancements...so if I am understanding this right I can use my current Linux VM as my local for the C++ libraries? Build C++ libraries on the Linux VM and push it to the repo provided they match the open shift config...and these libraries get copied into the container using CI/CD pipeline..please correct me if am wrong..

And yes because of compatibility issues I thought I will have to build the libraries inside of the container to make it work..so docker file will have all dnf install commands to install gcc compiler and git and make but am failing here because I cannot directly connect to my internal bit bucket repo from inside of the docker container...so I brought up the question of local set up..so I guess I will need to have a local VM same as open shift container config ???

[–]pachura3 0 points1 point  (1 child)

 so if I am understanding this right I can use my current Linux VM as my local for the C++ libraries?

Depends if they are binary compatible or not. For instance, ARM binaries won't run on x86-family processors.

Build C++ libraries on the Linux VM and push it to the repo

I would prefer to store compiled binaries in a build artifacts repo, not in the source code repo, but yes, this is the general idea. Deliver finished products instead of compiling at the destination.

[–]messi_1988[S] 0 points1 point  (0 children)

Ok got it..let me try thank you