From 856a739677fcac0247d403a373bd92d0c6be834e Mon Sep 17 00:00:00 2001 From: liuxin Date: Thu, 16 May 2019 11:47:49 +0800 Subject: [PATCH 1/3] add docker build --- Dockerfile | 14 ++++++++++++++ README.md | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..641bdf9 --- /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 python3.7-dev && \ + apt-get clean + diff --git a/README.md b/README.md index 913f042..6e1725b 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 +```base``` +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/3.7 + Optionally, if you have `virtualenv` installed, you can test the executable you produced using `make check`. From 4f36c9bad5a989967b8851d454006cce7e0060bf Mon Sep 17 00:00:00 2001 From: liuxin Date: Thu, 16 May 2019 11:49:04 +0800 Subject: [PATCH 2/3] fix readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e1725b..f3bdec1 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The `make` command will produce an executable at `src/pyflame` that you can run and use. Or you can use docker to build pyflame -```base``` +```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" ``` From 7925c4c0a0f62f266d7b4a1b1cf13ba6b070565e Mon Sep 17 00:00:00 2001 From: meteorix Date: Mon, 20 May 2019 10:43:13 +0800 Subject: [PATCH 3/3] backport to uber/master removing py37 supoort --- Dockerfile | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 641bdf9..a0d1168 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,6 @@ RUN apt-get -y update && \ 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 python3.7-dev && \ + python2.7-dev python3.5-dev python3.6-dev && \ apt-get clean diff --git a/README.md b/README.md index f3bdec1..eb84669 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Or you can use docker to build pyflame 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/3.7 +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`.