Skip to content

Adds Docker Integration for SDK #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM alpine:3.5

RUN mkdir -p /opt/sweep-sdk
COPY . /opt/sweep-sdk
WORKDIR /opt/sweep-sdk

RUN apk --no-cache add cmake make gcc g++ zeromq protobuf python2 python3 nodejs && \
cd libsweep && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
cmake --build . && \
cmake --build . --target install && \
cd ../../ && \
cd sweeppy && \
python2 -m ensurepip && \
python3 -m ensurepip && \
pip2 install setuptools && \
pip3 install setuptools && \
python2 setup.py install && \
python3 setup.py install && \
cd .. && \
cd sweepjs && \
npm install --unsafe-perm
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ SDK for Scanse Sweep LiDAR.
- [SweepPy](sweeppy/README.md): Python bindings
- [SweepJs](sweepjs/README.md): NodeJS bindings

In addition you can use the `scanse/sweep-sdk` Docker image which bundles up the SDK.

docker run --device /dev/ttyUSB0:/dev/ttyUSB0 -it scanse/sweep-sdk /bin/sh

Real-time viewer for a device speed of 5 Hz:

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