If you are interested in a quick outline of steps, please see the Fuego Quickstart Guide instead.
- 1. install pre-requisite software
- 2. download the Fuego repositories
- 3. build your Fuego container
- 4. start the container
- 5. access the Jenkins interface
On Ubuntu, try the following commands:
These commands may be different for other distributions of Linux (such as Fedora, RedHat, CentOS, Mint, etc.)
These steps and commands will be described in the sections that follow.
The reason there are two repositories is that the different repositories hold different pieces of the system, and so that they can be upgraded independently of each other.
The repositories are currently hosted on bitbucket.org, under the personal account of Tim Bird (the current primary maintainer of Fuego).
After downloading the repositories, switch to the 'fuego' directory, as shown in the example.
Note that these git commands will download the 'master' branch of the repository, which is the current main released version of Fuego.
NOTE: If you are experimenting with an unreleased version of Fuego in the 'next' branch, then please replace the 'git clone' command in the instructions above with these:
This uses '-b next' to indicate a different branch to check out during the clone operation.
install.sh uses docker and the Dockerfile in the fuego directory to create a docker container with the Fuego Linux distribution.
This operation may take a long time. It takes about 45 minutes on my machine. This is due to building a nearly complete distribution of Linux, from binary packages obtained from the Internet.
This step requires Internet access. You need to make sure that you have proxy access to the Internet if you are behind a corporate firewall.
For example, the Fuego distribution includes
- the 'Jenkins' continuous integration server
- the 'netperf' server, for testing network performance.
- the 'ttc' command, which is a tool for board farm management
- the python 'jenkins' module, for interacting with Fuego's Jenkins instance
- and many other tools, programs and modules used by Fuego and its tests
Fuego commands execute inside the Fuego docker container, and Fuego operations initiate in the container, but may access hardware (such as USB ports, networking, or serial ports) that are outside the container.
To do that, you can create a 'privileged' Fuego container, using the '--priv' options with install.sh:
When --priv is used, Fuego uses
docker-create-usb-privileged-container.sh can be edited, before
running install.sh, to change the set of hardware devices
that the docker container will have privileged access to.
This is done by adding more volume mount options to the 'docker create' command inside this script. Explaining exactly how to do this is outside the scope of this documentation. Please see documentation and online resources for the 'docker' system for information about this.
The script currently creates volume mounts for:
- /dev/bus/usb - USB ports, and newly created ports
- /dev/ttyACM0 - serial port 0
- /dev/ttyACM1 - serial port 1
- /dev/serial - general serial ports, and newly created ports
If you experience problems with Fuego accessing hardware on your host system, you may need to build the Fuego docker container using additional volume mounts that are specific to your configuration. Do so by editing docker-create-used-privileged-container.sh, removing the old container, and re-running './install.sh --priv' to build a new container with the desired privileges.
You can provide a different name for the Fuego image and container, by supplying one on the command line for install.sh, like so:
This would create a docker image named 'my-fuego' and a docker container named 'my-fuego-container'
When you run the 'start.sh', the terminal where the script is run will be placed at a shell prompt inside the docker container. The session will be logged in as the root user inside the container. The container will run until you exit this top-level shell. Therefore, you should leave it (the shell and the terminal that your ran 'start.sh' from) running for the duration of your testing.
Here is an example showing use of firefox to access the Jenkins interface with Fuego $ firefox http://localhost:8080/fuego }}}
To access the Fuego interface you can use any browser - not just Firefox.
In your browser, you should see a screen similar to the following:
Note that this web interface is available from any machine that has access to your host machine via the network. This means that test operations and test results are available to anyone with access to your machine. You can configure Jenkins with different security to avoid this.
Some 'ftc' commands can be run outside the container, but other require that you execute the command inside the container.
To start another shell prompt inside the currently running Fuego docker
container, you can use the script 'fuegosh'. This helper script is
You may find it convenient to copy this script to
a 'bin' directory on your system (either /usr/local/bin or ~/bin) that
is already in your PATH.
If you run 'fuegosh', it will place you at a shell prompt inside the Fuego docker container, like so:
- add one or more hardware boards (board definition files)
- add a toolchain
- populate the Jenkins interface with test jobs
These steps are described in subsequent sections of this documentation.