Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Add rust rpm provisioner to adm node #2382

Merged
merged 6 commits into from
Dec 3, 2020
Merged

Commits on Dec 2, 2020

  1. Add rust rpm provisioner to adm node

    Building the rpms locally has been difficult becuase using the docker
    container is significantly slower, even after increasing the available
    ram and cpu's. In contrast, building in the adm vm appears to be nearly
    as fast as building on the host. Furthermore, adding sccache appears to
    maintain dependency builds across different branches, allowing for much
    quicker builds. This patch adds a new provisioner to build the rust rpms
    using the adm virtual machine and takes care of installing all necessary
    dependencies, including sccache. To build the rust rpms, simply run the
    following:
    
    ```
    vagrant provision adm --provision-with build-rust-rpms
    ```
    
    Signed-off-by: johnsonw <wjohnson@whamcloud.com>
    johnsonw committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    2666834 View commit details
    Browse the repository at this point in the history
  2. Don't delete the _topdir before invoking the make command

    Signed-off-by: johnsonw <wjohnson@whamcloud.com>
    johnsonw committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    919ad04 View commit details
    Browse the repository at this point in the history
  3. Move env vars into Makefile

    Signed-off-by: johnsonw <wjohnson@whamcloud.com>
    johnsonw committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    51a6c6b View commit details
    Browse the repository at this point in the history
  4. Update release version between builds

    Signed-off-by: johnsonw <wjohnson@whamcloud.com>
    johnsonw committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    7c8a9b0 View commit details
    Browse the repository at this point in the history
  5. Move environment variables from Makefile into the .bash_profile of th…

    …e adm node and resource it before running make.
    
    Signed-off-by: johnsonw <wjohnson@whamcloud.com>
    johnsonw committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    b8b767e View commit details
    Browse the repository at this point in the history
  6. No need to edit the spec file. The dist can be passed as an environme…

    …nt variable to the Make environment
    
    Signed-off-by: johnsonw <wjohnson@whamcloud.com>
    johnsonw committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    22e476d View commit details
    Browse the repository at this point in the history