@@ -56,8 +56,8 @@ func RunContainer(r runners.Runner, c *resources.AppConfig) error {
5656 log .Dbg (fmt .Sprintf ("Host info: %#v" , hostInfo ))
5757
5858 if hostInfo .VirtualizationRole == "guest" {
59- // Build custom mounts rely on mounts of the Database Lab instance if it's running inside Docker container.
60- // We cannot use --volumes-from because it removes the ZFS mount point.
59+ // build custom mounts rely on mounts of the Database Lab instance if it's running inside Docker container.
60+ // we cannot use --volumes-from because it removes the ZFS mount point.
6161 volumes , err = getMountVolumes (r , c , hostInfo .Hostname )
6262 if err != nil {
6363 return errors .Wrap (err , "failed to detect container volumes" )
@@ -119,7 +119,7 @@ func publishPorts(provisionHosts string, instancePort string) string {
119119func createDefaultVolumes (c * resources.AppConfig ) (string , []string ) {
120120 unixSocketCloneDir := c .Pool .SocketCloneDir (c .CloneName )
121121
122- // Directly mount PGDATA if Database Lab is running without any virtualization.
122+ // directly mount PGDATA if Database Lab is running without any virtualization.
123123 volumes := []string {
124124 fmt .Sprintf ("--volume %s:%s" , c .CloneDir (), c .CloneDir ()),
125125 fmt .Sprintf ("--volume %s:%s" , unixSocketCloneDir , unixSocketCloneDir ),
@@ -151,15 +151,15 @@ func buildVolumesFromMountPoints(c *resources.AppConfig, mountPoints []container
151151 volumes := make ([]string , 0 , len (mounts ))
152152
153153 for _ , mountPoint := range mountPoints {
154- // Add an extra mount for socket directories.
154+ // add an extra mount for socket directories.
155155 if strings .HasPrefix (unixSocketCloneDir , mountPoint .Destination ) {
156156 volumes = append (volumes , buildSocketMount (unixSocketCloneDir , mountPoint .Source , mountPoint .Destination ))
157157 break
158158 }
159159 }
160160
161161 for _ , mount := range mounts {
162- // Exclude system and non-data volumes from a clone container.
162+ // exclude system and non-data volumes from a clone container.
163163 if isSystemVolume (mount .Source ) || ! strings .HasPrefix (mount .Source , c .Pool .MountDir ) {
164164 continue
165165 }
0 commit comments