CODEFRESH.IO DOCUMENTATION

Codefresh is a Docker-native CI/CD platform.
Instantly build, test and deploy Docker images.

GET STARTED

Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Spring MVC JDBC Template

Using this repository we'll help you get up to speed with basic functionality such as: compiling, testing and building Docker images.

This project uses JAVA, SpringMVC, Tomcat, MySQL, Maven to build an application which will eventually become a distributable Docker image.

Looking around

In the root of this repository you'll find a file named codefresh.yml, this is our build descriptor and it describes the different steps that comprise our process. Let's quickly review the contents of this file:

version: '1.0'

steps:

    unit_test:
      title: Unit Tests
      image: maven:latest
      commands:
        - mvn -version

    build_image:
      title: Building Image
      type: build
      dockerfile: Dockerfile
      image_name: codefresh/java-spring-mvc-jdbc

    launch_composition:
      title: Launch Composition
      type: launch-composition
      composition: docker-compose.yml
      environment_name: 'java-spring-mvc-jdbc'
      entry_point: tomcat

Example

Just head over to the example repository in Github or this repository in Bitbucket and follow the instructions there.

Expected result

Spring MVC JDBC Template