crazybus / lope Goto Github PK
View Code? Open in Web Editor NEWLope abuses docker as a development and testing environment that works (almost) identically across Linux/OSX/Windows
License: MIT License
Lope abuses docker as a development and testing environment that works (almost) identically across Linux/OSX/Windows
License: MIT License
A really common dependency for development and testing environments is vagrant and virtualbox. While vagrant supports using docker as the provisioner it will never give you something "virtual machine" like. Allowing vagrant to talk to virtualbox from inside a docker image brings a lot of challenge. Mostly of these challenges come from the fact that vagrant directly calls the VBoxManage
command to interact with virtualbox.
When lope is run with the -vbox
flag the following happens:
VBoxManage
is added into the docker container which proxies all commands to the lope http endpoint and prints the resultlocalhost
is set to the IP address of the host machine running docker (host.docker.internal) --add-host=localhost:192.168.65.2
With all of these things setup lope is able to start a container and run vagrant up && vagrant ssh
successfully!
host.docker.internal
so that the localhost of the container can be set to it.-vbox
flag is added~/.vagrant.d/boxes/
into the containerRUN sed -i 's/127.0.0.1/localhost/g' /opt/vagrant/embedded/gems/2.1.1/gems/vagrant-2.1.1/plugins/providers/virtualbox/provider.rb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.