Skip to content

MichaelSteinert/AzureDeploymentMVD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Azure Deployment of MVD

Create Virtual Machine (VM) Environment

terraform init -upgrade
terraform plan -out main.tfplan
terraform apply main.tfplan

Destroy VM Environment

terraform plan -destroy -out main.destroy.tfplan
terraform apply main.destroy.tfplan

Save Private Key

  • Private Key must be saved so that a Connection to the VM is possible.
touch id_rsa.pem

Grant Permission to Private Key

  • Owner of Private Key will have Read and Write Permissions, while the Group and others will have no Permissions for Private Key.
chmod 600 id_rsa.pem

Connect to VM as Admin

  • Connect to VM as User mvdadmin by using Private Key.
ssh -i ~/.ssh/azure/id_rsa.pem [email protected]

Run Build Minimum Viable Dataspace (MVD)

  • The Prerequisite is that Java 17, Docker and Docker Compose are installed
./gradlew build -x test
./gradlew -DuseFsVault="true" :launchers:connector:shadowJar
./gradlew -DuseFsVault="true" :launchers:registrationservice:shadowJar

Adjust URLs in Data Dashboard

  • The Configuration src/assets/config/app.config.json needs to be updated with the current IP Address of the VM
{
  "apiKey": "ApiKeyDefaultValue",
  "managementApiUrl": "http://20.170.12.156:9192/api/v1/data",
  "catalogUrl": "http://20.170.12.156:9191/api/v1/data/",
  "storageAccount": "company2assets",
  "storageExplorerLinkTemplate": "storageexplorer://v=1",
  "theme": "theme-2"
}

Run MVD

export MVD_UI_PATH=../../DataDashboard
cd system-tests/
sudo docker compose --profile ui -f docker-compose.yml up --build
  • When the following Error is displayed: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount123456789/Dockerfile: no such file or directory, then the Setting of the MVD_UI_PATH Variable does not work
  • The Solution is to set the UI Path manually to ../../DataDashboard in the docker-compose File

Create Asset via Azure CLI

conn_str="DefaultEndpointsProtocol=http;AccountName=company1assets;AccountKey=key1;BlobEndpoint=http://127.0.0.1:10000/company1assets;"
az storage container create --name src-container --connection-string $conn_str
az storage blob upload -f ./deployment/azure/terraform/modules/participant/sample-data/text-document.txt --container-name src-container --name text-document.txt --connection-string $conn_str

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages