Last active
December 12, 2015 05:37
-
-
Save yungchin/99ad8c472df9b85b34ba to your computer and use it in GitHub Desktop.
Dockerfile to quickly pull together a development environment for pykafka (with rdkafka).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
RUN apt-get -y update && \ | |
apt-get -y install python-dev python-pip git gcc make \ | |
python3 python3-dev \ | |
python-tox python3-setuptools \ | |
pypy pypy-dev \ | |
libev-dev libsnappy-dev \ | |
zlib1g-dev openjdk-7-jre-headless \ | |
vim-tiny | |
ADD https://github.com/edenhill/librdkafka/archive/58eb355f6df494a2e5363690c6ede70b38ff30f8.tar.gz /tmp/librdkafka.tar.gz | |
RUN cd /tmp && \ | |
tar -xzf librdkafka.tar.gz && mv librdkafka-* librdkafka && \ | |
cd /tmp/librdkafka && \ | |
./configure && \ | |
make && make install && \ | |
make clean && ./configure --clean | |
RUN pip install python-snappy kazoo unittest2 mock nose testinstances \ | |
ipython |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test: | |
build: . | |
volumes: | |
- .:/srv/pykafka | |
- .root:/root | |
- ~/tmp/kafka-bin/:/tmp/kafka-bin/ | |
working_dir: /srv/pykafka | |
environment: | |
# for finding librdkafka at runtime: | |
LD_LIBRARY_PATH: /usr/local/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment