kandi X-RAY | springboot-docker Summary
kandi X-RAY | springboot-docker Summary
springboot-docker
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of springboot-docker
springboot-docker Key Features
springboot-docker Examples and Code Snippets
Community Discussions
Trending Discussions on springboot-docker
QUESTION
The dreaded Java SpringBoot app not connecting to MySQL with Docker-compose java.net.ConnectException: Connection refused
Hi Folks,
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.ConnectException: Connection refused
The app works fine on its own, but it can't seem to connect to mysql once I get it in Docker. I am going out of my mind as I think I have all parameters correct, so any help is greatly appreciated! (:
- Platform:
ANSWER
Answered 2020-Nov-11 at 12:59To fix it you just need to change parameter spring.datasource.jdbc-url to spring.datasource.url and connection string to jdbc:mysql://genesysmysql:3306/db_example?useSSL=false&allowPublicKeyRetrieval=true&autoReconnect=true. Your connection string has an error.
QUESTION
I have a jar/war file of Springboot application, it includes the application.properties file (has connection setting to database in Dev environment, placed at the folder src\main\resources, I use hikari datasource). Now, I want to modify the this properties file when create Dockerfile, to build an image for UAT environment. How can I do that ?
This is my Dockerfile:
...ANSWER
Answered 2019-Sep-19 at 22:30Change your Dockerfile
QUESTION
I have a docker-compose.yml file which takes the image svka4019/notes2:latest from the docker hub. However if I change change the image build it and push it, when I run docker-compose it just uses the one it has already downloaded before. Here is the docker-compose.yml:
...ANSWER
Answered 2019-May-08 at 06:39As @DazWilkin pointed out in the comments, using latest tag should be used carefully. Not only can it introduce bugs in your app if latest comes with BC breaks, but it also doesn't indicate that a new update must be performed on your machine if you already have an image 'latest'.
In your case, what you have to do should you want to keep using latest, is to simply call:
QUESTION
I'm trying to run two web services in 2 separate containers, but unable to run them both at the same time. Separately they both work.
My project structure is this:
...ANSWER
Answered 2019-Apr-16 at 22:54Your friendservice
doesn't have app.py
inside. You should whether copy it so your Dockerfile looks like
QUESTION
I am new to Spring Boot and Docker.
I am trying to create a Spring Boot application connecting to mysql and using Docker to run both.
Steps I followed Step1 - Created mysql image and started running it.
...ANSWER
Answered 2018-Nov-09 at 12:16You should use the container name of mysql as the hostname, since these are linked the mysql container is discoverable by its name from spring. So you need to change datasource.url= jdbc:mysql://localhost:3306/test?
to datasource.url= jdbc:mysql://docker-mysql:3306/test?
Or you can use the alias, as @g00glen00b suggested, like: datasource.url= jdbc:mysql://mysql:3306/test?
QUESTION
I have local instance of Drone running and am trying to build a couple of very simple Maven projects. They are perfectly normal and follow all conventions.
I am using the latest Drone docker image (as of today) and have an agent and server set up in a Rancher environment. A local Gogs instance is the Git repo.
When Drone runs the build, Maven is unable to compile the test classes because it can't find the compiled source classes. It's happening on two different projects which compile with no problems using the following methods:
- on the command line with Maven
- in IntelliJ
- running the Docker maven image while mounting the project directory and executing the build that way.
It's only the Drone build which fails. I am stumped. Any ideas anyone?
Here is the .drone.yml
...ANSWER
Answered 2017-Jun-01 at 10:36The issue is that drone uses your repository url in the workspace path. In your example the repository url includes the port name (colon) which seems to be causing issues when maven tries to read the file.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install springboot-docker
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page