Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created May 24, 2015 21:23
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ipmb/d38ea7952c0150b65e3c to your computer and use it in GitHub Desktop.
Save ipmb/d38ea7952c0150b65e3c to your computer and use it in GitHub Desktop.
Example wheel upload to simple PyPI on S3
FROM ubuntu:14.04
ENV BUCKET your-s3-bucket
RUN apt-get update && apt-get install -y wget \
build-essential python-dev \
libssl-dev libffi-dev \
libpcre3-dev \
libmemcached-dev \
libpq-dev \
libxml2-dev libxslt1-dev \
libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
RUN pip install pip2pi awscli \
pyOpenSSL ndg-httpsclient pyasn1
ADD requirements.txt requirements.txt
RUN mkdir -p /dist && pip wheel --wheel-dir=/dist -r requirements.txt
RUN dir2pi --normalize-package-names /dist
CMD aws s3 sync --acl=public-read /dist/simple s3://$BUCKET/ubuntu-1404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment