Volume mounts are used by Codenvy to mount remote external files and directories into the workspaces and containers within them.
Mounting volumes makes them available to all your workspaces. You can mount one or more volumes by uncommenting the
CODENVY_MACHINE_SERVER_EXTRA_VOLUME environment variable in the
codenvy.env file (found in the root of the data directory you mounted into Codenvy when starting it) and adding your directories or files to it. Add multiple entries separated by semicolons to mount multiple volumes.
# Example of a single mount CODENVY_MACHINE_SERVER_EXTRA_VOLUME=/codenvy/tmp:/home/user/tmp # Example of multiple mounts CODENVY_MACHINE_SERVER_EXTRA_VOLUME=/codenvy/tmp:/home/user/tmp;/.ssh:/home/user/.ssh
Set read-only or read-write permissions to volumes by adding
:rw(read-write) to the end of the mount definition(s). When no permission is set Codenvy assumes a read-write permission.
Private Unshared Label Volume
For operating systems like CentOS 7 with SELinux activated volume mounts require volumes to be labelled. Providing a
Z option creates a private unshared label volume. For other operating system that do not have SELinux the
Z option does not need to be provided but in all cases will work if provided. More information can be found at https://docs.docker.com/engine/tutorials/dockervolumes/#/volume-labels and http://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/.