I followed the guide (https://cloud.google.com/debugger/docs/setup/java#cloud-run) to setup the cloud debugger for my cloud run services. Everything looks like it should work. However the debugger UI tells me it can not find any application. However I did everything that was suugested in the documentation Sou…
Tag: docker
Running Acrarium by docker-compose.yaml causes HikariPool-1 – Exception during pool initialization
I’m trying to run Acrarium on my local Debian 10 machine – just to test it – by running the docker-compose up command with this compose file: The database runs successfully, but when it comes to run acrarium, I’m getting this error in terminal: HikariPool-1 – Exception during poo…
Java SIGSEGV error when running from docker
I have no experience in Java and I can run my code successfully from the development. But only when I built the project and runs it from docker, I got an error like this. I have followed the error message to use ulimit -c unlimited by adding it in the docker command: docker run –ulimit core=-1 –en…
Get version number of a dependency from pom.xml using command line and use that version number to tag a docker image
I have a pom file. I want to read the version of the first dependency in the dependencies tag and use that version to tag our docker image. I am using this command to get the project version. mvn help:evaluate -Dexpression=project.parent.version:1 -q -DforceStdout I want to get the version of the first depend…
Micronaut test in docker overriding the MICRONAUT_ENVIRONMENTS
We run our micronaut integration tests in the cloud in a docker container We’re setting the MICRONAUT_ENVIRONMENTS=staging in the docker environment variables, to force our application to read the config values from application-staging.yaml. However, micronaut is automatically adding “test” …
The dreaded Java SpringBoot app not connecting to MySQL with Docker-compose java.net.ConnectException: Connection refused
I have been struggling with the following issue – the dreaded Java SpringBoot app not connecting to MySQL with docker compose exceptions: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure JDBCConnectionException: Unable to open JDBC Connection for DDL execution java.net.C…
Can’t find io.jsonwebtoken.impl.DefaultJwtBuilder when starting project in a docker container
When starting my Quarkus project locally with mvn quarkus:dev I have no errors when executing a function which utilizes JJWT. However when I export my project into a docker container it gives me an error stating that it can’t find DefaultJwtBuilder. When dockerizing my project I first execute ./mvnw pac…
No Main Class found when running a dockerizing image
I have a university project which consist of building a Java Spring Boot application that can handle multiple APIs that can start new docker containers running jar applications. For the moment, I was able to experiment how Spring Boot works, so I built a simple jar to deploy a simple greeting API that returns…
Connection refused trying to connect to mongoDB docker instance
I’m trying to deploy a simple app with a MongoDB with JPA, but I can’t make it work right. When I deploy the app in a docker container, I keep getting the following error: This is the dockerfile I use to build the image: And the docker-compose.yml I used to run mongoDB: My entities all follow the …
How to create docker image with nodejs 12, java, gcc, g++,python3, monocs
I am trying to dockerize my NodeJs & Express API . In my API iam using https://www.npmjs.com/package/compile-run package to compile and run C, Cpp,Java,JavaScript(Node.js env), Python languages. This package requires all 5 compilers(gcc,g++,nodejs,python3,javac) installed on the server. If any compiler mi…