Rate This Document
Findability
Accuracy
Completeness
Readability

Creating a Base Data Volume

  1. Determine the directory where the data volume is stored and the image name.
    The default image name is video:latest, and the default directory for storing the data volume is /home/mount. You can change the values of DOCKER_IMAGE and USERDATA in the cfct_config file to the actual name or directory.
    DOCKER_IMAGE=video:latest
    USERDATA="/home/mount"
  2. Delete the original data volume or back up the data volume to another location. {USERDATA} indicates the directory for storing the data volume configured in 1. If there are multiple directories, perform the following operations in this section for each directory.
    #rm -rf {USERDATA}/data/android_base
  3. Extract the cfct_video startup script from DemoVideoEngine.tar.gz and grant permissions on the script. Ensure that the script owner has the read, write, and execute permissions while users in the owner group and other users have only the read and execute permissions.
    #cd /home/kbox_video/
    #tar -xvf DemoVideoEngine.tar.gz cfct_video
    #chmod 755 cfct_video
  4. Use the cfct_video script to start a cloud phone. This document uses android_1 as an example.
    #./cfct_video start 1  
  5. Pre-install an app (for example, Subway Surfers) in the cloud phone container, and use android_1 as a new data volume for starting the video stream cloud phone.
    #cd {USERDATA}/data/
    #cp -rp android_1 android_base
  6. Delete the android_1 container.
    #cd /home/kbox_video/
    #./cfct_video delete 1