vagrant

Run PowerShell script (installation of .exe file in silient model) in Vagrant box

假装没事ソ 提交于 2020-01-06 18:13:53
问题 I have script which installs software (.exe file) via PowerShell Get-ChildItem "D:\" -Filter *.exe | Where Name -NotMatch '.*NoDB\.exe$' | % { New-Object psobject -Property @{ No = [int]([regex]::Match($_.Name, '(?<=CL)\d+').Value) Name = $_.FullName } } | Sort No -Descending | Select -ExpandProperty Name -First 1 | Foreach { & $_ -s2 -sp"-SilentInstallation=standalone- UpdateMaterials=yestoall -UpgradeDBIfRequired=yes"} I need to run this script via PowerShell so I created a script for this

How to use database on Vagrant for testing with Codeception

你。 提交于 2020-01-06 10:42:11
问题 I use Vagrant and Codception, but when i want to test application localy, I must do it on LAMP (or something like that) server. How can I use database on Vagrant? 回答1: All you need is just to setup access to your mysql server that runs on the guest machine (vagrant box) from the host and then to set appropriate database DNS in your codeception.yml config. Here is some general instructions: 1) Allow your vagrant's mysql server listen all interfaces ssh to your box by setting 'bind-address'

How to use database on Vagrant for testing with Codeception

时光毁灭记忆、已成空白 提交于 2020-01-06 10:39:51
问题 I use Vagrant and Codception, but when i want to test application localy, I must do it on LAMP (or something like that) server. How can I use database on Vagrant? 回答1: All you need is just to setup access to your mysql server that runs on the guest machine (vagrant box) from the host and then to set appropriate database DNS in your codeception.yml config. Here is some general instructions: 1) Allow your vagrant's mysql server listen all interfaces ssh to your box by setting 'bind-address'

How do you configure Vagrant so host can communicate with kafka-docker running on VM?

老子叫甜甜 提交于 2020-01-06 08:04:35
问题 I have kafka-docker running on a Vagrant Ubuntu VM. I can produce and consume messages to it using NodeJs programs running on the VM. I am unable however to use the same NodeJs programs from the Windows host, the programs seem to reach but no answer is received. Here is my docker-compose.yml file: version: '2' services: zookeeper: image: "wurstmeister/zookeeper:latest" network_mode: "host" ports: - "2181:2181" kafka: image: "wurstmeister/kafka:latest" network_mode: "host" ports: - 9092:9092

How do you configure Vagrant so host can communicate with kafka-docker running on VM?

拈花ヽ惹草 提交于 2020-01-06 08:03:11
问题 I have kafka-docker running on a Vagrant Ubuntu VM. I can produce and consume messages to it using NodeJs programs running on the VM. I am unable however to use the same NodeJs programs from the Windows host, the programs seem to reach but no answer is received. Here is my docker-compose.yml file: version: '2' services: zookeeper: image: "wurstmeister/zookeeper:latest" network_mode: "host" ports: - "2181:2181" kafka: image: "wurstmeister/kafka:latest" network_mode: "host" ports: - 9092:9092

How to set eth0 MAC address in Vagrant with the VMware provisioner?

自古美人都是妖i 提交于 2020-01-06 06:45:05
问题 Vagrant relies on VMware (Workstation and Fusion) to generate the MAC address of eth0 (the first and default ethernet interface) on a guest being deployed from a box. I would like to fix this MAC address so it is static and not regenerated each time the VM is recreated so that the VMware DHCP service can assign it the same IP address each time. 回答1: First make sure that the VMware DHCP service will assign an IP address to a specified MAC address by editing vmnetdhcp.conf which has different

vagrant ssh agent forwarding only works for inline commands?

孤街醉人 提交于 2020-01-06 04:27:56
问题 I've added agent forwarding to my vagrant file, and now when I run vagrant ssh -c 'ssh-add -l' I see a list of ssh keys, which is correct. However, when I run vagrant ssh to connect and then run ssh-add -l , I don't see any keys! It looks like the forwarding only works for commands included as part of the initial call, otherwise it doesn't forward them. What is going on here? How do I get it to forward the keys consistently, for all ssh connections to vagrant? 来源: https://stackoverflow.com

Maven Clean Fails on Linux Vagrant Shared Drive

*爱你&永不变心* 提交于 2020-01-06 04:26:16
问题 Using vagrant, I git clone 'd my java app to c:/shared . In my Vagrantfile , I specified that my host's c:/shared will be mapped to /home/vagrant/myapp on my Virtual Machine. When I run mvn clean compile from within the VM, I ran into this error: core/myapp/target/classes/com/myapp/... at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133) at org.apache.maven.lifecycle.internal