r/aws•
monkeybomb

CodeBuild question - is our setup non-standard?

ci/cd

Is our setup here non-standard?

My team is trying to utilize CodeBuild to both run a Visual Studio build on our code on a Windows box and then dockerize it into a linux-based image.

I'm trying to wrap my head around how to approach this in CodeBuild. It looks to me like I won't be able to build the linux image on the CodeBuild machine without turning virtualization support on, which requires a baremetal instance type. I don't think baremetal is supported in CodeBuild, is that right?

If so, the other option was to do the docker build on a separate linux machine/container after our initial Visual Studio build, but I'm not sure that we can use a totally separate machine for a post-build step in CodeBuild.

Am I overthinking this?

Posted Jan 15, 2021, 2:39 PM UTC

14
Scarface74•

Are you using .Net Core? If so, you can cross compile a Windows executable on a Linux instance.

If you need to use two CodeBuild instances, you can orchestrate them with CodePipeline.

1
monkeybombOP•

Yeah, it's .NET Core. But I do like the idea of just orchestrating two build instances with CodePipeline. So we just have two build stages, one that hands off to another then?

1
Scarface74•

The second stage after “get source” would have two Code Build processes defined.

1
monkeybombOP•

Alrighty, I'll take a look at that. Thanks for the input!

1