This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
leave package installation in one OS (old Ubuntu - 19.10). It is needed, because rapidjson release package has a bug, which blocks pmemkv's compilation with C++20.
- Loading branch information
1 parent
777307d
commit b1e39e3
Showing
7 changed files
with
113 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2016-2020, Intel Corporation | ||
|
||
# | ||
# Dockerfile - a 'recipe' for Docker to build an image of ubuntu-based | ||
# environment prepared for running pmemkv build and tests. | ||
# | ||
|
||
# Pull base image | ||
FROM ubuntu:19.10 | ||
MAINTAINER [email protected] | ||
|
||
# Set required environment variables | ||
ENV OS ubuntu | ||
ENV OS_VER 19.10 | ||
ENV PACKAGE_MANAGER deb | ||
ENV NOTTY 1 | ||
|
||
# Additional parameters to build docker without building components | ||
ARG SKIP_VALGRIND_BUILD | ||
ARG SKIP_PMDK_BUILD | ||
ARG SKIP_LIBPMEMOBJCPP_BUILD | ||
|
||
# Update the Apt cache and install basic tools | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
autoconf \ | ||
automake \ | ||
build-essential \ | ||
clang \ | ||
clang-format-9 \ | ||
cmake \ | ||
curl \ | ||
debhelper \ | ||
devscripts \ | ||
doxygen \ | ||
fakeroot \ | ||
git \ | ||
graphviz \ | ||
libc6-dbg \ | ||
libdaxctl-dev \ | ||
libndctl-dev \ | ||
libmemkind-dev \ | ||
libnode-dev \ | ||
libnuma-dev \ | ||
libtbb-dev \ | ||
libtext-diff-perl \ | ||
libtool \ | ||
libunwind8-dev \ | ||
numactl \ | ||
pandoc \ | ||
pkg-config \ | ||
rapidjson-dev \ | ||
ruby \ | ||
sudo \ | ||
wget \ | ||
whois \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install valgrind | ||
COPY install-valgrind.sh install-valgrind.sh | ||
RUN ./install-valgrind.sh | ||
|
||
# Install pmdk | ||
COPY install-pmdk.sh install-pmdk.sh | ||
RUN ./install-pmdk.sh dpkg | ||
|
||
# Install pmdk c++ bindings | ||
COPY install-libpmemobj-cpp.sh install-libpmemobj-cpp.sh | ||
RUN ./install-libpmemobj-cpp.sh DEB | ||
|
||
# Add user | ||
ENV USER user | ||
ENV USERPASS pass | ||
RUN useradd -m $USER -g sudo -p `mkpasswd $USERPASS` | ||
USER $USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2020, Intel Corporation | ||
|
||
# | ||
# install-rapidjson.sh - installs rapidjson from sources | ||
# | ||
|
||
set -e | ||
|
||
git clone https://github.com/Tencent/rapidjson | ||
cd rapidjson | ||
# master: Merge pull request #1720 from madeso/master, 18.05.2020 | ||
git checkout 1a803826f1197b5e30703afe4b9c0e7dd48074f5 | ||
|
||
mkdir build | ||
cd build | ||
cmake .. | ||
make -j$(nproc) | ||
sudo make -j$(nproc) install | ||
|
||
cd ../.. | ||
rm -r rapidjson |