These instructions are for setting up your local development environment if you are not using GitHub Codespaces.
-
Install Docker Desktop.
-
Install Visual Studio Code.
-
Clone the repository to your local machine:
git clone https://github.com/Microsoft-CISL/sqlite-autotuning.git cd sqlite-autotuning -
Open the cloned repository in Visual Studio Code.
-
Install the
@recommendedExtensions, especially the Remote - Containers extension for Visual Studio Code. -
Open the project in a Dev Container:
- Press
F1to open the Command Palette. - Type
Remote-Containers: Reopen in Containerand select it.
This will build the Docker container as specified in the
.devcontainerfolder and open your project inside that container. - Press
-
Clone the repository to your local machine:
git clone https://github.com/Microsoft-CISL/sqlite-autotuning.git cd sqlite-autotuning -
Clone the MLOS repository as a submodule:
git clone https://github.com/microsoft/MLOS.git MLOS
-
Create a new conda environment:
conda env create -f MLOS/conda-envs/environment.yml conda activate mlos
-
Install the required local dependencies:
pip install -U -r requirements.txt
-
Get the remote data files:
test -f mlos_bench.sqlite || wget -q -Nc https://mlospublic.z13.web.core.windows.net/sqlite-autotuning/mlos_bench.sqlite mkdir -p workdir/benchbase/db.bak && wget -q -c -O workdir/benchbase/db.bak/tpcc.db https://mlospublic.z13.web.core.windows.net/sqlite-autotuning/tpcc.db
-
Continue with the instructions in the README to set up and run the project.