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
7a7209df
Unverified
Commit
7a7209df
authored
Jan 24, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed add README toc
parent
05876288
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
3 deletions
+57
-3
Dockerfile
Dockerfile
+20
-0
DockerfileSimulation
DockerfileSimulation
+21
-0
ServerInit.cpp
ServerInit.cpp
+15
-2
start.sh
docker/start.sh
+1
-1
No files found.
Dockerfile
View file @
7a7209df
FROM
skalenetwork/sgxwallet_base:latest
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
jsonrpc ./jsonrpc
COPY
leveldb ./leveldb
COPY
m4 ./m4
COPY
scripts ./scripts
COPY
secure_enclave ./secure_enclave
COPY
spdlog ./spdlog
RUN
autoreconf
-vif
...
...
DockerfileSimulation
View file @
7a7209df
FROM skalenetwork/sgxwallet_base:latest
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 jsonrpc ./jsonrpc
COPY leveldb ./leveldb
COPY m4 ./m4
COPY scripts ./scripts
COPY secure_enclave ./secure_enclave
COPY spdlog ./spdlog
RUN autoreconf -vif
RUN libtoolize --force
RUN aclocal
...
...
ServerInit.cpp
View file @
7a7209df
...
...
@@ -58,15 +58,28 @@
#include "spdlog/spdlog.h"
#include <unistd.h>
#include <stdio.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
//#include <system>
void
init_daemon
()
{
libff
::
init_alt_bn128_params
();
std
::
string
sgx_data_folder
=
SGXDATA_FOLDER
;
char
cwd
[
PATH_MAX
];
if
(
getcwd
(
cwd
,
sizeof
(
cwd
))
==
NULL
)
{
spdlog
::
error
(
"could not get cwd"
);
exit
(
-
1
);
}
std
::
string
sgx_data_folder
=
string
(
cwd
)
+
"/"
+
SGXDATA_FOLDER
;
struct
stat
info
;
if
(
stat
(
sgx_data_folder
.
c_str
(),
&
info
)
!=
0
){
spdlog
::
info
(
"going to create sgx_data folder"
);
...
...
@@ -75,7 +88,7 @@ void init_daemon() {
spdlog
::
info
(
"sgx_data folder was created"
);
}
else
{
spdlog
::
info
(
"creating sgx_data folder failed"
);
spdlog
::
error
(
"creating sgx_data folder failed"
);
exit
(
-
1
);
}
}
...
...
docker/start.sh
View file @
7a7209df
...
...
@@ -8,5 +8,5 @@ jhid -d
pid
=
$!
sleep
2
/usr/src/sdk
/sgxwallet
$1
cd
/usr/src/sdk
;
.
/sgxwallet
$1
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