Skip to content

EmbeddedAndroid/lava-slave-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linaro's Automated Validation Architecture (LAVA) Slave Docker Container

Preinstalls and preconfigures the latest LAVA dispatcher release.

Building

To build an image locally, execute the following from the directory you cloned the repo:

sudo docker build -t lava-slave .

Running

To run the image from a host terminal / command line execute the following:

sudo docker run -it -v /dev:/dev -p 69:69/udp -p 80:80 -h <HOSTNAME> --privileged kernelci/lava-slave-docker:latest

Where HOSTNAME is the hostname used during the container build process (check the docker build log), as that is the name used for the worker configuration. You can use lava-docker as the pre-built container hostname.

Runtime Enviroment

Enviroment variables are available to help setup state within the container.

Where LAVA_MASTER is the IP address for your LAVA server.

sudo docker run -it -v /dev:/dev -p 69:69/udp -p 80:80 -e LAVA_MASTER='<lava master ip>' -e LAVA_SERVER_IP='<docker host ip>' -h <HOSTNAME> --privileged kernelci/lava-slave-docker:latest

Where LAVA_SERVER_IP is the IP of your Docker host. This allows the TFTP service to properly address the TFTP transfers.

Additional Setup

In order for TFTP requests to find their way back to the running container, you will need to describe the host IP address to the LAVA master node. You can to create a yaml file on the LAVA master node as described below.

echo "dispatcher_ip: <dispatcher host ip" > /etc/lava-server/dispatcher.d/<lava-slave-hostname>.yaml

To use libguestfs for image overlays, access to the host kernel and modules must be provided. Typically this means that under /boot there exists a kernel with the naming convention below.

/boot/vmlinuz-<version>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%