{"id":25686187,"url":"https://github.com/marcosnasp/java-modules-example","last_synced_at":"2025-07-26T04:33:21.030Z","repository":{"id":195400143,"uuid":"692836234","full_name":"marcosnasp/java-modules-example","owner":"marcosnasp","description":"Criando uma aplicação java simples com suporte a geração de imagem slim com JRE customizada para módulos","archived":false,"fork":false,"pushed_at":"2023-10-24T16:29:06.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T19:07:32.150Z","etag":null,"topics":["java17","jdeps","jlink","maven"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/marcosnasp.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2023-09-17T18:20:02.000Z","updated_at":"2023-09-17T18:26:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dd72afe-f556-4d9d-aedf-68d99ef5fec9","html_url":"https://github.com/marcosnasp/java-modules-example","commit_stats":null,"previous_names":["marcosnasp/java-modules-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcosnasp/java-modules-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosnasp%2Fjava-modules-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosnasp%2Fjava-modules-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosnasp%2Fjava-modules-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosnasp%2Fjava-modules-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcosnasp","download_url":"https://codeload.github.com/marcosnasp/java-modules-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosnasp%2Fjava-modules-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267117331,"owners_count":24038650,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java17","jdeps","jlink","maven"],"created_at":"2025-02-24T19:07:33.563Z","updated_at":"2025-07-26T04:33:21.008Z","avatar_url":"https://github.com/marcosnasp.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Modules Example\n\nCriando uma imagem docker leve para executar um pacote java simples\nUtilizando jdeps and jlink para permitir a criação de uma JRE customizada\npara a execução do projeto\n\n```dockerfile\nFROM eclipse-temurin:17-jdk as build\nRUN addgroup java; adduser --ingroup java --disabled-password java\nUSER java\n\nWORKDIR /app\n\nCOPY .mvn/ .mvn\nCOPY mvnw pom.xml ./\nRUN ./mvnw dependency:go-offline\nCOPY src ./src\nRUN ./mvnw package -DskipTests\nRUN jdeps --ignore-missing-deps -q \\\n    --recursive \\\n    --multi-release 17 \\\n    --print-module-deps \\\n    --class-path './target/dependency/*' \\\n    ./target/java-modules-example-1.0.jar \u003e ./deps.info\nRUN jlink \\\n    --add-modules $(cat ./deps.info) \\\n    --strip-debug \\\n    --compress 2 \\\n    --no-header-files \\\n    --no-man-pages \\\n    --output ./myjre\n\nFROM alpine:3.18.3\nENV JAVA_HOME /user/java/jdk17\nENV PATH $JAVA_HOME/bin:$PATH\nCOPY --from=build /app/myjre $JAVA_HOME\nWORKDIR /app\nCOPY --from=build /app/target/java-modules-example-1.0.jar /app/\nENTRYPOINT java -jar java-modules-example-1.0.jar\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosnasp%2Fjava-modules-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcosnasp%2Fjava-modules-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosnasp%2Fjava-modules-example/lists"}