Launch java verification environment locally with Vagrant

In my previous workplace, I tried to build a java environment using vagrant and ansible after studying when building an environment that can be confirmed locally without an environment to verify in a remote environment, so I will share it. * The procedure is for mac environment only. Currently, iOS client side development is the main, and server side development (node.js is a little involved) is not done, so it is good to make it, but I myself can not utilize it at all. ,,,


Please install the following in advance.

$ brew install ansible
$ brew cask install vagrant
$ brew cask install virtualbox

Here is the specific setting method

Clone the source from here.

In the directory where the Vagrantfile is located

$ vagrant up

I think it will take some time, but if it finishes normally, access the following.

http://192.168.33.10:8080/sample/

The following war will be expanded.

ansible-vagrant-java
└ www
  └ tomcat
     └ webapps
        └ sample-1.0.war

Sample screen

スクリーンショット 2018-05-28 11.27.07.png

Caution

If you see the following error during setup

There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:
* Unknown configuration section 'vbguest'.
*

Please install or reinstall vagrant-vbguest.

$ vagrant plugin uninstall vagrant-vbguest
$ vagrant plugin install vagrant-vbguest

Summary

Normally, I think that you can create an environment more easily with an IDE etc., but I think that you can use it as an environment where you can easily try it when there is no remote verification environment, so please use it if you like.

Note

-[Summary] Vagrant command list -Vagrant command list or cheat sheet -Vagrant: Unknown configuration section called'vbguest'

Recommended Posts

Launch java verification environment locally with Vagrant
Create SolrCloud verification environment with Docker
Prepare Java development environment with VS Code
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
vagrant java build
[Java] Environment construction
Java environment construction
Java development environment
Build an E2E test environment with Selenium (Java)
Prepare a scraping environment with Docker and Java
Build a Java development environment with VS Code
Build Java development environment with VS Code on Mac
[Java] Environment construction procedure for developing struts 1.3 with Eclipse
[Note] Create a java environment from scratch with docker
Build Java development environment with WSL2 Docker VS Code
How to build Java development environment with VS Code
Prepare the environment for java11 and javaFx with Ubuntu 18.4
[Environment construction] Build a Java development environment with VS Code!
Build Java program development environment with Visual Studio Code
Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)
Install java with Homebrew
Java development environment memo
Change seats with java
Install Java with Ansible
[Summary] Java environment preparation
Launch MariaDB with Docker
Comfortable download with JAVA
Switch java with direnv
Download Java with Ansible
java development environment construction
Let's scrape with Java! !!
Build Java with Wercker
Endian conversion with JAVA
I tried to create a java8 development environment with Chocolatey
[Vagrant] Prepare LAMP development environment with Vagrant (centos + apache + MySQL + PHP)
Zip compression with Java in Windows environment without garbled characters
Build WebAPP development environment with Java + Spring with Visual Studio Code
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.