Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling dubbo-remoting-etcd3

  1. Configure the container environment.

    If the Docker container has been installed, skip 1.a to 1.c. Run the ps -ef |grep docker command. If the Docker process is displayed in the command output, go to 2.

    1. Download the Docker source code.
      1
      2
      cd /home
      wget https://download.docker.com/linux/static/stable/aarch64/docker-18.09.6.tgz --no-check-certificate
      
    2. Decompress the Docker package.
      1
      tar -zxf docker-18.09.6.tgz
      
    3. Set the environment variables.
      1. Open the /etc/profile file.
        1
        vim /etc/profile
        
      2. Press i to enter the insert mode and add the following content to the file:
        1
        PATH=$PATH:/home/docker
        
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
      4. Make the environment variables take effect.
        1
        source /etc/profile
        
    4. Start Docker.
      1
      2
      groupadd docker
      dockerd &
      
    5. Check whether the container is started.
      If the Docker process is displayed in the command output, the container is started.
      1
      ps -ef |grep docker
      

  2. Set the environment variables.
    1. Modify the /etc/profile file.
      1. Open the file.
        1
        vim /etc/profile
        
      2. Press i to enter the insert mode and add the following content to the file:
        1
        export TESTCONTAINERS_RYUK_DISABLED=true
        
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
      4. Make the environment variables take effect.
        1
        source /etc/profile
        
    2. Modify the /root/.testcontainers.properties file.
      1. Open the file.
        1
        vim /root/.testcontainers.properties
        
      2. Press i to enter the insert mode and add the following content to the file:
        1
        checks.disable=true
        
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Replace the jetcd-launcher-0.3.0.jar package.
    1. Obtain the jetcd-launcher-0.3.0.jar package that supports the ARM64 image.
      1
      2
      cd /home
      wget https://mirrors.huaweicloud.com/kunpeng/maven/io/etcd/jetcd-launcher/0.3.0/jetcd-launcher-0.3.0.jar --no-check-certificate
      
    2. Create a local repository directory.
      1
      mkdir -p /root/.m2/repository/io/etcd/jetcd-launcher/0.3.0/
      
    3. Replace the jetcd-launcher-0.3.0.jar package in the local repository.
      1
      \cp /home/jetcd-launcher-0.3.0.jar /root/.m2/repository/io/etcd/jetcd-launcher/0.3.0/jetcd-launcher-0.3.0.jar
      
  4. Go to the dubbo-remoting-etcd3 directory.
    1
    cd /home/Dubbo/dubbo-dubbo-2.7.5/dubbo-remoting/dubbo-remoting-etcd3/
    
  5. Compile the dubbo-remoting-etcd3 module.
    1
    mvn install
    

    If BUILD SUCCESS is displayed, the dubbo-remoting-etcd3 module is compiled successfully.