The repository is maintained at https://github.com/borodiliz/docker-yi-hack/
WORK IN PROGRESS
This docker image provides a development environment for the Hack for YI cameras which is maintained by @roleoroleo. All the necessary tools to build the project are provided by this docker image.
-
Prepare you .ssh directory. You should provide the .ssh directory that will be used in the container. As an example, you should add your public ssh key to your authorized_keys:
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
-
Clone roleoroleo/yi-hack-MStar
-
Run docker container (set ssh port and paths to your needs)
docker run -d
-v ~/yi-hack-MStar:/yi-hack-src \
-v ~/.ssh:/root/.ssh
-p 2225:22 \ borodiliz/yi-hack:latest -
Connect to docker container using SSH
ssh root@localhost -p 2225
-
Start coding!
cd /yi-hack-src # And start coding!
-
Clone this repository
-
Build and tag a new docker image
docker image build -t my-yi-hack:latest .
-
Run a new container
docker run -d
-v ~/yi-hack-MStar:/yi-hack-src \
-v ~/.ssh:/root/.ssh
-p 2225:22 \ my-yi-hack:latest