forked from boston-dynamics/spot-cpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working towards depending on apt packages
- Loading branch information
1 parent
c8649f4
commit 9a66160
Showing
7 changed files
with
395 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update --fix-missing &&\ | ||
apt-get install -y --no-install-recommends build-essential ca-certificates git g++ pkg-config python3 curl ninja-build tar zip unzip zlib1g-dev libssl-dev wget &&\ | ||
apt-get autoclean &&\ | ||
apt-get autoremove &&\ | ||
apt-get clean &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update --fix-missing \ | ||
&& apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
ca-certificates \ | ||
cmake \ | ||
git \ | ||
libeigen3-dev \ | ||
libgrpc++-dev \ | ||
libprotobuf-dev \ | ||
g++ \ | ||
pkg-config \ | ||
protobuf-compiler \ | ||
python3 \ | ||
curl \ | ||
ninja-build \ | ||
tar \ | ||
zip \ | ||
unzip \ | ||
zlib1g-dev \ | ||
libssl-dev \ | ||
wget \ | ||
&& apt-get autoclean \ | ||
&& apt-get autoremove \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN update-ca-certificates | ||
|
||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3.tar.gz &&\ | ||
tar -xzf cmake-3.28.3.tar.gz &&\ | ||
cd cmake-3.28.3 &&\ | ||
./configure &&\ | ||
make install &&\ | ||
cd .. &&\ | ||
rm cmake-3.28.3.tar.gz &&\ | ||
rm -r cmake-3.28.3 | ||
|
||
RUN git clone https://github.com/microsoft/vcpkg &&\ | ||
cd vcpkg &&\ | ||
git checkout 3b213864579b6fa686e38715508f7cd41a50900f &&\ | ||
./bootstrap-vcpkg.sh -disableMetrics &&\ | ||
./vcpkg install grpc:x64-linux &&\ | ||
./vcpkg install eigen3:x64-linux &&\ | ||
./vcpkg install cli11:x64-linux | ||
COPY entrypoint.sh . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update --fix-missing &&\ | ||
apt-get install -y --no-install-recommends build-essential ca-certificates git g++ pkg-config python3 curl ninja-build tar zip unzip zlib1g-dev libssl-dev wget &&\ | ||
apt-get autoclean &&\ | ||
apt-get autoremove &&\ | ||
apt-get clean &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN update-ca-certificates | ||
|
||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3.tar.gz &&\ | ||
tar -xzf cmake-3.28.3.tar.gz &&\ | ||
cd cmake-3.28.3 &&\ | ||
./configure &&\ | ||
make install &&\ | ||
cd .. &&\ | ||
rm cmake-3.28.3.tar.gz &&\ | ||
rm -r cmake-3.28.3 | ||
|
||
RUN git clone https://github.com/microsoft/vcpkg &&\ | ||
cd vcpkg &&\ | ||
git checkout 3b213864579b6fa686e38715508f7cd41a50900f &&\ | ||
./bootstrap-vcpkg.sh -disableMetrics &&\ | ||
./vcpkg install grpc:x64-linux &&\ | ||
./vcpkg install eigen3:x64-linux &&\ | ||
./vcpkg install cli11:x64-linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
docker run -v ~/spot-cpp-sdk:/spot-cpp-sdk spot_builder /entrypoint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
cd /spot-cpp-sdk/cpp | ||
if [ -d build ]; then | ||
rm -r build | ||
fi | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE -DBUILD_CHOREOGRAPHY_LIBS=ON | ||
make -j8 install package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.