{"id":19561904,"url":"https://github.com/beansoft/springbootdockerdemodebug","last_synced_at":"2025-08-17T18:42:41.280Z","repository":{"id":181588704,"uuid":"625751762","full_name":"beansoft/SpringBootDockerDemoDebug","owner":"beansoft","description":"Test project for SpringBoot debug via docker","archived":false,"fork":false,"pushed_at":"2024-04-28T13:48:05.000Z","size":21720,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T08:45:11.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/IdeaUJetBrains/SpringBootDockerDemoDebug","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beansoft.png","metadata":{"files":{"readme":"Readme","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-10T02:52:04.000Z","updated_at":"2023-04-10T02:52:39.000Z","dependencies_parsed_at":"2024-11-11T05:13:00.551Z","dependency_job_id":"d3a312f8-d160-478a-bd04-2cf7a303431e","html_url":"https://github.com/beansoft/SpringBootDockerDemoDebug","commit_stats":null,"previous_names":["beansoft/springbootdockerdemodebug"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beansoft/SpringBootDockerDemoDebug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2FSpringBootDockerDemoDebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2FSpringBootDockerDemoDebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2FSpringBootDockerDemoDebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2FSpringBootDockerDemoDebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beansoft","download_url":"https://codeload.github.com/beansoft/SpringBootDockerDemoDebug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beansoft%2FSpringBootDockerDemoDebug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263379340,"owners_count":23457836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T05:12:54.010Z","updated_at":"2025-07-03T18:32:38.809Z","avatar_url":"https://github.com/beansoft.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Created by Olga Pavlova\nOlga.Pavlova@jetbrains.com\n\nTask:\nDebug the SpringBoot application, which is built(maven) inside the container with the connection to the container mysql database.\n\nIt is a spring boot application for the local bus service.\nThe database image is already pre-populated and its name is: opavlova/db-mysql:5.7-test\n    container mysql port: 3306\n    db name: DOCKERDB\n    password: root\n    login: root\n\nFor it I have a docker-compose file with two services.\nOne is the application itself, built with the Dockerfile using maven. Another is the mysql database.\n\n\nSteps:\n1. Install Docker integration plugin if it is not installed\n2. Create a remote run configuration with docker-compose_debug.yml in the before launch section, for it do the following:\n-go to the Project View, call context menu, choose \"Create...\", press Ok\n-go docker-compose_debug.yml file, click \"Debug\" gutter(or Run-\u003eEdit Configurations-\u003ecreate Remote run configuration):\n    point another debug port-\u003eApply\n    add \"Launch docker before debug\" in the \"Before Launch\" section (check that the custom command is Ok), Press Ok\n-run debug\n\n\nProblems, that can happen:\n1. the images are not re-build\n To fix: go to the created docker-compose run configuration and turn on the option \"--build, force build images\"\n\n2. if the port is allocated:\n -check that there is no already running containers at the host ports, pointed in the compose files (13306 for mysql and 18080 for the app container)\n If debug port  is allocated then set another port\n\n3. the \"connection link failure\" in the application container\nTo fix:\n-check the correctness of the database url from  src\\main\\resources\\application.properties\nIt should be jdbc:mysql://\u003cdb_container_name\u003e:\u003cdb_container_port\u003e/DOCKERDB\n-try to delete the created \"app\" container and re-run the compose file(run configuration) again with \"--build\" option on.\n\n4. Debug re-run doesn't work.\nTo fix: Run it once more. It happens that it fails to re-run(IDEA-209225).\n\n5. Custom command is not changed after save (IDEA-207868)\nTo fix: delete the remote run config, create it again\n\n6. Debug doesn't work at all, the error \"Unable to locate started container\" appears after 2 min:\n-check that \"HEALTHCHECK\"=false if there is no healthcheck for running docker container.\n\n7. The command for debug doesn't contain the needed \"running\" options.\nTo Fix:\n  the command appears automatically if:\n    for Dockerfile - Command field of the docker run config contains this command\n    for docker compose:  there is the \"command\" key with the command for a service\n  write it manually in the Custom Command field of the \"Docker Configuration\" dialog in the \"Before Launch\" section\n\n\n\nTips:\n-run commands like \"bash\" etc inside the containers:\nuse DockerView-\u003eselect a container-\u003econtext menu-\u003e \"exec\"\n\n-select one of the services to run in the compose file:\ngo to the compose run configuration, select any service(s) in the \"Services\" field\n\n-you can connect to the database via Database view:\ngo to the DataabseView-\u003e+-\u003eDataSource from Url\nurl: jdbc:mysql://0.0.0.0:13306/DOCKERDB\n\n-you can check the working conternerized application:\nupon executing GET request at http://127.0.0.1:18080/entitybus/post\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeansoft%2Fspringbootdockerdemodebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeansoft%2Fspringbootdockerdemodebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeansoft%2Fspringbootdockerdemodebug/lists"}