Skip to content

Commit

Permalink
merge pedro/fix_pccs_addr
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Jan 9, 2023
1 parent d74cf2f commit 359b324
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions testnet/docker-compose.dev-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ services:
- P2PPUBLICADDRESS=some_string
- LOGLEVEL=some_int
- SEQUENCERID=some_address
- PCCS_ADDR
image: testnetobscuronet.azurecr.io/obscuronet/dev_enclave:latest
entrypoint: [
"ego", "run", "/home/obscuro/go-obscuro/go/enclave/main/main",
Expand Down Expand Up @@ -86,6 +87,7 @@ services:
- default
environment:
- EDG_EDB_CERT_DNS=edgelessdb
- PCCS_ADDR
ports:
- "3306:3306"
- "8080:8080"
Expand Down
8 changes: 5 additions & 3 deletions testnet/start-obscuro-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ help_and_exit() {
echo ""
echo " p2p_public_address *Optional* Set host p2p public address. Defaults to 127.0.0.1:10000"
echo ""
echo " pccs_addr *Optional* Set the enclave Provision Certificate Cache Service. Defaults to 127.0.0.1:8081"
echo " pccs_addr *Optional* Set the enclave Provision Certificate Cache Service. Default to None"
echo ""
echo " profiler_enabled *Optional* Enables the profiler in the host + enclave. Defaults to false"
echo ""
Expand Down Expand Up @@ -75,7 +75,6 @@ host_id=0x0654D8B60033144D567f25bF41baC1FB0D60F23B
pk_string=8ead642ca80dadb0f346a66cd6aa13e08a8ac7b5c6f7578d4bac96f5db01ac99
log_level=4
sequencer_id=0x0654D8B60033144D567f25bF41baC1FB0D60F23B
pccs_addr="127.0.0.1:8081"


# Fetch options
Expand Down Expand Up @@ -131,8 +130,11 @@ echo "LOGLEVEL=${log_level}" >> "${testnet_path}/.env"
echo "PROFILERENABLED=${profiler_enabled}" >> "${testnet_path}/.env"
echo "P2PPUBLICADDRESS=${p2p_public_address}" >> "${testnet_path}/.env"
echo "SEQUENCERID=${sequencer_id}" >> "${testnet_path}/.env"
echo "PCCS_ADDR=${pccs_addr}" >> "${testnet_path}/.env"

# only set the env var if it's defined
if [[ ! -z ${pccs_addr} ]]; then # if not not set check is awful
echo "PCCS_ADDR=${pccs_addr}" >> "${testnet_path}/.env"
fi

if ${debug_enclave} ;
then
Expand Down

0 comments on commit 359b324

Please sign in to comment.