lhelontra / tensorflow-on-arm

TensorFlow for Arm
MIT License
1.05k stars 274 forks source link

Pre-built debian docker image with all the dependencies intalled #22

Closed liuqun closed 6 years ago

liuqun commented 6 years ago

Install docker on any 64-bit Linux host OS:

wget -qO- https://get.docker.com/ | sh
sudo usermod -aG docker $USER
sudo systemctl enable docker
sudo systemctl restart docker
# Reboot to make sure the Unix group membership in /etc/groups is configured for new logins

Pull the image:

docker pull daocloud.io/liuqun1986/tensorflow-on-arm

Start a container for cross-building:

mkdir -p /tmp/userconfigs /tmp/output_tmp

docker run -it --name my_container_name \
    -v /tmp/userconfigs:/root/userconfigs \
    -v /tmp/output_tmp:/tmp/ \
    daocloud.io/liuqun1986/tensorflow-on-arm:latest \
    /bin/bash

Inside the container:

cd /root
./build_tensorflow.sh /root/configs/rpi.conf
# or
./build_tensorflow.sh /root/userconfigs/xxx.conf
liuqun commented 6 years ago

The docker image were built using an online cloud service provider from China called DaoCloud. I've set up an personal open source project at https://dashboard.daocloud.io/packages/5f8ba788-21e8-4308-90c5-3025e1fb0190 (This service provider hasn't provide English translations yet. And it needs registering with your github id to login...)

Dockerfile is hosted in github: https://github.com/liuqun/tensorflow-on-arm/blob/docker-without-travis/build_tensorflow/Dockerfile