FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Dockerised btcpp_sample by cardboardcode · Pull Request #3 · BehaviorTree/btcpp_sample · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension No extension  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
38 changes: 38 additions & 0 deletions Dockerfile
This file contains hidden or 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,38 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
git \
libzmq3-dev \
libsqlite3-dev \
libgtest-dev && \
rm -rf /var/lib/apt/lists/*

# Clone BehaviorTree.CPP for a source build
WORKDIR /usr/src/btcpp
RUN git clone https://github.com/BehaviorTree/BehaviorTree.CPP.git . --depth 1 --single-branch --branch 4.7.0

# Compile and install BehaviorTree.CPP
RUN mkdir build && \
cd build && \
cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=ON && \
make -j$(nproc) && \
make install

# Copy in btcpp_sample content.
WORKDIR /usr/src/
COPY ./ btcpp_sample
WORKDIR /usr/src/btcpp_sample

# Compile btcpp_sample Cmake project.
RUN mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc)
WORKDIR /usr/src/btcpp_sample/build

CMD ["./btcpp_sample"]

Back | FazBrowse Home | New Git URL