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
bf468707
Unverified
Commit
bf468707
authored
Jan 17, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Dockerfile
parent
4272ae94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
4 deletions
+39
-4
Dockerfile
Dockerfile
+35
-2
build.sh
docker/build.sh
+3
-2
build.py
scripts/build.py
+1
-0
No files found.
Dockerfile
View file @
bf468707
...
@@ -2,6 +2,37 @@ FROM ubuntu:bionic
...
@@ -2,6 +2,37 @@ FROM ubuntu:bionic
WORKDIR
/usr/src/sdk
WORKDIR
/usr/src/sdk
COPY
*.cpp ./
COPY
*.h ./
COPY
*.txt ./
COPY
*.c ./
COPY
*.am ./
COPY
*.hpp ./
COPY
*.sh ./
COPY
*.m4 ./
COPY
*.gmp ./
COPY
*.ac ./
COPY
*.json ./
COPY
docker ./docker
COPY
build-aux ./build-aux
COPY
cert ./cert
COPY
intel-sgx-ssl ./intel-sgx-ssl
COPY
jsonrpc ./jsonrpc
COPY
leveldb ./leveldb
COPY
libBLS ./libBLS
COPY
m4 ./m4
COPY
scripts ./scripts
COPY
secure_enclave ./secure_enclave
COPY
sgx-gmp ./sgx-gmp
COPY
sgx-software-enable ./sgx-software-enable
COPY
trusted_libff ./trusted_libff
RUN
rm
-rf
/usr/src/sdk/leveldb/build/
RUN
apt-get update
&&
apt-get
install
-yq
--no-install-recommends
python-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-get update
&&
apt-get
install
-yq
--no-install-recommends
python-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 yasm cmake flex bison libprocps-dev ccache autoconf texinfo libssl-dev libboost-all-dev libjsonrpccpp-dev libjsonrpccpp-tools
RUN
apt
install
-y
libprotobuf10 yasm cmake flex bison libprocps-dev ccache autoconf texinfo libssl-dev libboost-all-dev libjsonrpccpp-dev libjsonrpccpp-tools
...
@@ -22,9 +53,11 @@ RUN git clone -b sgx_2.5 --depth 1 https://github.com/intel/linux-sgx && \
...
@@ -22,9 +53,11 @@ RUN git clone -b sgx_2.5 --depth 1 https://github.com/intel/linux-sgx && \
# COPY docker/jhi.conf /etc/jhi/jhi.conf
# COPY docker/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://76b7983ebf14269178b99eff5b2be4b4b56fe7a5:@github.com/skalenetwork/sgxwallet.git
#
RUN git clone --recurse-submodules https://76b7983ebf14269178b99eff5b2be4b4b56fe7a5:@github.com/skalenetwork/sgxwallet.git
WORKDIR
sgxwallet
#
WORKDIR sgxwallet
#RUN cd sgx-software-enable && make && ./sgx_enable
#RUN cd sgx-software-enable && make && ./sgx_enable
COPY
configure.gmp ./
RUN
cd
scripts
;
./build.py
RUN
cd
scripts
;
./build.py
### RUN autoreconf -vif
### RUN autoreconf -vif
### RUN automake
### RUN automake
...
...
docker/build.sh
View file @
bf468707
#!/bin/bash
#!/bin/bash
#sudo service docker start
#sudo service docker start
#sudo docker build -t sgxcontainer .
cd
..
cd
..
sudo
docker build
--no-cache
-t
sgxcontainer
.
sudo
docker build
-t
sgxcontainer
.
#sudo docker build --no-cache -t sgxcontainer .
scripts/build.py
View file @
bf468707
...
@@ -83,6 +83,7 @@ subprocess.call(["rm", "-rf", GMP_BUILD_DIR])
...
@@ -83,6 +83,7 @@ subprocess.call(["rm", "-rf", GMP_BUILD_DIR])
subprocess
.
call
([
"rm"
,
"-rf"
,
TGMP_BUILD_DIR
])
subprocess
.
call
([
"rm"
,
"-rf"
,
TGMP_BUILD_DIR
])
subprocess
.
call
([
"rm"
,
"-rf"
,
SDK_DIR
])
subprocess
.
call
([
"rm"
,
"-rf"
,
SDK_DIR
])
assert
subprocess
.
call
([
"cp"
,
"configure.gmp"
,
GMP_DIR
+
"/configure"
])
==
0
assert
subprocess
.
call
([
"cp"
,
"configure.gmp"
,
GMP_DIR
+
"/configure"
])
==
0
os
.
chdir
(
LEVELDB_DIR
)
os
.
chdir
(
LEVELDB_DIR
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"mkdir -p build"
])
==
0
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"mkdir -p build"
])
==
0
...
...
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