feat: added docker

This commit is contained in:
dmi3coder 2023-04-25 19:01:14 +02:00
parent 3deba3358a
commit 281dc5fcb8
4 changed files with 29 additions and 2 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
build/**
build

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
.vscode
build
/build
/cmake-build*
.idea

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM osrf/ros:noetic-desktop-full
RUN apt-get update
RUN apt-get -y install python3-catkin-tools
ADD . / data/
WORKDIR data
RUN mkdir build
WORKDIR build
ENV CMAKE_PREFIX_PATH=/opt/ros/noetic
RUN bash -c 'cmake ..'
RUN make

View File

@ -3,3 +3,13 @@ documentation
[unitree-z1-docs-english](http://dev-z1.unitree.com)
[unitree-z1-docs-chinese](http://dev-z1.cn.unitree.com)
see [unitree-z1-docs](http://dev-z1.unitree.com)
## Build docker image
docker build . -t bytelogics:z1_controller
## Run the docker instance
docker run -ti --rm --network host -p 8071:8071 bytelogics:z1_controller
once new shell connects, run `z1_ctrl`