Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling the spring-cloud-vault-2.2.1.RELEASE Source Code

  1. Download the spring-cloud-vault-2.2.1.RELEASE source package.
    1
    2
    3
    cd /home
    git config --global http.sslVerify false
    git clone https://github.com/spring-cloud/spring-cloud-vault.git
    
  2. Switch to the target version.
    1
    2
    cd spring-cloud-vault
    git checkout v2.2.1.RELEASE
    
  3. Modify the install_vault.sh file.
    1
    vi src/test/bash/install_vault.sh
    

    Change amd64 to arm64 in the vault architecture information of line 126.

  4. Perform the compilation.
    1
    ./src/test/bash/install_vault.sh
    
    1. Check the size of the downloaded vault_1.2.3_linux_arm64.zip file to avoid compilation failure.
      1
      ll download/vault_1.2.3_linux_arm64.zip
      
    2. If the file size is 0, delete the file and download it again.
      rm -rf download/vault_1.2.3_linux_arm64.zip
      wget https://releases.hashicorp.com/vault/1.2.3/vault_1.2.3_linux_arm64.zip --no-check-certificate
      mv vault_1.2.3_linux_arm64.zip download/
    3. Run the following command:
      ./src/test/bash/install_vault.sh
    1
    2
    ./src/test/bash/create_certificates.sh
    ./src/test/bash/local_run_vault.sh  & ./mvnw clean install -Dgpg.skip=true
    

    If BUILD SUCCESS is displayed, the compilation is successful.

  5. After the compilation is complete, stop the vault process.
    1
    pkill -9 vault