Commit 043a4f34 authored by Philipp Götze's avatar Philipp Götze
Browse files

🐳 Prepared Docker File and Image for CI among other uses

parent 4398c0f9
Pipeline #110 failed with stages
in 30 minutes and 50 seconds
image: "pmem/libpmemobj-cpp:fedora-30"
image: "dbisilm/nvm-based_data_structures:latest"
stages:
- build
- test
before_script:
# - echo pass | sudo -S dnf update -y
- echo pass | sudo -S dnf install -y cmake libpmemobj++-devel
build:
stage: build
script:
- ls -l /usr/lib64/libpmem*
- ls -l /usr/include/libpmem*
- pwd
- mkdir build
- cd build
- cmake -DCMAKE_CXX_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage" ../src
- cmake -DCMAKE_CXX_FLAGS="-g -O0 -fprofile-arcs -ftest-coverage" ../src
- make -j
artifacts:
paths:
......
FROM fedora:latest
MAINTAINER Philipp Goetze <philipp.goetze@tu-ilmenau.de>
RUN dnf update -y \
&& dnf install -y \
passwd \
git \
make \
cmake \
g++ \
ndctl-devel \
daxctl-devel \
libpmemobj++-devel \
&& dnf clean all
# Add user and allow sudo
ENV USER user
ENV USERPASS pass
RUN useradd -m $USER \
&& echo $USERPASS | /usr/bin/passwd $USER --stdin
RUN gpasswd wheel -a $USER
USER $USER
# Set some environment variables
ENV PMEM_IS_PMEM_FORCE 1
ENV CC gcc
ENV CXX g++
# Download and prepare project
RUN cd /home/$USER \
&& git clone https://dbgit.prakinf.tu-ilmenau.de/code/nvm-based_data_structures.git \
&& mkdir nvm-based_data_structures/build \
&& cd nvm-based_data_structures/build \
&& cmake ../src
Supports Markdown
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