GithubHelp home page GithubHelp logo

rjkmurray75 / javaoneus2016 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eldermoraes/javaoneus2016

0.0 1.0 1.0 2.07 MB

JavaOne US 2016 - Demo files

Home Page: http://eldermoraes.com

Shell 19.88% Java 80.12%

javaoneus2016's Introduction

JavaOne US 2016

Java EE, Posgres, Apache TomEE, Apache Cassandra, ActiveMQ and Docker Demo

To build our Postgres image (based on this Dockerfile)

docker build -t postgres-javaone .

To create and run a new container based on the image created:

docker run --name postgresdb -p 5432:5432 postgres-javaone

To create and run a new container based on an ActiveMQ image:

docker run --name activemq webcenter/activemq:5.13.2

To create and run a new container based on an Apache Cassandra image:

docker run --name cassandradb cassandra:3.7

To build our Apache TomEE image (based on this Dockerfile)

docker build -t tomee-db --build-arg WAR_FILE=javaonedb.war .

To create three new containers basead on the image created and link them to the Postgres and Cassandra containers:

docker create --name hostdb1 -p 8080:8080 --link postgresdb:postgresdb --link cassandradb:cassandradb tomee-db
docker create --name hostdb2 -p 8081:8080 --link postgresdb:postgresdb --link cassandradb:cassandradb tomee-db
docker create --name hostdb3 -p 8082:8080 --link postgresdb:postgresdb --link cassandradb:cassandradb tomee-db

To create a NGINX container (based on this env file):

docker create --name loadbalancerdb -p 80:80 --link hostdb1:hostdb1 --link hostdb2:hostdb2 --link hostdb3:hostdb3 --env-file ./env-load.list jasonwyatt/nginx-loadbalancer

To start all those just created containers:

docker start hostdb1
docker start hostdb2
docker start hostdb3
docker start loadbalancerdb

Then an application called "javaonedb" will be available to be accessed thru your browser (check "docker-machine ip" command to see the IP that Docker is using).

Java EE, Posgres, Apache Tomee, Apache Cassandra, ActiveMQ, Gradle and Docker Demo

Go to the javaonedb folder and execute the command:

gradle clean build war

javaoneus2016's People

Contributors

andretadeu avatar eldermoraes avatar

Watchers

 avatar

Forkers

rjkmurray

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.