-
-
Save kaoudis/cf412abafea5ca4054c852f9e5905aab to your computer and use it in GitHub Desktop.
polytracker ubuntu workspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eux | |
| sudo apt-get -y update | |
| sudo apt-get -y install build-essential ca-certificates containerd.io curl docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin gdb git make pkg-config python3-pip python3-virtualenv ripgrep valgrind wget | |
| curl -LO https://trunk.io/releases/trunk | |
| git clone git@github.com:trailofbits/polytracker.git && cd polytracker | |
| virtualenv -p /usr/bin/python3 polytracker-venv | |
| source polytracker-venv/bin/activate | |
| git submodule update --init --recursive | |
| pip3 install -e ".[dev]" | |
| docker build -t trailofbits/polytracker -f Dockerfile . |
Author
Author
also possibly not wanted by everyone but act is a nice tool for testing GH Actions changes locally:
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bashcf https://nektosact.com/installation/index.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've tagged the local Polytracker main Docker build with
trailofbits/polytrackerabove. Then, to make a new local Polytracker container and pass through the working localpolytrackerGit repo directory into it for experimentation and analysis in an environment with our derivative compiler-rt (this is primarily useful for working on the Python part of Polytracker, which is mainly the "read side" TDAG analysis code), also:This works beautifully in a Linux on-demand VM provisioned with a lot of RAM, but may be slow on your local machine depending on your hardware.