Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 1.13 KB

README.md

File metadata and controls

67 lines (50 loc) · 1.13 KB

Connect to PgAdmin

  1. Go to browser http://localhost:8000
  2. Enter credentials:
  3. Add New Server -> Connection Tab
     host: postgre-db
     port: 5432
     database: cinema
     username: postgres
     password: password
    

Run Locally

chmod +x start.sh
chmod +x stop.sh

./start.sh

./stop.sh

Open in browser localhost:8080/cinema

#Api - Swagger Documentation http://localhost:8080/swagger-ui.html

Run Locally in dev mode

In docker-compose.yml set:

cinema-app:
        image: 'com.example/cinema:latest'

Run:

./gradlew clean build
./gradlew jibDockerBuild
docker-compose up -d

Push image to docker hub

./build_and_push_to_hub.sh

Or manually:

./gradlew jibDockerBuild (to build image)

docker images (to find your image id - IMAGE_ID)

docker tag IMAGE_ID ilka/ilka_images_repository:cinema-app

docker images (to check that image with the desired tag exists)

docker push ilka/ilka_images_repository:cinema-app

check published image here: https://hub.docker.com/repository/docker/ilka/ilka_images_repository