340 Self check firewall

parent 6f4b347b
......@@ -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
......
......@@ -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
......
......@@ -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
......
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
......
#! /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.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment