Install on Azure


#1

I was able to run metabase.jar on my machine (W10), and now I need to try on Azure, because it’s where I have SQL Server.

I couldn’t do it by myself (closure and jetty are new to me).
Is there any documentation or tips about this environment?

On Azure, I tried:

  • Create a web app;
  • Set to Java 8 and Jetty 9.1;
  • Failed to run metabase.jar.

Thanks!


#2

We don’t use Azure all that much.

We ship a standalone jar that can be run as-is. If the web app is expecting a WAR file or other Java deployment artifact our shipped Jar won’t work.


#3

You might try running our docker image on azure instead.


#4

Thanks for the quick response, docker will be my last alternative.
I will try to find a way, and if I do, I’ll write here.


#5

You can use it with a combination of a httpPlatformHandler and a bat file. Its quite tricky but its possible.

  1. Create new web app with windows os
  2. Under Application settings:
    2.a Select Java 8 and pick newest Tomcat as Java container
    2.b Set up the database config environment variables as settings. (For example, MB_DB_TYPE = postgres).
  3. Upload metabase.jar and put in %HOME%/site/wwwroot/
  4. Take web.config and run.bat from this gist https://gist.github.com/viblo/76a5969c84f59470233ec2b618dd5c8f and also put in the same place.
  5. Done!

#6

Hi everyone!
Any news about installing it on Azure? Is the best way still an docker image?

Thanks.

Byebye


#7

I just run it on Azure in a VM. At the moment, it’s using Ubuntu, but just as easy to use Windows Server. Only pain is creating the services.