Skip to content

Commit 0c88119

Browse files
committed
update Docker build commands
1 parent c2b74dc commit 0c88119

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runner.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
* 3. run ./runner
88
*
99
* Use Docker to compile for a specific Python version:
10-
* `docker run --rm -ti -v "$PWD:/x" -w "/x" python:3.6.8 g++ -o runner runner.cpp -fPIC -I/usr/local/include/python3.6m -I/usr/local/include/python3.6m -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -L/usr/local/lib -lpython3.6m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic`
10+
* cd build/
11+
* `docker run --rm -ti -v "$PWD/../:/x" -w "/x/build/" python:3.6.8 g++ -o runner ../runner.cpp -fPIC -I/usr/local/include/python3.6m -I/usr/local/include/python3.6m -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -L/usr/local/lib -lpython3.6m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -I. -L. -lAES`
1112
* To test that:
12-
* `docker run --rm -ti -v "$PWD:/x" -w "/x" python:3.6.8 ./runner`
13+
* `python3 -m pip install --user utmp`
14+
* `docker run --rm -ti -v "$PWD:/x" -w "/x" -v "$HOME/.local/lib/python3.8/:/root/.local/lib/python3.6:ro" python:3.6.8 ./runner`
1315
*
1416
* Ixtalo, 29.07.2020
1517
*

0 commit comments

Comments
 (0)