Skip to content

Instantly share code, notes, and snippets.

@tokuhirom
Created June 27, 2016 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokuhirom/23fcdc2a9e9de15f5242af37727c1124 to your computer and use it in GitHub Desktop.
Save tokuhirom/23fcdc2a9e9de15f5242af37727c1124 to your computer and use it in GitHub Desktop.
Compile ansible as PIP wheel
# 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