In order to be able to consume the application, there are some properties you need to set while starting app:
- spring.cloud.gcp.credentials.location: Path to the firebase service account json
Create a SpringBoot application launcher with the following parameters:
- Main class:
com.cjfc.recipes-manager.Application
- Compile the project:
mvn clean install
- Build docker image:
docker build -t carlosjfcasero/recipes-manager:0.1.0-SNAPSHOT .
- Run
docker-compose up -d
NOTE: If you want to run docker image in Rpi
run docker build -t carlosjfcasero/recipes-manager:0.1.0-SNAPSHOT --platform linux/amd64 --platform linux/arm64 --platform linux/arm/v7 .
in step 2 instead