Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

wolffaxn/dockerfiles

Repository files navigation

dockerfiles

MIT licensed GitHub last commit (branch)

Table of Contents

About

A set of Java related Dockerfiles.

Setup

  1. Install dependencies
  1. Clone this project.
git clone https://github.com/wolffaxn/dockerfiles.git
cd dockerfiles
  1. Install vagrant plugins
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-vbguest
  1. Startup and SSH
vagrant up
vagrant ssh
  1. Get started using CoreOS

Shared folder setup

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.

Building

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

Running

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

License

This project is licensed under the terms of the MIT license.

About

A set of Java related Dockerfiles.

Resources

License

Stars

Watchers

Forks

Packages

No packages published