logo
down
shadow

Vagrant provision with Docker


Vagrant provision with Docker

By : Aaryan Gupta
Date : November 20 2020, 01:01 AM
may help you . I want to run a docker image on Vagrant machine. My Vagrantfile is straingforward: , You need to add the following in /etc/default/docker:
code :
DOCKER_OPTS="--insecure-registry 10.14.6.19:5000"
  config.vm.provision "shell",
    inline: <<-EOS
      echo 'DOCKER_OPTS="--insecure-registry 10.14.6.19:5000 ${DOCKER_OPTS}"' \
        >> /etc/default/docker
  EOS


Share : facebook icon twitter icon
How to run provision.sh on vagrant with docker provider

How to run provision.sh on vagrant with docker provider


By : user2707712
Date : March 29 2020, 07:55 AM
Hope that helps So I have been missing something very fundamental.
The solution I found is easy. Use this amazing contribution from:
Can I use Docker Compose to provision Vagrant directly?

Can I use Docker Compose to provision Vagrant directly?


By : user3386639
Date : March 29 2020, 07:55 AM
will help you I recently raised the same question, and I created a vagrant provisioner plugin that installs docker-compose and brings up docker using it. To use it:
Install the plugin: vagrant plugin install vagrant-docker-compose
code :
config.vm.provision :docker
config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", rebuild: true, run: "always"
Is it possible to provision vagrant boxes from puppet modules located outside of the vagrant folder?

Is it possible to provision vagrant boxes from puppet modules located outside of the vagrant folder?


By : Akbar
Date : March 29 2020, 07:55 AM
I hope this helps .
However each Vagrant VM requires a complete self contained copy of all of the Git repos in order to stand up just one VM.
vagrant provision runs successfully and vagrant-berkshelf vendors cookbooks but nothing is installed

vagrant provision runs successfully and vagrant-berkshelf vendors cookbooks but nothing is installed


By : Poppy
Date : March 29 2020, 07:55 AM
I hope this helps . While you have a whole bunch of cookbooks being sync'd to the machine via berkshelf, the only recipe you are actually running is recipe[vagrancy::default]. You can see in the Chef output (Converging 0 resources) that this isn't actually doing anything. Either you intended for that one recipe to include_recipe the others or you want to add more to the node's run list.
Error 'unexpected end of file /vagrant/provision/prep_server.sh' by vagrant up command

Error 'unexpected end of file /vagrant/provision/prep_server.sh' by vagrant up command


By : user6199701
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Your file has carriage return encoded by windows which is different in linux world.
Your solutions:
Related Posts Related Posts :
  • Decimal output parameter rounded to integer in EF5.0
  • Error when deploying ear in weblogic 11g
  • autocomplete with extjs :ComboBox with REMOTE query store
  • How to make full background color in skeleton, responsive 960 grid?
  • How to send a variable of type struct in MPI_Send()?
  • I accidentally deleted a picture in my album on FB and it was uploaded years ago and I dont have a copy how can i get it
  • Does setting techOrder for video.js really work?
  • What are XMPP extensions (XEPs), and how do I use them?
  • Interactive alternative to dot?
  • Doctrine 2: how do you use a subquery column (in the SELECT clause)
  • Merging graphs using boost graph
  • Creating Order Item Grid in Magento
  • Can't remap Ctrl+W to the F2 key in autohotkey
  • Property 'throw' does not exist on type 'typeof Observable'
  • Unable to deploy SAPUI5 application with 404 error
  • Xcode 10 build fail rm permission denied in /bin/sh/
  • Handling quorum writies fail on Cassandra
  • How to finalize log file just after time is over when using logback SizeAndTimeBasedFNATP?
  • Write custom widget with GTK3
  • How to remove UINavigationBar inner shadow in iOS 7?
  • Wordpress dynamic widget by location?
  • XDocument replace all node value with lower case
  • Invalid tagdir attribute while web-fragment is used
  • Set default font/text size in RTF Control
  • what video formats supported by chromecast device (mp4,flv,m3u8,flv,avi)?
  • sbcl - how to muffle "undefined variable" warning?
  • Get an eventbrite event ID
  • Obtain date without timestamp in DB2
  • Cron job to SFTP files in a directory
  • Draw two head arrows in fabric.js
  • YOLO darknet vs darkflow
  • Parse custom rss tags using Rome API
  • Creating text editor like EDIT on Command Prompt using FreePascal
  • Subplot hides xlabel
  • NServiceBus long running process that timesout
  • Qt4 - How to add a row in a QTableWidget when sorting is enable?
  • Cancel command in Grunt that hasn't been launched
  • Canvas globalCompositeOperation is not working correctly
  • HTML.Kendo().Dropdownlist set default item
  • vagrant up failed, /dev/vboxnetctl: no such file or directory
  • How to use jssor carousel to build client carousal
  • Theory what is meant by validating security concerns for these user groups
  • How to build correct SPARQL Query
  • Connecting to MySQL (on Google Cloud SQL) via JDBC and IPv6?
  • Fetching transaction in several iterations
  • is it possible to use dropbox datastore api as shared datastore?
  • phpExcel 1.8 Named Ranges in Formula
  • Cisco VPN IP address
  • No address associated with hostname using vagrant
  • 2 way data-binding between a polymer component and a model?
  • How can I rename an already published app in the Windows Dev Center?
  • Using Chef 12 , Chef Client unable to connect to chef Server
  • GCM notification not working (GoogleCloudMessaging)
  • Measured GFLOPS is greater then theoretical GFLOPS
  • Progress ABL - strip and add to temp table
  • Errors occuring when make-ing Aircrack-ng on raspberry pi
  • Detecting Handedness from Device Use
  • Query a manual list of data items
  • Similar to pivot - Windows 8.1 Desktop app
  • CKEDITOR And Styles configuration with only toolbar
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org