This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 503
Docker
bialesdaniel edited this page Oct 2, 2020
·
12 revisions
brew cask install docker
- Launch /Applications/Docker.app.
See Install Docker CE. The recommended approach is to install using the repository. See section "Install Docker CE", subsection "Install using the repository" and follow the instructions for:
- SET UP THE REPOSITORY followed by
- INSTALL DOCKER CE
See Docker CE if additional information is required.
- Launch Docker.
- From the folder containing the Dockerfile, build the Docker image.
docker build -t cmu-db/noisepage .
- docker will load your local repo into a
/repo
directory in the image
- Run the Docker image:
docker run -itd --name build cmu-db/noisepage
- Run CMake:
docker exec build cmake ..
docker exec build make
docker exec build make unittest
You can interact with the Docker image with
- single commands:
docker exec [-w WORKING_DIRECTORY] build BASH_COMMAND
- interactive:
docker exec -it build bash
- by default, the docker image starts in the
/repo/build
directory
Note: The below step DELETES all the work you have on Docker.
To stop the Docker image, run both:
docker container stop build
docker rm build
Docker on Windows and Docker on Mac do not behave nicely with LSAN. LSAN needs to be allowed to spawn a ptrace thread. You'll need to docker run --cap-add SYS_PTRACE ...
to get it working.
Carnegie Mellon Database Group Website