Skip to content

Commit ff8317d

Browse files
committed
Adds Docker Integration for SDK
1 parent 02d4fb2 commit ff8317d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM alpine:3.5
2+
3+
RUN mkdir -p /opt/sweep-sdk
4+
COPY . /opt/sweep-sdk
5+
WORKDIR /opt/sweep-sdk
6+
7+
RUN apk --no-cache add cmake make gcc g++ zeromq protobuf python2 python3 nodejs && \
8+
cd libsweep && \
9+
mkdir build && \
10+
cd build && \
11+
cmake .. -DCMAKE_BUILD_TYPE=Release && \
12+
cmake --build . && \
13+
cmake --build . --target install && \
14+
cd ../../ && \
15+
cd sweeppy && \
16+
python2 -m ensurepip && \
17+
python3 -m ensurepip && \
18+
pip2 install setuptools && \
19+
pip3 install setuptools && \
20+
python2 setup.py install && \
21+
python3 setup.py install && \
22+
cd .. && \
23+
cd sweepjs && \
24+
npm install --unsafe-perm

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ SDK for Scanse Sweep LiDAR.
99
- [SweepPy](sweeppy/README.md): Python bindings
1010
- [SweepJs](sweepjs/README.md): NodeJS bindings
1111

12+
In addition you can use the `scanse/sweep-sdk` Docker image which bundles up the SDK.
13+
14+
docker run --device /dev/ttyUSB0:/dev/ttyUSB0 -it scanse/sweep-sdk /bin/sh
15+
1216
Real-time viewer for a device speed of 5 Hz:
1317

1418
![viewer](https://cloud.githubusercontent.com/assets/527241/20300444/92ade432-ab1f-11e6-9d96-a585df3fe471.png)

0 commit comments

Comments
 (0)