https://github.com/arun-gupta/dcos-java-database
Access a database from a Java application deployed in DC/OS
https://github.com/arun-gupta/dcos-java-database
couchbase database dcos java javaee mesos mesos-framework wildfly
Last synced: about 1 year ago
JSON representation
Access a database from a Java application deployed in DC/OS
- Host: GitHub
- URL: https://github.com/arun-gupta/dcos-java-database
- Owner: arun-gupta
- License: apache-2.0
- Created: 2017-03-06T22:48:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T04:02:48.000Z (about 9 years ago)
- Last Synced: 2025-01-10T12:19:16.279Z (about 1 year ago)
- Topics: couchbase, database, dcos, java, javaee, mesos, mesos-framework, wildfly
- Size: 74.2 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Java + Database on DC/OS
This repository shows how to deploy a Java application talking to a database on DC/OS.
Specifically, a Java EE application deployed in WildFly talking to a Couchbase database.
. Launch https://downloads.dcos.io/dcos/stable/aws.html?_ga=1.207445715.1510362819.1478208859[DC/OS CloudFormation template]
. If not done already, download CLI
. `dcos config set core.dcos_url http://DCOS-ElasticLoadBa-OG73USRXKTX-912507967.us-west-1.elb.amazonaws.com`
. `dcos auth login`
. `dcos config show core.dcos_acs_token`
.. Copy the value in `.dcos-token`
. `dcos package install marathon-lb`
. Update `app-definition.json` with `PublicSlaveDnsAddress`
. Update `pom.xml` with `DnsAddress`
. Deploy app: `mvn install -Pdcos`
. Show services deployed at http://
. Access application: curl http:///airlines/resources/airline