vagrant-maven-plugin | Maven plugin for Vagrant | Plugin library
kandi X-RAY | vagrant-maven-plugin Summary
kandi X-RAY | vagrant-maven-plugin Summary
Maven plugin for Vagrant.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main execution method
- Setup
- Executes the CLI script
- Executes the VM
- Executes the command
- Execute the VM
- Runs the dependencies
- Executes command
- Executes the add box
- Execute VM
- Remove a box
- Command for repos
vagrant-maven-plugin Key Features
vagrant-maven-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on vagrant-maven-plugin
QUESTION
Is it somehow possible to build images without having docker installed. On maven build of my project I'd like to produce docker image, but I don't want to force others to install docker on their machines.
I can think of some virtual box image with docker installed, but it is kind of heavy solution. Is there some way to build the image with some maven plugin only, some Go code or already prepared virtual box image for exactly this purpose?
It boils down to question how to use docker without forcing users to install anything. Either just for build or even for running docker images.
UPDATE
There are some, not really up to date, maven plugins for virtual machine provisioning with vagrant or with vbox. I have found article about building docker images without docker on basel So far I see two options either I can somehow build the images only or run some VM with docker daemon inside(which can be used not only for builds, but even for integration tests)
...ANSWER
Answered 2017-Dec-08 at 10:47I don't want to force others to install docker on their machines.
If by "without Docker installed" you mean without having to install Docker locally on every machine running the build, you can leverage the Docker Engine API which allow you to call a Docker Daemon from a distant host.
The Docker Engine API is a RESTful API accessed by an HTTP client such as wget or curl, or the HTTP library which is part of most modern programming languages.
For example, the Fabric8 Docker Maven Plugin does just that using the DOCKER_HOST
parameter. You'll need a recent Docker version and you'll have to configure at least one Docker Daemon properly so it can securely accept remote requests (there are lot of resources on this subject, such as the official doc, here or here). From then on, your Docker build can be done remotely without having to install Docker locally.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vagrant-maven-plugin
You can use vagrant-maven-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the vagrant-maven-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page