sdk-docker automated

medium

Image Types:
basesdk-amd64 / sdk-amd64
Image Deployment:
APT
Type:
functional

Description

Install and run hello-world docker container.


Pre Conditions

  1. Ensure Rootfs is remounted as read/write.
  2. $ sudo mount -o remount,rw /
  3. Install dependencies
  4. $ sudo apt install bash
  5. Restart the system to restore the filesystem state to read-only before running the test.
  6. $ sudo reboot
  7. Clone the tests repository from another computer (Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question):
  8. $ git clone --branch apertis/v2023 https://gitlab.apertis.org/pkg/apertis-tests.git
  9. Copy the test directory apertis-tests to the target device:
  10. $ DUT_IP=<device-ip>
    $ scp -r apertis-tests user@$DUT_IP:
  11. Log into the target device:
  12. $ ssh user@$DUT_IP

Execution Steps

  1. Enter test directory:
  2. $ cd apertis-tests
  3. Execute the following command:
  4. $ common/run-test-in-systemd --user=user --basename -- sdk/automated/test-docker.sh

Expected

If PASSED is displayed, the test have passed. The output should be similar to that:

Unable to find image 'hello-world:latest' locally

 latest: Pulling from library/hello-world

 b8dfde127a29: Pulling fs layer

 b8dfde127a29: Verifying Checksum

 b8dfde127a29: Download complete

 b8dfde127a29: Pull complete

 Digest: sha256:df5f5184104426b65967e016ff2ac0bfcd44ad7899ca3bbcf8e44e4461491a9e

 Status: Downloaded newer image for hello-world:latest

 Hello from Docker!

 This message shows that your installation appears to be working correctly.

 To generate this message, Docker took the following steps:

 1. The Docker client contacted the Docker daemon.

 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

     (amd64)

 3. The Docker daemon created a new container from that image which runs the

     executable that produces the output you are currently reading.

 4. The Docker daemon streamed that output to the Docker client, which sent it

     to your terminal.

 To try something more ambitious, you can run an Ubuntu container with:

 $ docker run -it ubuntu bash

 Share images, automate workflows, and more with a free Docker ID:

 https://hub.docker.com/

 For more examples and ideas, visit:

 https://docs.docker.com/get-started/

 sdk-docker-test: PASSED

 real	0m 3.90s

 user	0m 0.00s

 sys	0m 0.00s

 test-docker: test succeeded