gitpod-io / openvscode-server

Run upstream VS Code on a remote machine with access through a modern web browser from any device, anywhere.
https://www.gitpod.io/
MIT License
4.85k stars 422 forks source link

Add Persistent Volume in Docker #459

Open orappold opened 1 year ago

orappold commented 1 year ago

I'm not able to map a persistent volume to the config & workspace folder. In that way, every time I update the container, everything is gone. I'm aware, that the purpose is rather for temporary use cases, but I personally want to create an persistent IDE on my NAS which is always and everywhere available.

If someone could help how to set up the compose file it would be awesome. If not a feature request, please point me to the right direction.

THX

paladyne-io commented 1 year ago

Does this help? https://plusreturn.com/blog/open-vscode-server-offline-deployment-for-nodejs-development/

jeanp413 commented 1 year ago

@orappold do you still need help?

EmilMoe commented 1 year ago

Probably because the container will overwrite each time you rebuild or vice versa? I had to use rsync for a Wordpress container (entrypoint script, so loaded per container not image):

rsync -Praz --progress /wordpress/ /var/www/html

/wordpress is the dist source files

shivendratiwari7566 commented 1 year ago

This might be help to persistent volume

be at workspace directory

volumes:
  - ./edge-vol:/usr/src/app