Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmoguy committed May 23, 2018
0 parents commit cec9c4b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Image name: faucet/python3

FROM faucet/base
RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
10 changes: 10 additions & 0 deletions Dockerfile.pi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Image name: faucet/python3-pi

FROM faucet/base-pi
RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Faucet Python3 Docker Image
========================

Docker image for `python3 <https://www.python.org>`_.

Pull from Docker Hub
--------------------

Built images are available on Docker Hub so that you don't need to build your own.

Images are available for the following architectures:

* `amd64 <https://hub.docker.com/r/faucet/python3/>`_
* `armhf (for raspberry pi) <https://hub.docker.com/r/faucet/python3-pi/>`_
4 changes: 4 additions & 0 deletions hooks/pre_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# We need qemu-user-static for arm/pi builds
docker run --rm --privileged multiarch/qemu-user-static:register --reset

0 comments on commit cec9c4b

Please sign in to comment.