-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (52 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:20.04
# Install and configure debconf
RUN \
apt-get -y update && \
apt-get install -y debconf-utils
# Install dependencies
RUN \
apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y pkg-config && \
apt-get install -y autoconf \
libndctl-dev \
ndctl \
libdaxctl-dev \
daxctl \
pandoc \
git \
make \
gpg \
wget \
build-essential \
software-properties-common \
curl \
htop \
man \
unzip \
vim \
qemu \
qemu-kvm
# Create pmem backing store directories
RUN mkdir -p /vms/qemu
# Get GPG signing key
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
# Add kitware repo to sources and update
RUN \
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null && \
apt-get update
# Add the kitware-archive-keyring package for updates
RUN \
rm /usr/share/keyrings/kitware-archive-keyring.gpg && \
apt-get install -y kitware-archive-keyring
# Install latest cmake
RUN \
apt-get -y update && \
apt-get install -y cmake
# Install PMDK
RUN \
git clone https://github.com/pmem/pmdk && \
cd pmdk && \
git checkout tags/1.11.1 && \
make && \
make install
CMD ["/bin/bash"]