Giter Club home page Giter Club logo

pet-clinic's Introduction

PetClinic Application

This application is used to illustrate DevOps practices.

This repository is a fork of the spring-petclinic/spring-framework-petclinic. Customization has been added for training purpose.

Feel free to fork this repo.

petclinic-screenshot

Levantar utilizando MySQL

Por defecto la aplicación levanta utilizando una BD embebida, para levantar la aplicación con MySQL seguir lo siguientes pasos:

Levantar MySQL

Crear la red interna. docker network create --driver bridge petclinic-network

Levantar el contenedor de MySQL. docker run --name mysql -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=petclinic -d -p 3306:3306 --network=petclinic-network mysql

Ingresar al contenedor de MySQL y ejecutar un backup de la BD.

docker exec -it mysql /bin/bash
mysql -u root -p < dump.sql
mysql -u root -p petclinic
mysql> select * from vets;

Levantar la Aplicación

Genera la imagen. docker build -t snahider/devopslab-pet-clinic:production-latest -f Dockerfile.build_and_deploy .

Levantar el contenedor. docker run --name petclinic -p 8080:8080 --network=petclinic-network snahider/devopslab-pet-clinic:production-latest --spring.profiles.active=mysql --spring.datasource.password=123456

pet-clinic's People

Contributors

javiermontescarrera avatar

Watchers

 avatar

pet-clinic's Issues

Support veterinarians who handle horses

From Paulo:

As a product owner,
I want horse type entries when the pet clinic database is initially populated,
so that I can demo the feature to veterinarians who take care of horses.

Acceptance criteria:

  • One can have horse as pet
  • The test data contains new pet names for horses

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.