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 ..

Read more

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 ..

Read more

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: ..

Read more

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). ..

Read more

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 ..

Read more

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 ..

Read more

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 = ..

Read more