Table of Contents
A set of Java related Dockerfiles.
- Install dependencies
- CoreOS 1298.7.0 or greater.
- Vagrant 1.8.1 or greater.
- VirtualBox 5.1.20 or greater.
- Clone this project.
git clone https://github.com/wolffaxn/dockerfiles.git
cd dockerfiles
- Install vagrant plugins
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-vbguest
- Startup and SSH
vagrant up
vagrant ssh
- Get started using CoreOS
The Vagrantfile contains a shared folder setup.
# NFS requires a host-only network to be created
config.vm.network :private_network, ip: "192.168.2.10"
# enable NFS for sharing the host machine into the coreos-vagrant VM
config.vm.synced_folder ".", "/home/core/vagrant", id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp']
After 'vagrant up' you will be prompted for your local machine password.
After login change into the NFS folder 'vagrant'.
cd /home/core/vagrant
Run the following commands to build all images with docker.
docker build --rm -t wolffaxn/base base
docker build --rm -t wolffaxn/java java
docker build --rm -r wolffaxn/postgresql postgresql
docker build --rm -t wolffaxn/jenkins jenkins
docker build --rm -t wolffaxn/nexus nexus
docker build --rm -t wolffaxn/sonarqube sonarqube
docker build --rm -t wolffaxn/wildfly wildfly
docker run -d -p 2021:22 -p 8081:8080 --name=jenkins -t -i wolffaxn/jenkins
docker run -d -p 2022:22 -p 8082:8080 --name=nexus -t -i wolffaxn/nexus
docker run -d -p 2023:22 -p 8083:8080 --name=sonarqube -t -i wolffaxn/sonarqube
This project is licensed under the terms of the MIT license.