Azurite icon indicating copy to clipboard operation
Azurite copied to clipboard

Docker Image on Windows Base Image

Open jonaswre opened this issue 5 years ago • 9 comments

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.

jonaswre avatar Apr 27 '20 11:04 jonaswre

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!

XiaoningLiu avatar Apr 28 '20 08:04 XiaoningLiu

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

danpetitt avatar May 14 '20 17:05 danpetitt

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 :~(

Adebeer avatar Sep 06 '20 05:09 Adebeer

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

XiaoningLiu avatar Sep 14 '20 07:09 XiaoningLiu

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.

cmaneu avatar Jan 26 '22 14:01 cmaneu

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?

XiaoningLiu avatar Jan 30 '22 06:01 XiaoningLiu

+1 also need Azurite on a Windows image

na-jakobs avatar Jun 23 '22 11:06 na-jakobs

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

miaooss avatar Sep 29 '23 16:09 miaooss

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.

shanrath avatar Nov 28 '23 18:11 shanrath