monogon-dev / monogon

The Monogon Monorepo. May contain traces of peanuts and a ✨pure Go Linux userland✨. Work in progress!
https://monogon.tech
Apache License 2.0
378 stars 8 forks source link

Migrate Build container to Nix #265

Closed q3k closed 8 months ago

q3k commented 9 months ago
### Tasks
fionera commented 9 months ago

CL is created and waits for review Migration to nix build: https://review.monogon.dev/c/monogon/+/2185 Nix Image: https://review.monogon.dev/c/internal/+/2195

leoluk commented 8 months ago

:tada: via b202f50ed79d5605105a074138569977fdbd9a3c

fionera commented 8 months ago

Turns out its not as easy as I thought. When building the monorepo in the nix-container on jenkins-internal gives me the following error:

GoCompilePkg cloud/bmaas/bmdb/model/model.a failed: Mount target '/run' does not exist. Bazel only supports bind mounting on top of existing files/directories. Please create an empty file or directory at the mount target path according to the type of mount source.
fionera commented 8 months ago

Fixed by adding /run to build container