Skip to content

Commit 6e01842

Browse files
authored
Merge pull request #396 from skalenetwork/340_firewall_self_analysis
340 Self check firewall
2 parents 6f4b347 + 9eba75d commit 6e01842

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ FROM skalenetwork/sgxwallet_base:latest
22

33
COPY . /usr/src/sdk
44
WORKDIR /usr/src/sdk
5-
RUN apt update && apt install -y curl secure-delete
5+
6+
RUN apt update && apt install -y curl secure-delete python3-pip
7+
RUN pip3 install --upgrade pip
8+
RUN pip3 install requests torpy
9+
10+
11+
12+
613
RUN touch /var/hwmode
714
RUN ./autoconf.bash
815
RUN ./configure

DockerfileIntelSubmission

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ FROM skalenetwork/sgxwallet_base:latest
33
COPY . /usr/src/sdk
44
WORKDIR /usr/src/sdk
55
RUN cp -f secure_enclave/secure_enclave.config.xml.release secure_enclave/secure_enclave.config.xml
6-
RUN apt update && apt install -y curl secure-delete
6+
7+
RUN apt update && apt install -y curl secure-delete python3-pip
8+
RUN pip3 install --upgrade pip
9+
RUN pip3 install requests torpy
10+
711
#Test signing key generation
812
RUN cd scripts && ./generate_signing_key.bash
913
RUN touch /var/hwmode

DockerfileRelease

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ FROM skalenetwork/sgxwallet_base:latest
33
COPY . /usr/src/sdk
44
WORKDIR /usr/src/sdk
55
RUN cp -f secure_enclave/secure_enclave.config.xml.release secure_enclave/secure_enclave.config.xml
6-
RUN apt update && apt install -y curl secure-delete
6+
7+
RUN apt update && apt install -y curl secure-delete python3-pip
8+
RUN pip3 install --upgrade pip
9+
RUN pip3 install requests torpy
10+
11+
712
RUN touch /var/hwmode
813
RUN ./autoconf.bash
914
RUN ./configure --with-sgx-build=release

DockerfileSimulation

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM skalenetwork/sgxwallet_base:latest
22

33

4-
RUN apt update && apt install -y curl secure-delete
4+
RUN apt update && apt install -y curl secure-delete python3-pip
5+
RUN pip3 install --upgrade pip
6+
RUN pip3 install requests torpy
7+
58

69
RUN ccache -sz
710

docker/check_firewall.py

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#! /usr/bin/python
1+
#!/usr/bin/env python3
2+
23

34
import requests
45
import re
@@ -31,6 +32,7 @@ def get_my_external_ip():
3132
with TorClient() as tor:
3233
# Choose random guard node and create 3-hops circuit
3334
print("Connecting to TOR network ...");
35+
print("Please ignore error messages, as we are attempting to connect to the TOR network ...");
3436
with tor.create_circuit(1) as circuit:
3537
print("Connected to TOR network. Connecting to sgxwallet from a random external IP."
3638
" This may take up to a minute.")

0 commit comments

Comments
 (0)