Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 2.93 KB

README.md

File metadata and controls

89 lines (60 loc) · 2.93 KB

DevBox

Vagrantfile to start a Vagrant box. Inside the box docker will be installed and the following services will be pulled and run:

  • PostgreSQL offical PostgreSQL image from Docker-Hub
  • UAA own preconfigured image which can be used for development purposes.
  • Redis offical Redis image from Docker-Hub
  • Redis Commander of Docker-Hub user tenstartups
  • RabbitMQ offical RabbitMQ image from Docker-Hub

Installation

There are 2 configured providers, tho change the providers you have to specify the --provider param on vagrant up

Reason why not using docker itself as provider:

When setting up the UAA it will be bound to localhost:8080. Now the UAA will create an JSESSIONID cookie when connecting. The Spring will also create this cookie with another value. This will lead to problems when running it on the same host. This will be fixed/bypassed by running the UAA inside a virtual machine.

VirtualBox

The easiest way to run the devBox is by using Oracle VirtualBox. When using this provider the network will be set to 192.168.33.10 and you can simply connect to it.

vagrant up --provider virtualbox

HyperV

When using Windows 10 and have Docker for Windows installed you will not be able to use VirtualBox because of its incompatibility with HyperV which docker uses.

vagrant up --provider hyperv

Vagrant should now download base image and install docker with the containers in it. During startup you will be asked for the network that should be used and for your admin login credentials. The credentials are required for a path mapping of the devBox directory to /vagrant in the devBox.

Usage

Start the Box

vagrant up

Stop the Box

vagrant halt

Check docker logs

# Vagrant have to be running
vagrant ssh
# inside devBox do:
docker ps
docker logs <ID of container, see output docker ps>

Adding new data or change the box

vagrant up --provision

Connect to devBox

To connect to devBox you have to connect to:

192.168.33.10

The current port mappings can be found below.

Current Port Mappings

Name Funktion Port
Redis Main port for usage in Applications 6379
Redis-Commander Browser View for Redis 8081
RabbitMQ Main port for usage in Applications 5672
RabbitMQ epmd - 4369
RabbitMQ WebUI WebUI of RabbitMQ 15672
PostgreSQL Main port for usage in Applications 5432
UAA UAA 8080