Azure / Azurite

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies
MIT License
1.83k stars 325 forks source link

Docker Image on Windows Base Image #439

Open jonaswre opened 4 years ago

jonaswre commented 4 years ago

The docker image is only based on a linux system. It would be really nice to have an additional image based on a windows base image. I suspect lots of people use Azure Blob Storeage and Cosmos DB in the same project. So being able to start the whole dev enviroment using a single docker-compose.yml is a great way for easy onboarding. The only thing that keeps me from doing that is that cosmosdb uses windows and azurite linux.

XiaoningLiu commented 4 years ago

Thanks @jonaswre! Are you referring to cosmosdb emulator which provides windows based image?

We will evaluate if we can make this happen in same docker image, or need another which needs more time. At least, we can provide some script so everyone can build the image.

BTW, I like to know more about the scenarios you mentioned "lots of people use Azure Blob Storeage and Cosmos DB in the same project". It helps us with futher planning.

Thanks!

danpetitt commented 4 years ago

Because we cant standup linux and windows images at the same time using docker-compose (until the latest versions of windows and winserver are eventually released) we need a windows version of this image.

Just create a windows dockerfile based on server2016 in a subfolder; in the meantime i may have to fork the project

Adebeer commented 4 years ago

Hi have exact same issue. Our projects all use both CosmosDB + Azure storage. My preference is to run both in docker containers, but atm I have to choose either Azurite or CosmosDB emulator as I can't run both windows/Linux containers at same time. Right now I'm giving preference to CosmosDB emulator simply cause it is a PITA to get working properly in windows - hence the reason I switched to docker. So I guess I'll be running the old blob storage container :~(

XiaoningLiu commented 4 years ago

Hi, appreicated and welcome anyone can contribute a docker file for windows based image : )

cmaneu commented 2 years ago

Hey there, I think this issue is a duplicate of #42.

I'm a Data Developer Advocate here at Azure. I'm collaborating with an internal team that will probably require a Windows base image for Azurite. I can contribute to the Dockerfile/code necessary, but I would like to ensure this gets published to MCR. As this issue is a bit old, I'm just waiting for maintainers "approval" before starting to work on it. cc @XiaoningLiu.

XiaoningLiu commented 2 years ago

Wow, thanks @cmaneu, we should be able to register on MCR and do publishment once the script/code change contributed. @blueww can you help check if we need another MCR alias or we can reuse current MCR?

na-jakobs commented 2 years ago

+1 also need Azurite on a Windows image

miaooss commented 1 year ago

Do we have any script in order to create this image locally ?

shanrath commented 11 months ago

Hi, appreicated and welcome anyone can contribute a docker file for windows based image : )

I did this a while ago in my own fork at https://github.com/shanrath/Azurite/blob/main/Dockerfile, but i based it off of a rather dated image from Stefan Scherer's windows image repo: https://github.com/StefanScherer/dockerfiles-windows/tree/main/node

I suppose anything ready for prime time would need to repeat his steps to construct a node image from a scratch / windows server, and then setup azurite on top.

I was wondering a more official node-on-windows image had already been done somewhere, or if it's more feasible to approach this with the azurite.exe way, or with an msi like cosmos emulator (haven't found one for azurite). If azurite.exe could run without a bunch of extra dependencies on the core image, it may be relatively simple to get this running.