Swirrl / datahost-prototypes

Eclipse Public License 1.0
0 stars 0 forks source link

Add a volume on GCP #400

Open xdrcft8000 opened 6 months ago

xdrcft8000 commented 6 months ago

so that the data can be persisted over container restarts

xdrcft8000 commented 6 months ago

I created a persistent disk called ldapi-data-storage, added it to the ldapi-experiment VM, formatted and mounted it, then mounted it to the docker container.

Uploaded data now persists between VM stops and starts.

NOTE: When I was choosing which dir to mount in the ldapi container, I first chose /files/file-store. But the uploaded data wasn't persisting between restarts.

Locally, I noticed that when deleting the file-store dir, the uploaded data is still available.

So I tried mounting /cache/ instead, and now the uploaded data is still available after each restart. However the files that are in the /files/file-store dir are lost.

I'm not sure if this intended so I thought I'd mention it.