diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a0d1168 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:16.04 + +RUN apt-get -y update && \ + apt-get install -yqq --no-install-recommends \ + software-properties-common autoconf automake autotools-dev g++ pkg-config libtool make && \ + apt-get clean + + +RUN add-apt-repository ppa:deadsnakes/ppa +RUN apt-get -y update && \ + apt-get install -yqq --no-install-recommends \ + python2.7-dev python3.5-dev python3.6-dev && \ + apt-get clean + diff --git a/README.md b/README.md index 913f042..eb84669 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,13 @@ make The `make` command will produce an executable at `src/pyflame` that you can run and use. +Or you can use docker to build pyflame +```bash +sudo docker build --tag pyflame . +sudo docker run -it -v $(pwd):/root/pyflame pyflame /bin/bash -c "cd /root/pyflame;./autogen.sh;./configure;make" +``` +This will also produce the executable at `src/pyflame`, which support py2.6/2.7/3.4/3.5/3.6 + Optionally, if you have `virtualenv` installed, you can test the executable you produced using `make check`.