Public Repository

Last pushed: 2 years ago
Short Description
buildroot-based python2.7.10 image for armv7 raspberrypi 2
Full Description

This docker python2.7 image has a virtual size of ~43.8MB and was built using Docker version 1.7.1, build 786b29d under ArchLinux on an armv7 rpi2 plug. There is no linux package manager included with this image.

Some people may ask - "why do you need this image if raspbian already has python installed?"

I run my rpi2 devices using ArchLinux. ArchLinux from archlinuxarm.org usually has the most up-to-date packages out there, including docker 1.7.1 as 2015-08-15. And yes, Docker runs really well as a 32-bit application. Docker is an emerging antidote for integration and deployment of commercial and industrial apps I'm interested in building and supporting.

This image was prepared using buildroot2 from 2015-08-15 running on an x86_64 host. The kernel is customized to remove unneeded modules. Otherwise, it was cross-compiled using buildroot defaults.

/ # uname -a
Linux 73d29b961ced 4.1.5-1-ARCH #1 SMP PREEMPT Wed Aug 12 19:02:34 MDT 2015 armv7l GNU/Linux
/ #
The docker image has a ONBUILD trigger to install python pip. This is there for people are like me who are clueless about anarchisms such as pip. Thinking some people would want to have pip available to install Python modules.

v2 adds curl and nano for convenience.

/ # python
Python 2.7.10 (default, Aug 17 2015, 00:58:28)
[GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>

python 2.7.10 was cross-compiled with the following modules:

python-certifi
python-flask
python-httplib2
python-requests
python-simplejson
sqlite
xml
zlib
bzip2
curses
readline
hashlib
here is the output from docker inspect for this image:

$ docker inspect dbd8a6a57f81
[
{
"Id": "dbd8a6a57f816181eb84162b35833e30966b17b017978b987096eb0ba49606d6",
"Parent": "2c15693c85e63abbe3c46f0c67cd74cd16bca60d0a0293d9c1a4751fed514961",
"Comment": "",
"Created": "2015-08-17T01:12:45.136642402Z",
"Container": "ff4d4a6247254b62a6c8334d9b4aaced1d8005c4a01f3f8e18d485e00590c8a8",
"ContainerConfig": {
"Hostname": "d6215b0a9e28",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"PortSpecs": null,
"ExposedPorts": null,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": [
"/bin/sh",
"-c",
"#(nop) CMD [\"/bin/sh\"]"
],
"Image": "2c15693c85e63abbe3c46f0c67cd74cd16bca60d0a0293d9c1a4751fed514961",
"Volumes": null,
"VolumeDriver": "",
"WorkingDir": "",
"Entrypoint": null,
"NetworkDisabled": false,
"MacAddress": "",
"OnBuild": [
"RUN [\"python\", \"/usr/lib/python2.7/ensurepip/\"]"
],
"Labels": {}
},
"DockerVersion": "1.7.1",
"Author": "Peter Friedland \u003cpeter@mansfield-analytics.com\u003e",
"Config": {
"Hostname": "d6215b0a9e28",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"PortSpecs": null,
"ExposedPorts": null,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": [
"/bin/sh"
],
"Image": "2c15693c85e63abbe3c46f0c67cd74cd16bca60d0a0293d9c1a4751fed514961",
"Volumes": null,
"VolumeDriver": "",
"WorkingDir": "",
"Entrypoint": null,
"NetworkDisabled": false,
"MacAddress": "",
"OnBuild": [
"RUN [\"python\", \"/usr/lib/python2.7/ensurepip/\"]"
],
"Labels": {}
},
"Architecture": "arm",
"Os": "linux",
"Size": 0,
"VirtualSize": 43805035
}
]

Docker Pull Command
Owner
malware

Comments (0)