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
9eba75de
Unverified
Commit
9eba75de
authored
Aug 08, 2022
by
kladkogex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
340 Self check firewall
parent
6f4b347b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
Dockerfile
Dockerfile
+8
-1
DockerfileIntelSubmission
DockerfileIntelSubmission
+5
-1
DockerfileRelease
DockerfileRelease
+6
-1
DockerfileSimulation
DockerfileSimulation
+4
-1
check_firewall.py
docker/check_firewall.py
+3
-1
No files found.
Dockerfile
View file @
9eba75de
...
...
@@ -2,7 +2,14 @@ FROM skalenetwork/sgxwallet_base:latest
COPY
. /usr/src/sdk
WORKDIR
/usr/src/sdk
RUN
apt update
&&
apt
install
-y
curl secure-delete
RUN
apt update
&&
apt
install
-y
curl secure-delete python3-pip
RUN
pip3
install
--upgrade
pip
RUN
pip3
install
requests torpy
RUN
touch
/var/hwmode
RUN
./autoconf.bash
RUN
./configure
...
...
DockerfileIntelSubmission
View file @
9eba75de
...
...
@@ -3,7 +3,11 @@ FROM skalenetwork/sgxwallet_base:latest
COPY . /usr/src/sdk
WORKDIR /usr/src/sdk
RUN cp -f secure_enclave/secure_enclave.config.xml.release secure_enclave/secure_enclave.config.xml
RUN apt update && apt install -y curl secure-delete
RUN apt update && apt install -y curl secure-delete python3-pip
RUN pip3 install --upgrade pip
RUN pip3 install requests torpy
#Test signing key generation
RUN cd scripts && ./generate_signing_key.bash
RUN touch /var/hwmode
...
...
DockerfileRelease
View file @
9eba75de
...
...
@@ -3,7 +3,12 @@ FROM skalenetwork/sgxwallet_base:latest
COPY . /usr/src/sdk
WORKDIR /usr/src/sdk
RUN cp -f secure_enclave/secure_enclave.config.xml.release secure_enclave/secure_enclave.config.xml
RUN apt update && apt install -y curl secure-delete
RUN apt update && apt install -y curl secure-delete python3-pip
RUN pip3 install --upgrade pip
RUN pip3 install requests torpy
RUN touch /var/hwmode
RUN ./autoconf.bash
RUN ./configure --with-sgx-build=release
...
...
DockerfileSimulation
View file @
9eba75de
FROM skalenetwork/sgxwallet_base:latest
RUN apt update && apt install -y curl secure-delete
RUN apt update && apt install -y curl secure-delete python3-pip
RUN pip3 install --upgrade pip
RUN pip3 install requests torpy
RUN ccache -sz
...
...
docker/check_firewall.py
100644 → 100755
View file @
9eba75de
#! /usr/bin/python
#!/usr/bin/env python3
import
requests
import
re
...
...
@@ -31,6 +32,7 @@ try:
with
TorClient
()
as
tor
:
# Choose random guard node and create 3-hops circuit
print
(
"Connecting to TOR network ..."
);
print
(
"Please ignore error messages, as we are attempting to connect to the TOR network ..."
);
with
tor
.
create_circuit
(
1
)
as
circuit
:
print
(
"Connected to TOR network. Connecting to sgxwallet from a random external IP."
" This may take up to a minute."
)
...
...
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