Commit 5be2bcd8 authored by Anatolii Koval's avatar Anatolii Koval
Browse files

Docker. GCC 8.2.0. C++17

[Description]
- Docker infrastructure for the project;
- Compilation script;
- Build project against C++17 standart;
parent 0ee8bfdd
......@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 2.6)
project(NumA++ CXX)
# define c++ standard and issue all the warning demanded by this standard
add_definitions(-std=c++98 -pedantic)
add_definitions(-std=c++17 -pedantic)
# VERSION ==================================================================================
......
FROM gcc:8.2.0
ENV WORKSPACE="/root/workspace/"
WORKDIR ${WORKSPACE}
RUN apt-get update && \
apt-get install -y libeigen3-dev libcln-dev libsfml-dev libqt4-dev libqt4-sql-mysql cmake git
RUN cd ${WORKSPACE} && \
git clone https://drf-gitlab.cea.fr/partons/core/elementary-utils.git && \
cd ${WORKSPACE}elementary-utils/build && \
git checkout feature/docker-init && \
cmake -G"Unix Makefiles" ../ -DCMAKE_BUILD_TYPE=Debug && \
make && \
make install
#!/bin/bash
docker-compose run --rm numa /bin/bash "${@}"
version: '2'
services:
numa:
build: .
restart: 'no'
volumes:
- "./:/root/workspace/numa"
command: /bin/bash
#!/bin/bash
docker-compose run --rm numa /bin/bash -c "cd /root/workspace/numa/build && cmake -G'Unix Makefiles' ../ -DCMAKE_BUILD_TYPE=Debug && make"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment