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

Add support for nix store remote copying #404

Merged
merged 23 commits into from
Sep 5, 2023
Merged

Commits on Sep 4, 2023

  1. Add support for nix store remote copying

    This is a requirement in order to make Bazel remote execution work. Without it
    it's not guaranteed that any necessary nix paths will be available during the
    build.
    
    Any local derivation will be copied over to a specified remote nix server which
    will also as a Bazel executor. This way any nix paths required during the
    build, will be available.
    
    The user will have to provide the `BAZEL_NIX_REMOTE` environment variable. This
    should be the name of any entry on the SSH_CONFIG file where all the
    authentication details are provided.
    
    e.g
    
    ```bash
    $ export BAZEL_NIX_REMOTE=nix-server
    
    $ cat ~/.ssh/config
    Host nix-server
      Hostname 1.2.3.4
      IdentityFile ~/.ssh/nix-server
      Port 2222
      User nix-user
    ```
    
    This was done in order to simplify the processes of authentication and keep the
    number of configuration options to a minimum.
    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    8c9bda1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d0c513 View commit details
    Browse the repository at this point in the history
  3. Remove extra nix_path variable

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    aa4cf1d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7e628fe View commit details
    Browse the repository at this point in the history
  5. Add an extra argument for exprs

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    6a110dd View commit details
    Browse the repository at this point in the history
  6. Fix invalid attribute names

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    b8d7c52 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6e3009b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2e76279 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d56e2bd View commit details
    Browse the repository at this point in the history
  10. Fix conditionals

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    b8b04cf View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a1725d8 View commit details
    Browse the repository at this point in the history
  12. Fix quotes on conditionals

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    1965ebd View commit details
    Browse the repository at this point in the history
  13. Install the openssh client

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    c18c05e View commit details
    Browse the repository at this point in the history
  14. Add debug info

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    dac4d72 View commit details
    Browse the repository at this point in the history
  15. Test remote server with ping

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    3e8a2f0 View commit details
    Browse the repository at this point in the history
  16. Add openssh on the nix-shell

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    1cce1ea View commit details
    Browse the repository at this point in the history
  17. Remove debug statements

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    4ff55c7 View commit details
    Browse the repository at this point in the history
  18. Use global ssh config

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    61e99ad View commit details
    Browse the repository at this point in the history
  19. Change path of identityfile

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    a4ea99f View commit details
    Browse the repository at this point in the history
  20. Fix conditional

    z8v committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    581e351 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Update job name for nix remote

    z8v committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    7bb3ddd View commit details
    Browse the repository at this point in the history
  2. Remove extra space from job name

    z8v committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    bdb8624 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    135a261 View commit details
    Browse the repository at this point in the history