Skip to content
Advertisement

Tag: docker

How to handle Docker-Secrets in application.properties files

How do you inject Docker secrets (files/data from /run/secrets) into the application.properties files? Is it safe to use environment variables? Answer First of all, usage of environment variables for secret data for the application.properties isn’t safe. You have mainly two options when talking about Secrets. If you are using Docker Secrets without Docker Swarm then you can directly load the

Kafka Connect Error : java.lang.NoClassDefFoundError: org/apache/http/conn/HttpClientConnectionManager

I’m using docker with kafka and clickhouse. I want to connect ‘KsqlDB table’ and ‘clickhouse’ using ‘kafka connect’. So I referred to this document and modified ‘docker composite’. here is my docker-compose And This is Dockerfile-kafka-connect And I typed this command in ‘KsqlDB’. (‘S3_FINAL’ topic has AVRO format for both multi-key and values.) And It doesn’t work. So I read

Spring Boot Docker Native image of Spring R2DBC application on Java 16 fails on unsupported methdod

I have a simple application built on top of org.springframework.boot:spring-boot-starter-parent version 2.5.4-SNAPSHOT and some derived dependencies: org.springframework.boot:spring-boot-starter-data-r2dbc org.springframework.boot:spring-boot-starter-webflux org.springframework.boot:spring-boot-starter-actuator io.r2dbc:r2dbc-postgresql I use org.springframework.experimental:spring-native version 0.10.3 to enable Spring Native and build using the following plugin: I build the image using ./mvnw.cmd spring-boot:build-image -Pnative-docker -DskipTests, I get assured Java 16 is bootstrapped correctly, and then the image exists (why it is

Application build is successful but getting error: ‘no main manifest attribute, in app.jar’ while running the image

I am trying to deploy my spring boot application on a docker. I have created a docker file as follows. The docker file builds fine but when I run the image it throws the following error: Please note that my application runs on JDK 11, maven build and already added dependency for spring-boot-maven-plugin. I couldn’t find a proper solution for

How to deploy stack with docker-java client?

How to deploy stack with docker-java client? ex) docker stack deploy –compose-file docker-compose.yml stackdemo Is there any function to run this command in java client? Answer If you want to execute multiple commands I suggest you to write a shell script file and execute it from the java code. Another option if you want to only run 1 command you

Advertisement