MTC_APPContainerization/Java Containerization
jdvcDev cbf1c65352 revert to production paths 2021-09-15 13:39:33 -06:00
..
resource/tomcat updated user pers for tomcat/adminUser 2021-09-15 12:49:48 -06:00
scripts updated user pers for tomcat/adminUser 2021-09-15 12:49:48 -06:00
.gitignore Ubuntu/Tomcat/Java airsonic app initial commit 2021-07-09 16:07:28 -06:00
README.md creating windows vm 2021-08-05 14:44:32 -06:00
azuredeploy.json updated resource names, introduced tools server vm 2021-08-26 14:36:27 -06:00
azuredeploy.parameters.json revert to production paths 2021-09-15 13:39:33 -06:00

README.md

Airsonic deployment

Ubuntu/Tomcat/Java/mySQL environment for Azure airsonic app deployment

Ported from https://github.com/selvasingh/tomcat-on-virtual-machine

Fully automated deployment via arm templates and custom scripts

Port Notes:

  • Does not configure transcoding, i.e. sudo snap install ffmpeg
  • Binding of airsonic app to mysql first requires the app be started to create a .properties file, stopped, then the .properties needs to be updated with jndi binding. At the end of the airsonic install, the app is started then stopped to create this file using a 30 second wait period between operations. The properties file is updated with binding during the mysql binding setup.

Deployment

To deploy this workshop environment, begin by navigating to the Azure portal at https://portal.azure.com and opening the cloud shell as shown belew:

Cloud Shell

...

Terminal

From the terminal window execute the following commands to clone the App Migration Workshop project. Navigate to the Java migrate sub module and execute the deployment script substituting the target region name and resource group for which the resources will be deployed.

git clone https://github.com/microsoft/MTC_APPContainerization.git
cd MTC_APPContainerization/Java\ Containerization/
chmod +x scripts/deploy.sh
./scripts/deploy.sh '<REGION NAME>' '<RESOURCE GROUP>'

For example:

 ./scripts/deploy.sh 'westus' 'jm-rg2'

Total deployment will take ~5 minutes. When complete navigate to the newly created resource group in the azure portal. Find the created vm named TomcatServer click on its name.

Tomcat VM.

Identify the public IP address provisioned for the VM.

Public IP.

Use the IP address to access the Airsonic app at http://{ip}:8080/airsonic Airsonic App.