Created
June 27, 2016 16:06
-
-
Save tokuhirom/23fcdc2a9e9de15f5242af37727c1124 to your computer and use it in GitHub Desktop.
Compile ansible as PIP wheel
This file contains hidden or 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
# docker build -t ansible-wheel . | |
# docker run --rm -v $PWD/output:/output -t ansible-egg | |
FROM centos:6.6 | |
RUN yum update -y | |
RUN yum install -y libffi-devel python-devel openssl-devel gcc wget | |
RUN wget https://bootstrap.pypa.io/get-pip.py | |
RUN python get-pip.py | |
WORKDIR /wheel/ | |
RUN pip wheel ansible | |
CMD rm -f /output/*.whl && cp /wheel/* /output/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment