vagrant

Why does Chocolatey not install on this Vagrant box?

旧街凉风 提交于 2021-01-28 20:43:51
问题 I've installed chocolatey on my host machine (windows) using the powershell provision: Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) This is all fine and choco works on the host machine, but when I try to install it via vagrant ssh in the VM, it doesn't work at all. I've tried using scripts and adding them into the vagrantfile but with no luck. How can I get chocolatey on my windows vagrant VM? My vagrantfile # -*- mode: ruby -*- #

Vagrant, nodejs and iptable port forwarding

◇◆丶佛笑我妖孽 提交于 2021-01-28 11:19:35
问题 I have a little issue when I try to use nodejs as a web server on vagrant (on OS X). My config file is linked below, I have only nodejs and mongodb installed. The box IP is 10.10.56.101 (I needed another ip than 192.168.56.101 to work at my school). I try to reach the nodejs server with the little script linked below. The script only listen on port 51160 and answer OK. First I didn't get any answers and after searching I found that I needed to do a port forwarding and with a iptable it worked

How to exclude (ignore) certain folders in vagrant rsync?

北城以北 提交于 2021-01-28 03:02:22
问题 I wish to run npm install in my vagrant virtual box. But whenever I ran the npm install command, my rsync will execute. Since my host computer does not have node_modules installed, it simply remove the folder completely for me. What do I need to do so that my vagrant rsync will ignore the node_modules folder? I cannot have node_modules being rsynced into the guest machine because my host and guest are two different systems. So far my vagrantfile looks like this. Vagrant.configure("2") do

Run testcafe headless when passing custom args to Chrome binary via testcafe-browser-tools

强颜欢笑 提交于 2021-01-27 12:10:25
问题 Running testcafe inside a Vagrant VM, which is mostly working. However, Chrome doesn't start properly in this environment with hardware acceleration enabled, so I have to start it with the command line flag --disable-gpu . I'm leveraging the 'testcafe-browser-tools' package to accomplish this, by overriding the default browser command via the Runner class in the TestCafe API. This all works fine for the case of running TestCafe with it opening a browser window, but I've not been able to

Debug C app using visual studio code and Vagrant runnig ubuntu

旧巷老猫 提交于 2021-01-25 01:44:09
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Debug C app using visual studio code and Vagrant runnig ubuntu

泄露秘密 提交于 2021-01-25 01:43:47
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Debug C app using visual studio code and Vagrant runnig ubuntu

巧了我就是萌 提交于 2021-01-25 01:42:51
问题 I boot up ubuntu using Vagrant to compile some C code, now i like to debug this code using Visual Studio Code. How can i setup some kind of remote debug where the compiler and source code and all on the Ubuntu VM And I only using VSCode from windows? PS. This used to work very well with windows WSL linux . But now i like to achieve the same result with Ubuntu using Vagrant ( using Virtual Box ). Can it be done? UPDATE I tried as suggested but I'm getting error : my virtual box config from

Can't install Docker - Hash sum mismatch (Ubuntu 18.04, Vagrant, Virtualbox)

蓝咒 提交于 2021-01-21 05:10:57
问题 I just can't install Docker in a fresh image of Ubuntu 18.04 (in Virtualbox, using Vagrant). I am using the instruction from the official site: https://docs.docker.com/install/linux/docker-ce/ubuntu/ Or the short command from https://github.com/docker/docker-install: curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh And always got the same errors - Hash sum mismatch : Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_19

Can't install Docker - Hash sum mismatch (Ubuntu 18.04, Vagrant, Virtualbox)

感情迁移 提交于 2021-01-21 05:09:30
问题 I just can't install Docker in a fresh image of Ubuntu 18.04 (in Virtualbox, using Vagrant). I am using the instruction from the official site: https://docs.docker.com/install/linux/docker-ce/ubuntu/ Or the short command from https://github.com/docker/docker-install: curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh And always got the same errors - Hash sum mismatch : Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_19

Migrate Drupal Local Environment to Docker/Container

安稳与你 提交于 2021-01-07 01:00:22
问题 Background I currently have a site that is built using gitlab, composer, vagrant (Drupal-VM) and virtual box, along with other tools like drush, blt, and lighting core. I am new containerization and docker and would like some help in spinning up local environment TL;DR From my understanding this means we pretty much spin up a ubuntu vbox that then install a "package" or vagrant box that contains all the tools needed for Drupal, then use blt to start the app. Then drush to handle interacting