-
Notifications
You must be signed in to change notification settings - Fork 2k
Development Installation Guide
To get started developing you'll need to install docker or see our Quick Start Guide using vagrant
-
Clone TFB.
$ git clone https://github.com/TechEmpower/FrameworkBenchmarks.git -
Run a test.
$ ./tfb --mode verify --test gemini
The run script is pretty wordy, but each and every flag is required. If you are using windows, either adapt the docker command at the end of the ./tfb shell script (replacing ${SCRIPT_ROOT} with /c/path/to/FrameworkBenchmarks), or use vagrant.
The command looks like this: docker run -it --rm --network tfb -v /var/run/docker.sock:/var/run/docker.sock -v [FWROOT]:/FrameworkBenchmarks techempower/tfb [ARGS]
-
-ittells docker to run this in 'interactive' mode and simulate a TTY, so thatctrl+cis propagated. -
--rmtells docker to remove the container as soon as the toolset finishes running, meaning there aren't hundreds of stopped containers lying around. -
--network=tfbtells the container to join the 'tfb' Docker virtual network - The first
-vspecifies which Docker socket path to mount as a volume in the running container. This allows docker commands run inside this container to use the host container's docker to create/run/stop/remove containers. - The second
-vmounts the FrameworkBenchmarks source directory as a volume to share with the container so that rebuilding the toolset image is unnecessary and any changes you make on the host system are available in the running toolset container. -
techempower/tfbis the name of toolset container to run
- Docker expects Linux-style paths. If you cloned on your
C:\drive, then[ABS PATH TO THIS DIR]would be/c/FrameworkBenchmarks. -
Docker for Windows understands
/var/run/docker.sockeven though that is not a valid path on Windows. Docker Toolbox may not - use at your own risk.
Get started developing quickly by utilizing vagrant with TFB. Git, Virtualbox and vagrant are required.
-
Clone TFB.
$ git clone https://github.com/TechEmpower/FrameworkBenchmarks.git -
Change directories
$ cd FrameworkBenchmarks/deployment/vagrant -
Build the vagrant virtual machine
$ vagrant up -
Run a test
$ vagrant ssh $ tfb --mode verify --test gemini
Either on your computer, or once you open an SSH connection to your vagrant box, start the new test initialization wizard.
vagrant@TFB-all:~/FrameworkBenchmarks$ ./tfb --new
This will walk you through the entire process of creating a new test to include in the suite.
- Home
- Project Information
- Development
- Benchmarking
- Codebase
- About
- Support
- Work in progress