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
f53e5094
Unverified
Commit
f53e5094
authored
Nov 05, 2020
by
Oleh Nikolaiev
Committed by
GitHub
Nov 05, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #201 from skalenetwork/task/SKALE-3472-use-signed-sgx
SKALE-3472 Use signed enclave in release containers
parents
f27e231a
aa412e49
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
Dockerfile
Dockerfile
+2
-0
DockerfileRelease
DockerfileRelease
+6
-0
DockerfileSimulation
DockerfileSimulation
+1
-0
start.sh
docker/start.sh
+1
-1
No files found.
Dockerfile
View file @
f53e5094
...
...
@@ -10,4 +10,6 @@ RUN bash -c "make -j$(nproc)"
RUN
ccache
-sz
RUN
mkdir
-p
/usr/src/sdk/sgx_data
COPY
docker/start.sh ./
RUN
rm
-rf
/usr/src/sdk/sgx-sdk-build/
RUN
rm
/opt/intel/sgxsdk/lib64/
*
_sim.so
ENTRYPOINT
["/usr/src/sdk/start.sh"]
DockerfileRelease
View file @
f53e5094
...
...
@@ -14,4 +14,10 @@ RUN cd scripts && ./sign_enclave.bash
RUN ccache -sz
RUN mkdir -p /usr/src/sdk/sgx_data
COPY docker/start.sh ./
RUN rm -rf /usr/src/sdk/sgx-sdk-build/
RUN rm /opt/intel/sgxsdk/lib64/*_sim.so
RUN rm /usr/src/sdk/secure_enclave/secure_enclave*.so
RUN cd /usr/src/sdk/secure_enclave && \
curl --output secure_enclave.signed.so \
https://raw.githubusercontent.com/skalenetwork/signed_sgx_enclaves/master/secure_enclave_signed.so.1
ENTRYPOINT ["/usr/src/sdk/start.sh"]
DockerfileSimulation
View file @
f53e5094
...
...
@@ -15,5 +15,6 @@ RUN ./autoconf.bash && \
mkdir -p /usr/src/sdk/sgx_data
COPY docker/start.sh ./
RUN rm -rf /usr/src/sdk/sgx-sdk-build/
ENTRYPOINT ["/usr/src/sdk/start.sh"]
docker/start.sh
View file @
f53e5094
...
...
@@ -28,7 +28,7 @@ cd /usr/src/sdk;
if
[[
-f
"/var/hwmode"
]]
then
echo
"Running in SGX hardware mode"
export
LD_LIBRARY_PATH
=
${
LD_LIBRARY_PATH
}
:/opt/intel/sgxpsw/aesm/
export
LD_LIBRARY_PATH
=
/usr/src/sdk/secure_enclave:
${
LD_LIBRARY_PATH
}
:/opt/intel/sgxpsw/aesm
jhid
-d
/opt/intel/sgxpsw/aesm/aesm_service &
pid
=
$!
...
...
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