GitHub Repository #
Visit our Github Repository to download or fork BenchPilot!
DockerHub #
All of our Docker images are uploaded on our DockerHub Repository!
BenchPilot Bootstrapping #
Install Docker & Docker Compose #
In the ‘Getting Started’ section we learned how BenchPilot is structured. In order to use the BenchPilot client you need to have installed docker & docker-compose. In our GitHub Repository, under the /utils folder we have prepared for you a script to automatically download it, so all you need to run is “sh install-docker.sh
”, which is under the monitoring
folder.
Retrieve or Build BenchPilot Client Image #
The second step is to either retrieve or build the BenchPilot client image.
Pulling Image from DockerHub #
For your ease, you can only pull the image from DockerHub just by running “docker pull benchpilot/benchpilot:client
”.
Building Image Locally #
If you want to build the image locally, you firstly need to download or clone our GitHub repository, go under the benchpilot-sdk
folder, and then execute the building image script by running the command “sh build-image.sh
”.
Start BenchPilot Client and start experimenting! #
The final step is to just execute the following docker-compose.yaml by running the simple command “docker-compose up
”. It is not needed from you to be familiarized with docker and docker-compose, but in case you want to learn more, you can always visit their website!
version: '3.8' # change it accordingly to your docker-compose version
services:
benchpilot:
# if you chose to build it locally replace the it with: bench-pilot
image: benchpilot/benchpilot:client
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
ports:
- 8888:8888 # port needed for jupyter
environment:
# define http(s)_proxy only if your devide is placed behind a proxy
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
# jupyter environment variables
- "JUPYTER_ENABLE_LAB=yes"
- "GRANT_SUDO=yes"
- "CHOWN_HOME=yes"
# Prometheus environment variables
- PROMETHEUS_IP=0.0.0.0
- PROMETHEUS_PREFIX=${your_datacenter_prefix}
user: root
After starting the BenchPilot client, you can access jupyter through your browser from this link: “http://your_device_ip:8888
”, and start experimenting!