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
17f59cdb
Unverified
Commit
17f59cdb
authored
Jan 20, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dockerf
parent
6d70cb1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
README.md
README.md
+18
-6
No files found.
README.md
View file @
17f59cdb
...
...
@@ -16,7 +16,6 @@ This sgxwallet library is still in active development and therefore should be re
```
bash
sudo
apt-get
install
build-essential make cmake gcc g++ yasm python libprotobuf10 flex bison automake libtool texinfo libgcrypt20-dev libgnutls28-dev
```
## Clone this repository and its submodules
...
...
@@ -88,22 +87,31 @@ make
```
Note: to run in simulation mode, add --enable-sgx-simulation flag when you run configure.
```
./configure --enable-sgx-simulation
```
## Running sgxwallet
Type:
```
bash
`
./sgxwallet
`
./sgxwallet
```
## Build Docker container
```
bash
sudo
apt-get
install
-y
docker.io
;
cd
docker
;
sudo
docker build
-t
sgxcontainer
.
```
## Build Docker container in simulation mode
```
`bash
sudo docker build -t sgxcontainersim -f ./DockerfileSimulation .
```
## Run Docker container
...
...
@@ -114,7 +122,6 @@ Then run
```
bash
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
...
...
@@ -126,9 +133,15 @@ You can start and stop running sgxwallet container by doing
```
bash
docker stop sgxwallet
docker start sgxwallet
```
## Run Docker container in simulation mode
```
bash
sudo
docker run
-di
--network
host
--name
sgxwalletsim sgxcontainersim ./start.sh
```
## Development
Note that
`configure, Makefile`
and
`Makefile.in`
files are created by
`automake`
tools on the fly.
...
...
@@ -152,7 +165,6 @@ cat $KEY_FILE
export
KEY_PEM_FILE
=
k.pem
openssl rsa
-in
$KEY_FILE
-text
>
$KEY_PEM_FILE
cat
$KEY_PEM_FILE
```
Next, send content of
`a.csr`
as single line (by replacing real end of lines with
`\n`
) to port
`1027`
.
...
...
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