[quickstart] Fix domain name resolution failures on macOS (#488)

* [quickstart] Fix domain name resolution failures on macOS

* [quickstart] fix enrichmentStore scripts as well
This commit is contained in:
Jonathan Giannuzzi
2022-01-14 18:34:34 +01:00
committed by GitHub
parent ee0683ddf1
commit d0ff5fb1c1
5 changed files with 12 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ Write-Output '{"1.2.3.4":{"hostname":"test-name"}}' > $FileName
# POST request
$FilePath = (Get-Location).path + '/' + $FileName
$URL = 'https://enrichment.local/upload.php';
$URL = 'https://enrichment.siembol.local/upload.php';
$boundary = [System.Guid]::NewGuid().ToString();
$LF = "`r`n";
@@ -31,7 +31,7 @@ Invoke-RestMethod -Method 'Post' -Uri $restUri -Headers $header -Body ($body|Con
Write-Output "************************************************************"
Write-Output "Check uploaded table through this url in the browser:"
Write-Output "https://enrichment.local/download.php?filename=$FileName"
Write-Output "https://enrichment.siembol.local/download.php?filename=$FileName"
Write-Output "************************************************************"
Write-Output "Check siembol table info through this url in the browser:"
Write-Output "https://rest.siembol.local/api/v1/enrichment/enrichment/tables"

View File

@@ -12,11 +12,11 @@ minikube start --profile $namespace --driver hyperv --cpus 6 --memory 6g --disk-
minikube profile $namespace
Write-Output == install dns host entries ==
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'siembol.local' -Description 'resolver for siembol.local'
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'ui.siembol.local' -Description 'resolver for ui.siembol.local'
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'rest.siembol.local' -Description 'resolver for rest.siembol.local'
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'storm.local' -Description 'resolver for storm.local'
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'storm.siembol.local' -Description 'resolver for storm.siembol.local'
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'topology-manager.siembol.local' -Description 'resolver for topology-manager.siembol.local'
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'enrichment.local' -Description 'resolver for enrichment.local'
Set-CHostsEntry -IPAddress $(minikube ip) -HostName 'enrichment.siembol.local' -Description 'resolver for enrichment.siembol.local'
Write-Output == install cert-manager ==
helm repo add jetstack https://charts.jetstack.io

View File

@@ -2,13 +2,13 @@ echo "********* Set up demo enrichment table **************"
echo "*****************************************************"
echo '{"1.2.3.4":{"hostname":"test-name"}}' > hostname.json
curl -F "uploaded_file=@hostname.json;" https://enrichment.local/upload.php
curl -F "uploaded_file=@hostname.json;" https://enrichment.siembol.local/upload.php
curl -X 'POST' https://rest.siembol.local/api/v1/enrichment/enrichment/tables -H 'accept: application/json' -H 'Content-Type: application/json' -d '{\"name\": \"hostname\",\"path\": \"/download.php?filename=dns.json\"}'
echo "************************************************************"
echo "Check uploaded table through this url in the browser:"
echo "https://enrichment.local/download.php?filename=hostname.json"
echo "https://enrichment.siembol.local/download.php?filename=hostname.json"
echo "************************************************************"
echo "Check siembol table info through this url in the browser:"
echo "https://rest.siembol.local/api/v1/enrichment/enrichment/tables"