Ubuntu 18.04 build support
This commit is contained in:
parent
62f8983c5e
commit
c79c8987dc
5 changed files with 102 additions and 95 deletions
|
|
@ -67,7 +67,8 @@ RUN \
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. && \
|
cmake .. && \
|
||||||
make -j$(nproc) install
|
make -j$(nproc) install && \
|
||||||
|
ldconfig
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# cppzmq setup
|
# cppzmq setup
|
||||||
|
|
@ -82,7 +83,8 @@ RUN \
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. && \
|
cmake .. && \
|
||||||
make -j$(nproc) install
|
make -j$(nproc) install && \
|
||||||
|
ldconfig
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# Peerplays setup
|
# Peerplays setup
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ RUN \
|
||||||
WORKDIR /home/peerplays/
|
WORKDIR /home/peerplays/
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
cd src && \
|
|
||||||
wget -c 'https://cmake.org/files/v3.23/cmake-3.23.1-linux-x86_64.sh' -O cmake-3.23.1-linux-x86_64.sh && \
|
wget -c 'https://cmake.org/files/v3.23/cmake-3.23.1-linux-x86_64.sh' -O cmake-3.23.1-linux-x86_64.sh && \
|
||||||
chmod 755 ./cmake-3.23.1-linux-x86_64.sh && \
|
chmod 755 ./cmake-3.23.1-linux-x86_64.sh && \
|
||||||
./cmake-3.23.1-linux-x86_64.sh --prefix=/usr/ --skip-license && \
|
./cmake-3.23.1-linux-x86_64.sh --prefix=/usr/ --skip-license && \
|
||||||
|
|
@ -91,7 +90,8 @@ RUN \
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. && \
|
cmake .. && \
|
||||||
make -j$(nproc) install
|
make -j$(nproc) install && \
|
||||||
|
ldconfig
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# cppzmq setup
|
# cppzmq setup
|
||||||
|
|
@ -106,7 +106,8 @@ RUN \
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. && \
|
cmake .. && \
|
||||||
make -j$(nproc) install
|
make -j$(nproc) install && \
|
||||||
|
ldconfig
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# Peerplays setup
|
# Peerplays setup
|
||||||
|
|
|
||||||
180
README.md
180
README.md
|
|
@ -6,67 +6,49 @@ This is a quick introduction to get new developers and witnesses up to speed on
|
||||||
|
|
||||||
# Building and Installation Instructions
|
# Building and Installation Instructions
|
||||||
|
|
||||||
Officially supported OS is Ubuntu 18.04 and 20.04.
|
Officially supported OS are Ubuntu 20.04 and Ubuntu 18.04.
|
||||||
|
|
||||||
# To build for Ubuntu 18.04:
|
## Ubuntu 20.04
|
||||||
|
|
||||||
Following dependencies are needed for a clean install of Ubuntu 18.04:
|
Following dependencies are needed for a clean install of Ubuntu 20.04:
|
||||||
```
|
```
|
||||||
sudo apt-get install \
|
sudo apt-get install \
|
||||||
apt-utils autoconf bash build-essential ca-certificates dnsutils doxygen \
|
apt-utils autoconf bash build-essential ca-certificates clang-format cmake \
|
||||||
expect git graphviz libbz2-dev libcurl4-openssl-dev libncurses-dev \
|
dnsutils doxygen expect git graphviz libboost-all-dev libbz2-dev \
|
||||||
libreadline-dev libsnappy-dev libssl-dev libtool libzip-dev locales \
|
libcurl4-openssl-dev libncurses-dev libreadline-dev libsnappy-dev \
|
||||||
lsb-release mc nano net-tools ntp openssh-server pkg-config perl \
|
libssl-dev libtool libzip-dev locales lsb-release mc nano net-tools ntp \
|
||||||
python3 python3-jinja2 sudo systemd-coredump wget
|
openssh-server pkg-config perl python3 python3-jinja2 sudo \
|
||||||
|
systemd-coredump wget
|
||||||
```
|
```
|
||||||
# Boost setup
|
|
||||||
```
|
|
||||||
mkdir $HOME/src
|
|
||||||
cd $HOME/src
|
|
||||||
export BOOST_ROOT=$HOME/src/boost_1_67_0
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y autotools-dev build-essential libbz2-dev libicu-dev python-dev
|
|
||||||
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.bz2/download'\
|
|
||||||
-O boost_1_67_0.tar.bz2
|
|
||||||
tar xjf boost_1_67_0.tar.bz2
|
|
||||||
cd boost_1_67_0/
|
|
||||||
./bootstrap.sh "--prefix=$BOOST_ROOT"
|
|
||||||
./b2 install
|
|
||||||
```
|
|
||||||
# cmake setup
|
|
||||||
```
|
|
||||||
cd $HOME/src && \
|
|
||||||
wget -c 'https://cmake.org/files/v3.23/cmake-3.23.1-linux-x86_64.sh' -O cmake-3.23.1-linux-x86_64.sh && \
|
|
||||||
chmod 755 ./cmake-3.23.1-linux-x86_64.sh && \
|
|
||||||
./cmake-3.23.1-linux-x86_64.sh --prefix=/usr/ --skip-license && \
|
|
||||||
```
|
|
||||||
# libzmq setup
|
|
||||||
```
|
|
||||||
cd $HOME/src && \
|
|
||||||
wget https://github.com/zeromq/libzmq/archive/refs/tags/v4.3.4.zip && \
|
|
||||||
unzip v4.3.4.zip && \
|
|
||||||
cd libzmq-4.3.4 && \
|
|
||||||
mkdir build && \
|
|
||||||
cd build && \
|
|
||||||
cmake .. && \
|
|
||||||
make -j$(nproc) install
|
|
||||||
```
|
|
||||||
# cppzmq setup
|
|
||||||
```
|
|
||||||
cd $HOME/src && \
|
|
||||||
wget https://github.com/zeromq/cppzmq/archive/refs/tags/v4.8.1.zip && \
|
|
||||||
unzip v4.8.1.zip && \
|
|
||||||
cd cppzmq-4.8.1 && \
|
|
||||||
mkdir build && \
|
|
||||||
cd build && \
|
|
||||||
cmake .. && \
|
|
||||||
make -j$(nproc) install
|
|
||||||
```
|
|
||||||
## Building Peerplays
|
|
||||||
|
|
||||||
|
Install libzmq from source:
|
||||||
|
```
|
||||||
|
wget https://github.com/zeromq/libzmq/archive/refs/tags/v4.3.4.zip
|
||||||
|
unzip v4.3.4.zip
|
||||||
|
cd libzmq-4.3.4
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
Install cppzmq from source:
|
||||||
|
```
|
||||||
|
wget https://github.com/zeromq/cppzmq/archive/refs/tags/v4.8.1.zip
|
||||||
|
unzip v4.8.1.zip
|
||||||
|
cd cppzmq-4.8.1
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
Building Peerplays
|
||||||
```
|
```
|
||||||
mkdir $HOME/src
|
|
||||||
cd $HOME/src
|
|
||||||
git clone https://gitlab.com/PBSA/peerplays.git
|
git clone https://gitlab.com/PBSA/peerplays.git
|
||||||
cd peerplays
|
cd peerplays
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
@ -87,45 +69,62 @@ make -j$(nproc)
|
||||||
make install # this can install the executable files under /usr/local
|
make install # this can install the executable files under /usr/local
|
||||||
```
|
```
|
||||||
|
|
||||||
# To build for Ubuntu 20.04:
|
## Ubuntu 18.04
|
||||||
|
|
||||||
Following dependencies are needed for a clean install of Ubuntu 20.04:
|
Following dependencies are needed for a clean install of Ubuntu 18.04:
|
||||||
```
|
```
|
||||||
sudo apt-get install \
|
sudo apt-get install \
|
||||||
apt-utils autoconf bash build-essential ca-certificates clang-format cmake \
|
apt-utils autoconf bash build-essential ca-certificates dnsutils doxygen \
|
||||||
dnsutils doxygen expect git graphviz libboost-all-dev libbz2-dev \
|
expect git graphviz libbz2-dev libcurl4-openssl-dev libncurses-dev \
|
||||||
libcurl4-openssl-dev libncurses-dev libreadline-dev libsnappy-dev \
|
libreadline-dev libsnappy-dev libssl-dev libtool libzip-dev locales \
|
||||||
libssl-dev libtool libzip-dev libzmq3-dev locales lsb-release mc nano net-tools ntp \
|
lsb-release mc nano net-tools ntp openssh-server pkg-config perl \
|
||||||
openssh-server pkg-config perl python3 python3-jinja2 sudo wget
|
python3 python3-jinja2 sudo systemd-coredump wget
|
||||||
```
|
```
|
||||||
|
|
||||||
# libzmq setup
|
Install Boost libraries from source
|
||||||
```
|
```
|
||||||
wget https://github.com/zeromq/libzmq/archive/refs/tags/v4.3.4.zip && \
|
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.bz2/download' -O boost_1_67_0.tar.bz2
|
||||||
unzip v4.3.4.zip && \
|
tar xjf boost_1_67_0.tar.bz2
|
||||||
cd libzmq-4.3.4 && \
|
cd boost_1_67_0/
|
||||||
mkdir build && \
|
./bootstrap.sh
|
||||||
cd build && \
|
sudo ./b2 install
|
||||||
cmake .. && \
|
|
||||||
make -j$(nproc) install
|
|
||||||
```
|
|
||||||
# cppzmq setup
|
|
||||||
|
|
||||||
```
|
|
||||||
wget https://github.com/zeromq/cppzmq/archive/refs/tags/v4.8.1.zip && \
|
|
||||||
unzip v4.8.1.zip && \
|
|
||||||
cd cppzmq-4.8.1 && \
|
|
||||||
mkdir build && \
|
|
||||||
cd build && \
|
|
||||||
cmake .. && \
|
|
||||||
make -j$(nproc) install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building Peerplays
|
Install cmake
|
||||||
|
```
|
||||||
|
wget -c 'https://cmake.org/files/v3.23/cmake-3.23.1-linux-x86_64.sh' -O cmake-3.23.1-linux-x86_64.sh
|
||||||
|
chmod 755 ./cmake-3.23.1-linux-x86_64.sh
|
||||||
|
sudo ./cmake-3.23.1-linux-x86_64.sh --prefix=/usr/ --skip-license
|
||||||
|
```
|
||||||
|
|
||||||
|
Install libzmq from source:
|
||||||
|
```
|
||||||
|
wget https://github.com/zeromq/libzmq/archive/refs/tags/v4.3.4.zip
|
||||||
|
unzip v4.3.4.zip
|
||||||
|
cd libzmq-4.3.4
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
Install cppzmq from source:
|
||||||
|
```
|
||||||
|
wget https://github.com/zeromq/cppzmq/archive/refs/tags/v4.8.1.zip
|
||||||
|
unzip v4.8.1.zip
|
||||||
|
cd cppzmq-4.8.1
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
Building Peerplays
|
||||||
```
|
```
|
||||||
mkdir $HOME/src
|
|
||||||
cd $HOME/src
|
|
||||||
git clone https://gitlab.com/PBSA/peerplays.git
|
git clone https://gitlab.com/PBSA/peerplays.git
|
||||||
cd peerplays
|
cd peerplays
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
@ -164,10 +163,15 @@ sudo usermod -a -G docker $USER
|
||||||
docker pull datasecuritynode/peerplays:latest
|
docker pull datasecuritynode/peerplays:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building docker image manually
|
### Building docker images manually
|
||||||
```
|
```
|
||||||
# Build docker image (from the project root, must be a docker group member)
|
# Execute from the project root, must be a docker group member
|
||||||
docker build -t peerplays .
|
|
||||||
|
# Build docker image, using Ubuntu 20.04 base
|
||||||
|
docker build --no-cache -f Dockerfile -t peerplays .
|
||||||
|
|
||||||
|
# Build docker image, using Ubuntu 18.04 base
|
||||||
|
docker build --no-cache -f Dockerfile.18.04 -t peerplays-18-04 .
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start docker image
|
### Start docker image
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace graphene { namespace chain {
|
||||||
static const uint8_t type_id = son_wallet_deposit_object_type;
|
static const uint8_t type_id = son_wallet_deposit_object_type;
|
||||||
|
|
||||||
time_point_sec timestamp;
|
time_point_sec timestamp;
|
||||||
uint32_t block_num;
|
uint32_t block_num = 0;
|
||||||
sidechain_type sidechain = sidechain_type::unknown;
|
sidechain_type sidechain = sidechain_type::unknown;
|
||||||
std::string sidechain_uid;
|
std::string sidechain_uid;
|
||||||
std::string sidechain_transaction_id;
|
std::string sidechain_transaction_id;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace graphene { namespace chain {
|
||||||
static const uint8_t type_id = son_wallet_withdraw_object_type;
|
static const uint8_t type_id = son_wallet_withdraw_object_type;
|
||||||
|
|
||||||
time_point_sec timestamp;
|
time_point_sec timestamp;
|
||||||
uint32_t block_num;
|
uint32_t block_num = 0;
|
||||||
sidechain_type sidechain = sidechain_type::unknown;
|
sidechain_type sidechain = sidechain_type::unknown;
|
||||||
std::string peerplays_uid;
|
std::string peerplays_uid;
|
||||||
std::string peerplays_transaction_id;
|
std::string peerplays_transaction_id;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue