I created a spring-boot app that connects to the firestore. My credentials are in the JSON file. Local it is working well and the file path is also good. When I deployed the code into the docker container. I see the file not found exception of JSON file. and FirebaseApp with name [DEFAULT] doesn’t exist. ..
Tag : spring-boot
I am building my spring boot native application on an alpine (openjdk:13-alpine) docker image. ./mvnw spring-boot:build-image -DskipTests When doing this I got an error : [INFO] Building image ‘docker.io/library/bff-distributor:0.0.1-SNAPSHOT’ [INFO] [INFO] I/O exception (java.io.IOException) caught when processing request to {}->docker://localhost:2376: com.sun.jna.LastErrorException: [2] No such file or directory [INFO] Retrying request to {}->docker://localhost:2376 [INFO] I/O exception ..
this is my security config file using Keycloack adapter i don’t have any custom filter just the basic configuration for keycloak , it works so well in localhost but when i publish it into my docker container , always 401 UNAUTHORIZED @KeycloakConfiguration public class KeycloakSecurityConfig extends KeycloakWebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception ..
So I have a Spring boot application that runs on port 8080 on my localhost. It connects to an Azure sqlserver database and pulls or inserts item from that database. Locally everything is working fine. Now I’m trying to dockerize the application. My Dockerfile looks like this: FROM maven:3.5-jdk-8 AS build COPY src /usr/src/app/src COPY ..
I have a simple Spring boot application for which I want to build docker image using Jenkins but getting error : Jenkins Error: + /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/M3/bin/mvn clean package -DreleaseVersion=main.39.4c278b3.102 -DdevelopmentVersion=0.0.1-SNAPSHOT -DskipTests -Pdocker docker:push [INFO] Scanning for projects… Progress (2): 20 kB | 14 kB Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 37 kB/s) Downloaded from central: ..
Im using the Google Cloud Run service to host my Spring application in a docker container. The database is running in the Google SQL service. My problem is that the requests from the application to the database can take up to 2 minutes. See the Google Cloud Run log (the long requests are painted yellow). ..
In my application.yml file, I added the server port on 8080. server: port: 8080 Now in my Dockerfile, I am exposing port range 8080-8089. Here my goal is I will run this image on the different external and internal ports. My Dockerfile is given bellow FROM openjdk:8-jdk-alpine ARG JAR_FILE=build/libs/*.jar COPY ${JAR_FILE} user-service.jar EXPOSE 8000-8089 ENTRYPOINT ..
I have created 2 springboot applications [producer and consumer]. They are working as expected in JBOSS EAP where I define the activeMQ config in standalone.xml. But when I deploy these war files in cloud, how do I setup activeMQ so that the message sent by producer to the Q is processed by the consumer microservice. ..
I have a spring boot application and a postgresql database. I run both of them in containers with docker-compose. The thing is, normal calls, for ex. localhost:8080/api/users return normal values and act as normal. However, when I try to access localhost:8080/api/images/x.png it is supposed to return an image, but I get this instead: java.io.FileNotFoundException: File ..
when I run kafka and zookeeper servers by hand everything works fine but I tried to put everything in docker and I’m receiving this error: [Consumer clientId=consumer-test-1, groupId=test] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected My application.properties: spring.kafka.consumer.bootstrap-servers = localhost:9092 spring.kafka.consumer.group-id=test spring.kafka.consumer.auto-offset-reset = earliest spring.kafka.consumer.key-deserializer= org.apache.kafka.common.serialization.StringDeserializer spring.kafka.consumer.value-deserializer = org.apache.kafka.common.serialization.StringDeserializer spring.kafka.producer.bootstrap-servers = localhost:9092 spring.kafka.producer.key-serializer = ..