Skip to content
past of order management system service
Java HTML Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gradle Added kubernetes deployment files Nov 3, 2019
.idea initial commit Nov 22, 2018
gradle/wrapper initial commit Nov 22, 2018
kubernetes Added kubernetes deployment files Nov 3, 2019
out test Nov 22, 2018
src Added kubernetes deployment files Nov 3, 2019
.gitignore Added kubernetes deployment files Nov 3, 2019
Dockerfile initial commit Nov 22, 2018
LICENSE Initial commit Nov 18, 2018
README.md tet Nov 22, 2018
build.gradle Added kubernetes deployment files Nov 3, 2019
gradlew initial commit Nov 22, 2018
gradlew.bat initial commit Nov 22, 2018
settings.gradle initial commit Nov 22, 2018

README.md

orderService

part of order management system service

###Step 1 : Configure Postgres Database using docker

$ docker run --name oms_postgres -p 5432:5432 -e POSTGRES_USER=dbuser -e POSTGRES_DB=orders_db -e POSTGRES_PASSWORD=password -d postgres

Note : if the container is already running :

$ docker start oms_postgres 

To create orders_db :

docker exec -it 5328f411af86 psql -d postgres -U dbuser -c "CREATE DATABASE orders_db;"
docker exec -it 5328f411af86 psql -d postgres -U dbuser -c "GRANT ALL PRIVILEGES ON DATABASE orders_db TO dbuser;"

Once the DB is up and running configure its details in application.properties file

####Build

./gradlew build

###Run

./gradlew bootRun

docker exec -it 5328f411af86 psql -d postgres -U dbuser

You can’t perform that action at this time.