Giter VIP home page Giter VIP logo

petclinic's Introduction

Spring PetClinic Dockerized

Demo of taking the petclinic Java app and adding the proper Docker files to make it easier for dev, test, and prod.

Check the pet-clinic-app/Dockerfile for multi-stage building of a .jar with maven

Check the docker-compose.yml for a full-featured Dev setup with depends_on using true "wait-for-it" style dependency startup

Bugs

  • This currently seems to skip startup of the sprint-petclinic-client frontend, or at least missing a lot of static assets (js/css). PR's welcome (not sure if it's an app issue, or a docker build/run issue)

Features

  • Multi-stage Dockerfile with a build, security scan, and prod stage
  • docker-compose.yml file with proper waiting of database startup

Other Docker and Compose Tips

  1. Use ssh to easily control a Docker Engine on another OS

    Here's an example of pointing docker and docker compose at a remote docker engine. Also works for using docker cli on host OS while docker runs in Vagrant or any VM.

    DOCKER_HOST=ssh://user@host docker image ls

    DOCKER_HOST=ssh://user@host docker-compose up

  2. Enable BuildKit in Docker and Compose

    This may speed up your builds and provides advanced features.

    export DOCKER_BUILDKIT=1
    export COMPOSE_DOCKER_CLI_BUILD=1
    

petclinic's People

Contributors

bretfisher avatar dependabot[bot] 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.