Giter Site home page Giter Site logo

cuddly-waddle-master's Introduction

urotaxi

To launch the urotaxi application we need to pass the below properties as environment varaibles pointing to the database server details spring.datasource.url=jdbc:mysql://:/urotaxidb spring.datasource.username= spring.datasource.password=

docker network create urotaxinetwork docker volume create urotaxidbvol

build the project

mvn clean verify

launch the mysql server docker container

docker container run --name urotaximysqldb --network urotaxinetwork --mount type=volume,source=urotaxidbvol,target=/var/lib/mysql -e MYSQL_ROOT_PASSWORD=welcome1 -d mysql:8.0.28

create db schema on the mysql server instance

docker cp src/main/db/urotaxidb.sql urotaximysqldb:/ docker container exec -it urotaximysqldb bash

verify in docker container whether urotaxidb has been created or not

mysql -uroot -pwelcome1 show databases; use urotaxidb; show tables; exit;

build the docker image

docker image build -t jcrhub.com/docker/urotaxi:1.0 .

run the docker container

open variables.env and populate database information appropriately docker container run --name urotaxi --network=urotaxinetwork -p 8080:8082 --env-file=variables.env -d jcrhub.com/docker/urotaxi:1.0

cuddly-waddle-master's People

Contributors

kishan-hub avatar

Watchers

 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.