Skip to content
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

Build dateilager within the dockerfile using the nix environment #86

Merged
merged 1 commit into from
May 8, 2024

Commits on May 6, 2024

  1. Build dateilager within the dockerfile using the nix environment

    This switches the build process to:
     - build DL within the dockerfile for repeatable builds, instead of copying in from outside
     - use the nix environment to setup the env for the build, so it's the same go version / protoc version etc etc in and outside of docker
     - use a multistage docker build so we have slim containers with just the binary at the end
    
    I did all this because I was fighting to get a docker image built for linux_arm64, which is what orbstack needs to run the image locally in a k8s setup! It was annoying. This also adds linux_arm64 as a build target to the makefile, and teaches the dockerfile how to build the binary for the target architecture that the dockerfile is building for.
    
    Yeesh.
    airhorns committed May 6, 2024
    Configuration menu
    Copy the full SHA
    f0fc487 View commit details
    Browse the repository at this point in the history