The qcnode-toolchain base docker provides a basic host toolchain environment that splits from platform SDK toolchains, users can directly map the platform SDK toolchains path to this docker with '-v' option, thus the switching of platform SDK toolchains version could be easily.
-
Step 1: Prepare basic docker image The basic docker image is ubuntu 20.04, user can get the docker image in two methods.
- method 1: pull the image with command
sudo docker pull ubuntu:20.04 - method 2: get the image is from existed docker image package:
Then use the command to show docker image id:
sudo docker load -i ubuntu-20.04.tarThe docker image info shows as this way:sudo docker images -aThen tag the docker image with image id:REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> 52882761a72a 2 days ago 77.9MBsudo docker tag 52882761a72a ubuntu:20.04
- method 1: pull the image with command
-
Step 2: build qcnode-toolchain-base docker image Run the script to build:
./build-docker-image.shAfter building, the docker image could be shown as below:
sudo docker images -a REPOSITORY TAG IMAGE ID CREATED SIZE qcnode-toolchain-base v1.0 84bcf57cad70 2 days ago 3.6GB