Skip to content
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

Docker configuration #13

Open
wants to merge 1 commit into
base: bebot_cpp
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
7 changes: 7 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3"
services:
bebot:
build:
context: ./..
dockerfile: ./docker/dockerfile

20 changes: 20 additions & 0 deletions docker/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:22.04
FROM gcc:latest
COPY . /app
WORKDIR /app

# Install dependencies
RUN apt-get update && apt-get install -y cmake libgtest-dev clang-format libboost-test-dev
# coinor-libipopt-dev has errors, commented for now

# Install Eigen3 (ligeigen-3dev does not install 3.4.0
RUN wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
RUN tar -xf eigen-3.4.0.tar.gz
WORKDIR /app/eigen-3.4.0/build
RUN cmake ..

# Compile
WORKDIR /app/build
RUN cmake ..
RUN make
CMD [ "./main" ]