Giter VIP home page Giter VIP logo

java_jf's Introduction

Sample Java-Tomcat helloworld app!

Demonstrates:

  • Java app running on Apache Tomcat server in Docker container
  • Shippable for CI
  • Maven for unit tests and compilation
  • Pull/deploy Java artifacts to Artifactory instance
  • Push Docker images to Docker Hub
  • Shippable for CD with pipeline configuration to deploy to a Test and Prod cluster

Instructions to run this yourself:

  1. Fork this repo

  2. Create an account on Shippable

  3. Enable your forked repo as a project on Shippable

  4. Create Account Integrations to store your authentication credentials for third party services

  1. Assign the integrations for use by your project for the following:
  • Your GitHub or Bitbucket integration (e.g. ttrahan-gh)
  • Your Docker Hub integration (e.g. ttrahan-dh)
  • Your Amazon ECS integration (e.g. ttrahan-aws)
  • Your Google GKE integration (e.g. ttrahan-gke)
  1. Update the following in shippable.resources.yml
  • Change all integration names to match the integrations you created in 5) above
  • Change all resource locations to match your locations, e.g. change the image resource of type 'image' to point to your Docker Hub repo instead of 'ttrahan/javahelloworld'
  1. Seed your pipeline with your configuration
  • Navigate to your subscription (select from hamburger dropdown menu in upper left)
  • Select the 'SPOG' tab
  • Select the 'Resources' tab and click 'Add Resource'
  • Select your source control integration from the list and complete remaining fields
  • NOTE: upon saving, you should see your pipeline configuration now appear on the SPOG tab
  1. Create an Account Integration to link your CI runs to the image resource in your pipeline
  • Go to Account Integrations (gear icon in upper right)
  • Select Integrations and click Add Integration
  • Select Event Trigger from the dropdown
  • Name your integration (e.g. ttrahan-trigger-javahello-pipeline)
  • Assign the integration to your subscription like in 5) above (e.g. trigger- javahello-pipeline)
  1. Update the .m2/settings.xml file with the URL location of your Artifactory instance

  2. Update the following in shippable.yml

  • The secure variable in shippable.yml with your Artifactory login password using the form ' PASSWORD=yourPassword '
  • The Docker Hub locations in the 'docker tag' and 'docker push' commands
  • The integrationName values under the Integrations section
  1. Now commit a change to the repository
  • Your pipeline should activate and you should be able to see it execute

java_jf's People

Contributors

avinci avatar

Watchers

James Cloos avatar Devashish avatar Ragesh Krishna avatar Manisha Sahasrabudhe avatar

Forkers

manishas

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.