shared-directory

Jenkins wrong volume permissions

南笙酒味 提交于 2019-12-05 00:08:44
I have a virtual machine hosting Oracle Linux where I've installed Docker and created containers using a docker-compose file. I placed the jenkins volume under a shared folder but when starting the docker-compose up I got the following error for Jenkins : jenkins | touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied jenkins | Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions? jenkins exited with code 1 Here's the volumes declaration volumes: - "/media/sf_devops-workspaces/dev-tools/continuous-integration/jenkins:/var/jenkins

VB.NET code to Convert shared local path to UNC path

主宰稳场 提交于 2019-12-03 21:55:02
问题 We have windows 2003 server Pc named pc2 in which local drives are shared with different names. For example local drive E is shared with name 'datapath' so that all users in network access that drive using network path ' \\pc2\datapath\' . We need VB.net code to convert local path to shared UNC path i.e if we input 'E:\netuse',code must return ' \\pc2\datapath\netuse' . Is there any way to do this in VB.net ? EDIT: Drive E is not mapped,it is just shared 回答1: Just created a small app which

Virtualenv not creating an environment

我是研究僧i 提交于 2019-12-03 04:24:56
问题 I installed Virtualenv on Ubuntu 12.04 and was using it to work on a sample project under the unity desktop. I'm using VirtualBox and was having some issues with the unity desktop so changed to the KDE desktop. I'm now trying to create a new project but the virtualenv won't allow me to create a new environment in my project folder. In the terminal I navigate to the project folder, type virtualenv venv and get the following error messages: Traceback (most recent call last): File "/usr/bin

Vagrant Error: Unable to Mount VirtualBox Shared Folders (Guest Additions, vboxsf)

你说的曾经没有我的故事 提交于 2019-12-03 03:34:11
问题 The Issue I installed Vagrant on Windows 10 so I can create a personal local development environment in a virtual machine. Everything I've read about Vagrant said I can even spin up multiple systems and test communication between them with NAT port forwarding. But first, I just want to get one development environment virtual machine created before I go too far with the rest of it. I installed VirtualBox, Vagrant, PuTTy, and PuTTYGen, per this SitePoint tutorial: https://www.sitepoint.com

Vagrant Error: Unable to Mount VirtualBox Shared Folders (Guest Additions, vboxsf)

走远了吗. 提交于 2019-12-02 17:04:50
The Issue I installed Vagrant on Windows 10 so I can create a personal local development environment in a virtual machine. Everything I've read about Vagrant said I can even spin up multiple systems and test communication between them with NAT port forwarding. But first, I just want to get one development environment virtual machine created before I go too far with the rest of it. I installed VirtualBox, Vagrant, PuTTy, and PuTTYGen, per this SitePoint tutorial: https://www.sitepoint.com/getting-started-vagrant-windows/ . Next I created a vagrant project folder on C: drive, did vagrant init ,

Vagrant shared folder with rails server

爷,独闯天下 提交于 2019-12-02 04:06:43
问题 I'm running rails on a nfs shared folder in a vagrant box. While the server (thin/webrick) is running I'm editing files in my host. But I have to keep stopping and restarting the application server to see changes reflected in the webapp. Is this normal behaviour? 回答1: I go this issue on Vagrant box synchronising my folder with NFS. I made a change in my application development configuration file ( config/environments/development.rb ), just adding this line config.reload_classes_only_on_change

Vagrant shared folder with rails server

左心房为你撑大大i 提交于 2019-12-02 00:03:35
I'm running rails on a nfs shared folder in a vagrant box. While the server (thin/webrick) is running I'm editing files in my host. But I have to keep stopping and restarting the application server to see changes reflected in the webapp. Is this normal behaviour? I go this issue on Vagrant box synchronising my folder with NFS . I made a change in my application development configuration file ( config/environments/development.rb ), just adding this line config.reload_classes_only_on_change = false and it works. Ensure that you have this config.cache_classes = false as well, I had it by default

How can I enumerate network shares and web folders in C#?

拜拜、爱过 提交于 2019-12-01 22:10:04
问题 .Net provides us with a FolderBrowserDialog control to browse for folders. This is however a modal dialog box. I need to create a user control that I can drop onto my form. So, I have been looking at creating my own, where I need to get all local drives, mapped network drives, UNC shares and web folders (WebDAV/SharePoint). I am using Windows 7 and .Net 4.0. Local and Mapped Network Drives I can get the local drives from DriveInfo.GetDrives(). However, these are only showing me the drives

How can I enumerate network shares and web folders in C#?

这一生的挚爱 提交于 2019-12-01 19:36:42
.Net provides us with a FolderBrowserDialog control to browse for folders. This is however a modal dialog box. I need to create a user control that I can drop onto my form. So, I have been looking at creating my own, where I need to get all local drives, mapped network drives, UNC shares and web folders (WebDAV/SharePoint). I am using Windows 7 and .Net 4.0. Local and Mapped Network Drives I can get the local drives from DriveInfo.GetDrives(). However, these are only showing me the drives that are available/online. In Windows Explorer, you also see mapped network drives that are disconnected

Can't use ansible inventory file because it is executable

谁说胖子不能爱 提交于 2019-12-01 04:47:52
I am trying to run an Ansible inventory file ansible -i hosts-prod all -u root -m ping and it is failing with this message: ERROR: The file hosts-prod is marked as executable, but failed to execute correctly. If this is not supposed to be an executable script, correct this with `chmod -x hosts-prod`. I believe this is because I am using Virtual Box and shared folders which is forcing all my files to ug+rwx. And vbox does not permit changing permissions on shared folders (at least shared folders coming from Windows which is my situation) Is there a way to allow Ansible to run this file? I can