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.
Update devcontainers for building debians (#4)
* Working towards depending on apt packages * Updates * Restore Spot C++ SDK builds Signed-off-by: Michel Hidalgo <[email protected]> * Remove unused gRPC CMake module Signed-off-by: Michel Hidalgo <[email protected]> * Restore cli11 dependency Signed-off-by: Michel Hidalgo <[email protected]> * Remove vcpkg reference in CPack config Signed-off-by: Michel Hidalgo <[email protected]> * Update arm version of the docker image --------- Signed-off-by: Michel Hidalgo <[email protected]> Co-authored-by: Michel Hidalgo <[email protected]>
- Loading branch information
1 parent
c8649f4
commit 966fdf4
Showing
9 changed files
with
166 additions
and
72 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,33 @@ | ||
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 \ | ||
libcli11-dev \ | ||
libeigen3-dev \ | ||
libgrpc++-dev \ | ||
libprotobuf-dev \ | ||
g++ \ | ||
pkg-config \ | ||
protobuf-compiler \ | ||
protobuf-compiler-grpc \ | ||
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 |
---|---|---|
@@ -1,29 +1,33 @@ | ||
FROM arm64v8/ubuntu:22.04 | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apt-get update --fix-missing &&\ | ||
apt-get install -y --no-install-recommends build-essential ca-certificates cmake 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 \ | ||
libcli11-dev \ | ||
libeigen3-dev \ | ||
libgrpc++-dev \ | ||
libprotobuf-dev \ | ||
g++ \ | ||
pkg-config \ | ||
protobuf-compiler \ | ||
protobuf-compiler-grpc \ | ||
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 &&\ | ||
export VCPKG_FORCE_SYSTEM_BINARIES=arm &&\ | ||
./bootstrap-vcpkg.sh -disableMetrics &&\ | ||
./vcpkg install grpc:arm64-linux &&\ | ||
./vcpkg install eigen3:arm64-linux &&\ | ||
./vcpkg install cli11:arm64-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,29 @@ | ||
FROM arm64v8/ubuntu:22.04 | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apt-get update --fix-missing &&\ | ||
apt-get install -y --no-install-recommends build-essential ca-certificates cmake 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 &&\ | ||
export VCPKG_FORCE_SYSTEM_BINARIES=arm &&\ | ||
./bootstrap-vcpkg.sh -disableMetrics &&\ | ||
./vcpkg install grpc:arm64-linux &&\ | ||
./vcpkg install eigen3:arm64-linux &&\ | ||
./vcpkg install cli11:arm64-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,13 @@ | ||
#!/usr/bin/env bash | ||
ARCH=$(dpkg --print-architecture) | ||
|
||
if [ "$ARCH" == "amd64" ]; then | ||
docker build -t spot_builder -f Dockerfile.amd64 . | ||
elif [ "$ARCH" == "arm64" ]; then | ||
docker build -t spot_builder -f Dockerfile.arm64 . | ||
else | ||
echo "Unknown architecture: $ARCH" > /dev/stderr | ||
exit 1 | ||
fi | ||
|
||
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 -DBUILD_SHARED_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
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