Skip to content

Commit

Permalink
Added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anuramubc committed Feb 26, 2024
1 parent 64042df commit a7dadad
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libzip-dev libeigen3-dev nlohmann-json3-dev libspdlog-dev libgtest-dev
sudo apt-get install -y libeigen3-dev nlohmann-json3-dev libspdlog-dev
- name: Install Libzip
run: |
git clone https://github.com/nih-at/libzip.git
cd libzip
mkdir build
cd build
cmake ..
sudo make
make install
- name: Install Google Test v1.12.1
run: |
git clone -b release-1.12.1 https://github.com/google/googletest.git
Expand Down
57 changes: 57 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Use Ubuntu as base image
FROM ubuntu:latest

# Set non-interactive mode
ENV DEBIAN_FRONTEND=noninteractive

# Update Ubuntu packages and install necessary dependencies
RUN apt-get update && apt-get install -y \
git \
cmake \
libeigen3-dev \
nlohmann-json3-dev \
libspdlog-dev \
build-essential \
zlib1g-dev\
&& rm -rf /var/lib/apt/lists/*

# Install Libzip
RUN git clone https://github.com/nih-at/libzip.git \
&& cd libzip \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make \
&& make install

# Install Google Test v1.12.1
RUN git clone -b release-1.12.1 https://github.com/google/googletest.git \
&& cd googletest \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make \
&& make install

# Install mio
RUN git clone -b master https://github.com/vimpunk/mio.git \
&& cd mio \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make \
&& make install

#setting the working directory
WORKDIR /app

#Copy the project to the container
COPY . .

#Run and build the project
RUN mkdir build && \
cd build && \
cmake .. && \
make


0 comments on commit a7dadad

Please sign in to comment.