Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
47b9421c
Unverified
Commit
47b9421c
authored
Dec 17, 2019
by
Sergiy Lavrynenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-1850 build improvements
parent
544c2c1c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
13 deletions
+24
-13
README.md
README.md
+1
-1
Dockerfile
docker/Dockerfile
+16
-10
build.sh
docker/build.sh
+3
-0
build.sh
jsonrpc/build.sh
+3
-1
install_packages.sh
scripts/install_packages.sh
+1
-1
No files found.
README.md
View file @
47b9421c
...
...
@@ -9,7 +9,7 @@
## Install Prerequisites
```
sudo apt-get install build-essential make cmake gcc g++ python libprotobuf10 flex bison automake libtool texinfo libg
nutls30
sudo apt-get install build-essential make cmake gcc g++ python libprotobuf10 flex bison automake libtool texinfo libg
crypt20-dev libgnutls28-dev
```
## Clone this repository and its submodules
...
...
docker/Dockerfile
View file @
47b9421c
...
...
@@ -2,9 +2,11 @@ FROM ubuntu:bionic
WORKDIR
/usr/src/sdk
RUN
apt-get update
&&
apt-get
install
-yq
--no-install-recommends
yaml vim telnet git ca-certificates build-essential ocaml ocamlbuild automake autoconf libtool wget python libssl-dev libssl-dev libcurl4-openssl-dev protobuf-compiler git libprotobuf-dev alien cmake debhelper uuid-dev libxml2-dev
RUN
apt
install
-y
libprotobuf10 cmake flex bison libprocps-dev ccache autoconf texinfo libssl-dev libboost-all-dev libjsonrpccpp-dev libjsonrpccpp-tools
RUN
apt update
RUN
apt
install
-y
libprotobuf10 cmake flex bison ccache autoconf texinfo libgcrypt20-dev libgnutls28-dev
RUN
apt
install
-yq
--no-install-recommends
vim telnet git ca-certificates build-essential ocaml ocamlbuild automake autoconf libtool wget python python-setuptools python-pip protobuf-compiler git libprotobuf-dev alien cmake debhelper uuid-dev libxml2-dev
### RUN apt install -yq yaml libprocps-dev libssl-dev libssl-dev libcurl4-openssl-dev libssl-dev libboost-all-dev libjsonrpccpp-dev libjsonrpccpp-tools
RUN
pip
install
pyyaml
COPY
install-psw.patch ./
...
...
@@ -18,16 +20,20 @@ RUN git clone -b sgx_2.5 --depth 1 https://github.com/intel/linux-sgx && \
cd
..
&&
rm
-rf
linux-sgx/
# For debug purposes
# COPY jhi.conf /etc/jhi/jhi.conf
RUN
git clone
--recurse-submodules
https://
76b7983ebf14269178b99eff5b2be4b4b56fe7a5:@
github.com/skalenetwork/sgxwallet.git
### RUN git clone --recurse-submodules https://76b7983ebf14269178b99eff5b2be4b4b56fe7a5:@github.com/skalenetwork/sgxwallet.git
RUN
git clone
--recurse-submodules
https://github.com/skalenetwork/sgxwallet.git
WORKDIR
sgxwallet
RUN
cd
scripts
;
./build.py
RUN
autoreconf
-vif
RUN
automake
RUN
cd
scripts
;
./build.py
### RUN autoreconf -vif
### RUN automake
RUN
libtoolize
--force
RUN
aclocal
RUN
autoheader
RUN
automake
--force-missing
--add-missing
RUN
autoconf
RUN
./configure
RUN
cd
libBLS
;
cmake
-H
.
-Bbuild
;
cmake
--build
build
--
-j
$(
nproc
)
;
###
RUN cd libBLS; cmake -H. -Bbuild; cmake --build build -- -j$(nproc);
RUN
make
docker/build.sh
0 → 100755
View file @
47b9421c
#!/bin/bash
sudo
service docker start
sudo
docker build
-t
sgxcontainer
.
jsonrpc/build.sh
View file @
47b9421c
...
...
@@ -90,7 +90,9 @@ make
make
install
cd
..
tar
-xzf
./pre_downloaded/libjson-rpc-cpp.tar.gz
#tar -xzf ./pre_downloaded/libjson-rpc-cpp.tar.gz
git clone https://github.com/skalenetwork/libjson-rpc-cpp.git
--recursive
git checkout develop
cd
libjson-rpc-cpp
rn
-rf
build
||
true
mkdir
-p
build
...
...
scripts/install_packages.sh
View file @
47b9421c
sudo
dpkg
-i
*
.deb
sudo
apt
install
cmake flex bison ccache autoconf texinfo libg
nutls30
sudo
apt
install
cmake flex bison ccache autoconf texinfo libg
crypt20-dev libgnutls28-dev
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment