Dockerfile 906 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
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       \
13
        libpmempool-devel  \
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
        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 \
36
 && cmake ..