Skip to content

Conversation

@liuqun
Copy link

@liuqun liuqun commented Jul 26, 2018

An implementation for issue #9

It enables image cross-building from any 64-bit PC.

And I have uploaded another none-official docker image for raspberry pi 2/3 at:

Welcome to test (I have only one Raspberry Pi 2 at hand. And I don't know whether my docker image works on other device or not.)

Raspberry Pi 2/3:

  • docker run -it -p 8888:8888 -v $HOME:/notebooks/ liuqun/rpi-docker-tensorflow:1.9.0

PC x86_64:

  • docker run --rm --privileged multiarch/qemu-user-static:register
  • docker run -it -p 8888:8888 -v $HOME:/notebooks/ liuqun/rpi-docker-tensorflow:1.9.0

The docker image liuqun/rpi-docker-tensorflow:1.9.0 contains:

  • Docker base image multiarch/debian-debootstrap:armhf-stretch
  • Python 2.7
  • tensorflow-1.9.0-cp27-none-linux_armv7l.whl
  • numpy-1.14.5 from source
  • lots of other packages shipped with Raspbian through pip install

Liu Qun added 4 commits July 25, 2018 11:09
Raspbian has shipped many 3rd-party python wheels through
https://www.piwheels.org/simple including tensorflow. This made
building docker images much easier.

This patch upgrades the following 3rd-party packages:
- https://bootstrap.pypa.io/get-pip.py
- numpy==1.15.0
- tensorflow==1.9.0

Deb package python-numpy and python-scipy were removed to avoid conficts
reported by pip install.

Deb package libatlas3-base was added. Because it was needed by numpy.

Signed-off-by: Liu Qun <[email protected]>
This enables cross-building from x86 host.

Signed-off-by: Liu Qun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant