Commit 0c4e7c0f authored by Alastair Robertson's avatar Alastair Robertson

Use same path inside and outside of container to fix debugging for docker builds

parent ce75e904
#!/bin/sh #!/bin/bash
pushd docker pushd docker
docker build -t bpftrace-builder -f Dockerfile.ubuntu . docker build -t bpftrace-builder -f Dockerfile.ubuntu .
popd popd
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/bpftrace bpftrace-builder docker run --rm -u $(id -u):$(id -g) -v $(pwd):$(pwd) bpftrace-builder "$(pwd)"
set -e set -e
cd /bpftrace DIR="$1/build-docker"
mkdir -p build-docker mkdir -p "$DIR"
cd build-docker cd "$DIR"
cmake -DCMAKE_BUILD_TYPE=Debug ../ cmake -DCMAKE_BUILD_TYPE=Debug ../
make make
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment