ai-traders / liget

NuGet server and cache running on kestrel in docker
MIT License
216 stars 29 forks source link

Azure Container Instances: persist? #7

Closed katlimruiz closed 5 years ago

katlimruiz commented 5 years ago

This may be a newbie question, I'm new to docker and all the containerization hype, so I'm trying to setup this in Azure Container Instances.

I manage to create one successfully, and be able to open the website as "mywebnuget.eastus.azurecontainer.io:9011".

However, when I restart the container, it removes all the packages I uploaded. This seems to be because there are no volumes assigned.

In your readme says to use:

mkdir -p /tmp/liget-test
docker run -p 9011:9011 -v /tmp/liget-test/:/data tomzo/liget

However, in ACI I cannot "customize" the run command, so how can I add this volume or command before running the container?

Probably you'll tell me dont use ACI ha ha, but I want to give it a try.

ElanHasson commented 5 years ago

I mounted a PVC using Azure Files.

tomzo commented 5 years ago

Yep, azure files seems as the right way in this case. See https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files

ElanHasson commented 5 years ago

The problem is locking with DBreeze 😥

tomzo commented 5 years ago

@ElanHasson dbreeze is used only before 1.0.0 and yes, locking is quite an issue there.

ElanHasson commented 5 years ago

That is welcome news!