Rate This Document
Findability
Accuracy
Completeness
Readability

Building a Compilation Container and Deployment Container on the Compilation Node

  1. Download the openEuler-22.03-LTS-SP3 base image.
    wget http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/docker_img/aarch64/openEuler-docker.aarch64.tar.xz
  2. Import the downloaded base image.
    podman load -i openEuler-docker.aarch64.tar.xz
  3. Create a container using the image.
    podman run -dit --name openeuler2203sp3_base --hostname openeuler2203sp3_base -p 10000:22 --privileged --ipc=host docker.io/library/openeuler-22.03-lts-sp3:latest
  4. Access the container.
    podman exec -it openeuler2203sp3_base /bin/bash
  5. Add global environment variables to the /etc/bashrc file in the container.
    vim /etc/bashrc
    export TMOUT=0
    export http_proxy=http://xxx      // Set it as required.
    export https_proxy=http://xxx     // Set it as required.
    source /etc/bashrc
  6. Install the software packages in the container.
    yum install openssh-server openssh-clients passwd vim perf sysstat dos2unix htop sshpass jq numactl hostname python3 python3-devel python3-pip tar createrepo ipmitool iproute git systemd psmisc udev wget rpmdevtools gtk-doc pam-devel xmlsec1-devel libtool libtool-ltdl-devel cmake gcc-c++ libstdc++-static java-1.8.0-openjdk java-1.8.0-openjdk-devel fio iputils make -y
  7. Install the RDMA dependency packages in the container.
    yum install libibverbs-devel librdmacm-devel numactl-devel -y
  8. Build the image on a physical machine.
    podman commit openeuler2203sp3_base openeuler2203sp3_base:v2203sp3
  9. Start the compilation container on the physical machine.
    podman run --name openeuler2203sp3_build --hostname openeuler2203sp3_base -p 10001:22 --privileged --ipc=host -dti localhost/openeuler2203sp3_base:v2203sp3 /usr/sbin/init
  10. Build a deployment container on the physical machine.
    podman run --name openeuler2203sp3_release --hostname openeuler2203sp3_base -p 10003:22 --privileged --ipc=host -dti localhost/openeuler2203sp3_base:v2203sp3 /usr/sbin/init