I am using Jenkins with docker, and I am looking to access a windows shared folder from my dockerNode. Is there a way, please?
Related
I want to know if there is a suggested approach on how to configure Docker machines using configuration files. I have a service that I configure for several users, it is basically a Django app.
Until now I had a shared base image and a bunch of scripts. When I need to create a new machine for a new user, I create it in Google Cloud Engine using the base image. Then I :
SSH into it
Launch a script that download everything via git and launch all services
Copy required credential files using scp
Is there a way to optimize some steps with Docker (using secrets or some external config management tool)?
Thanks!
We are migrating some windows components (.net 4.5) to Linux containers (.net core). Existing system is a file processor, which watches a shared location and processes file from there. We can't force existing system to start dropping file at some other location, so new containerised application has to access from same shared location. Can a windows share be seen from docker containers? If yes, then how can I use Kubernete deployment file to achieve it?
Please advise.
Regards,
This feature is not working by default, but yes, you can do this. Here is the project which allows you to do this in a proper way. After volume driver setup, you can use Windows share as PersistentVolume in your Kubernetes cluster.
*Updates
Also you can use windows share as nfs volume in Kubernetes. Here you can find some examples of using nfs in Kubernetes
Is it possible to configure Nexus repository manager (3.9.0) in a way which is suitable for a Docker based containerized environment?
We need a customized docker image which contains basic configurations for the nexus repository manager, like project specific repositories, LDAP based authentication for users. We found that most of the nexus configurations live in the database (OrientDB) used by nexus. We also found that there is a REST interface offered by nexus to handle configurations by 3rd parties, but we found no configuration exporter/importer capabilites besides backup (directory servers ha LDIF, application servers ha command line scripts, etc.).
Right now we export the configuration as backup files, and during the customized docker image build we copy those backup file back to the file system in the container:
FROM sonatype/nexus3:latest
[...]
# Copy backup files
COPY backup/* ${NEXUS_DATA}/backup/
When the conatiner starts up it will pick up the backup files and the nexus will be configured the way we need. However though, it would be much better if there was a way which would allow us the handle these configurations via a set of config files.
All that data is stored under /nexus-data, so you can create an initial docker container with a docker volume or a host directory that would keep all that data. After you preconfigured that instance you can distribute your customized docker image with that docker volume containing nexus data. Or if you used a host directory you can simply copy over all that data is similar fashion as you do now, but use /nexus-data directory instead.
You can find more information at DockerHub under Persistent Data.
Is there a way how to map/mount container folder to host folder? Like volumes but vice-versa.
Why?
I do have large project which including all the libraries has 0.5M files and folders. I have several of projects like this.
I would like to have project folder once on my disk (container) and not twice (local folder + cointainer)
I know that mounting folder from "closed" container to a host is from logic point of view nonsense - but again this is just for dev purposes.
I also know docker creates network interfaces. I'm not a net expert but maybe (in case that docker do not support this natively) there is a way how can I connect from my machine into container and map a folder to a folder (sshfs maybe)?
The dream is to have laptop with clean host OS instalation + docker. You pull up a docker image, run IDE, mount folders and start developing. No need of local instalation of NPM, Python/PHP/Perl/... nor their libraries.
This is just a vision but maybe I'm close to the reality than I can imagine.
Thanks
VMWare player and workstation has the ability to easily create a shared folder directly to the host:
http://www.vmware.com/support/ws5/doc/ws_running_shared_folders.html
This feature seems to be missing or is moved in vSphere. How do you set it up in vSphere?
Thanks.
Actually, we can't have shared folders using ESXi. But we can workaround it by creating a folder in the host datastore and copying files from/to it using scp protocol. Of course, you need to have administrative privileges on the host for that.
This link explains how to set up SSH Server and Shell Access on ESXi:
http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vcli.migration.doc_50%2Fcos_upgrade_technote.1.4.html
This feature doesn't make sense with vSphere, which is why you can't find it.
Workstation, Player, Server all run on top of a "host OS" while ESX (vSphere managed) runs on bare-metal. You're not supposed to have access to the native file system on the host - so there is no option to do so.