Coder Social home page Coder Social logo

containertemplate's Introduction

TEMPLATE/CONTAINER

This project exists to help bootstrap projects which build containers. The idea is to clone this project to get a skeleton. However, unlike a skeleton, the project has enough content to demonstrate the moving parts of the application.

Steps for cloning a project:

  1. Go to
  2. Use the link above to create the project in gitlab. This will also setup the Gitlab->Jenkins CI/CD linkages.
  3. Clone this project.
  4. Remove the old source code & tests
  5. Start adding new code
  6. Grep for 'TODO' in the settings.gradle and build.gradle files. Make the changes as described.
  7. Edit the Jenkinsfile to match your desired CI-CD chain. Most of the Jenkinsfile is static, the customizable part starts with "// Most people should only edit things below"
  8. Login to gitlab and go to the gitlab project that you created in #2 will have instructions for importing an existing project. Follow those instructions.

Enhanced HealthCheck

This project now uses a custom health check. Inside the code there is a TODO which indicates the place that you should replace the health check code with your own. When in doubt, simply have the health check return UP all the time. If you do have sophisticated health checks, then you should implement them in the healthEngine package.

Using rebuildproj

There is a helper script in the distribution called rebuildproj. Invoke the command like so within your Vagrant box:

cd /vagrant
./rebuildproj
...

When the script is done, it will have stopped all containers, rebuilt your code and launched the newly rebuilt containers. The command takes one optional argument, -c. If -c is present, the script will not run the 'cleanDockerImages' gradle task. Only use -c if you get an error when cleaning the docker image about a missing ocpm-* layer.

containertemplate's People

Contributors

raidinesh avatar

Watchers

James Cloos avatar

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.