Commit ec1de4b4 authored by David Wilson's avatar David Wilson

tests: ensure strace is available in the docker image..

..and enable privileged=True since that's needed for ptrace()
parent 247f50e0
......@@ -40,6 +40,8 @@ RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
RUN apt-get install -y strace && apt-get clean && { echo '#!/bin/bash\nexec strace -ff -o /tmp/pywrap$$.trace python2.7 "$@"' > /usr/local/bin/pywrap; chmod +x /usr/local/bin/pywrap; }
"""
......
......@@ -134,6 +134,7 @@ class DockerizedSshDaemon(object):
self.container = self.docker.containers.run(
image='d2mw/mitogen-test',
detach=True,
privileged=True,
publish_all_ports=True,
)
self.container.reload()
......
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