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
87a6a0bc
Unverified
Commit
87a6a0bc
authored
Dec 17, 2019
by
Sergiy Lavrynenko
Browse files
Options
Browse Files
Download
Plain Diff
SKALE-1850 build improvements
parents
47b9421c
8bee9b40
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
9 deletions
+51
-9
.travis.yml
.travis.yml
+14
-0
README.md
README.md
+34
-8
Dockerfile
docker/Dockerfile
+1
-0
start.sh
docker/start.sh
+2
-1
No files found.
.travis.yml
0 → 100644
View file @
87a6a0bc
sudo
:
required
services
:
-
docker
branches
:
only
:
-
develop
install
:
-
docker build -t sgxwallet docker
script
:
README.md
View file @
87a6a0bc
...
...
@@ -54,14 +54,6 @@ cd scripts; sudo ./sgx_linux_x64_sdk_2.5.100.49891.bin; cd ..
cd scripts; sudo ./install_packages.sh; cd ..
```
## Install automake 1.15
Currently the build builds with
**automake 1.15**
. You need to install it since Ubuntu 18 comes with
**automake 1.16**
by default.
```
cd scripts; sudo dpkg -i automake_1.15.1-3ubuntu2_all.deb; cd ..
```
## Build dependencies
Dependencies only need to be built once.
...
...
@@ -102,6 +94,40 @@ Type:
`./sgxwallet`
```
## Build Docker container
```
sudo apt-get install -y docker.io;
cd docker;
sudo docker build -t sgxcontainer .
```
## Run Docker container
Enable SGX and install SGX driver on the host machine as described above.
Then run
```
sudo docker run -di --network host --device /dev/isgx --device /dev/mei0 --name sgxwallet sgxcontainer ./start.sh
```
This will run the server in a Docker container named sgxwallet
You can check that the server is running by doing
```
telnet localhost 2027
```
You can start and stop running sgxwallet container by doing
```
docker stop sgxwallet
docker start sgxwallet
```
## Development
Note that
`configure, Makefile`
and
`Makefile.in`
files are created by
`automake`
tools on the fly.
...
...
docker/Dockerfile
View file @
87a6a0bc
...
...
@@ -37,3 +37,4 @@ RUN autoconf
RUN
./configure
### RUN cd libBLS; cmake -H. -Bbuild; cmake --build build -- -j$(nproc);
RUN
make
COPY
start.sh ./
docker/start.sh
100644 → 100755
View file @
87a6a0bc
...
...
@@ -6,5 +6,6 @@ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/intel/sgxpsw/aesm/
/opt/intel/sgxpsw/aesm/aesm_service &
pid
=
$!
sgxwallet
sleep
2
/usr/src/sdk/sgxwallet/sgxwallet
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