forked from IRAS-HKA/r2e_tutorial
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart_docker.sh
executable file
·32 lines (25 loc) · 897 Bytes
/
start_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
uid=$(eval "id -u")
gid=$(eval "id -g")
docker build --no-cache --build-arg UID="$uid" --build-arg GID="$gid" --build-arg DOMAIN_ID=0 --build-arg CACHE_BUST="$(date +%s)" -t llm_docker .
RUN git clone -b devel https://github.com/eshan-savla/object_detector_tensorflow.git
RUN mv ./object_detector_tensorflow/ros/object_detector_tensorflow_interfaces . && \
rm -rf ./object_detector_tensorflow
SRC_CONTAINER=/home/robot/ros_ws/src
SRC_HOST=./src
SRC_CONTAINER_2=/home/robot/ros_ws/src/object_detector_tensorflow_interfaces
SRC_HOST_2=./src/object_detector_tensorflow_interfaces
docker run \
-it \
--cpus=4 \
--memory=8g \
--name llm_docker \
--privileged \
--rm \
-e DISPLAY=$DISPLAY \
--volume=/dev:/dev \
--volume=$SRC_HOST:$SRC_CONTAINER:rw \
--volume $SRC_HOST_2:$SRC_CONTAINER_2:rw \
--network=host \
llm_docker
#