{"id":20725201,"url":"https://github.com/sighupio/secure-containers-java-getting-started","last_synced_at":"2026-04-22T01:02:32.614Z","repository":{"id":99074422,"uuid":"276107356","full_name":"sighupio/secure-containers-java-getting-started","owner":"sighupio","description":"Getting started application to test SIGHUP Certified Images","archived":false,"fork":false,"pushed_at":"2023-02-10T13:56:23.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-12-26T12:51:55.522Z","etag":null,"topics":["certified","container","docker","fury","images","oci","prometheus","sighup"],"latest_commit_sha":null,"homepage":"https://sighup.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sighupio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-06-30T13:30:52.000Z","updated_at":"2023-09-20T16:17:58.000Z","dependencies_parsed_at":"2023-03-27T08:16:12.307Z","dependency_job_id":null,"html_url":"https://github.com/sighupio/secure-containers-java-getting-started","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sighupio/secure-containers-java-getting-started","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sighupio%2Fsecure-containers-java-getting-started","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sighupio%2Fsecure-containers-java-getting-started/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sighupio%2Fsecure-containers-java-getting-started/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sighupio%2Fsecure-containers-java-getting-started/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sighupio","download_url":"https://codeload.github.com/sighupio/secure-containers-java-getting-started/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sighupio%2Fsecure-containers-java-getting-started/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32116514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["certified","container","docker","fury","images","oci","prometheus","sighup"],"created_at":"2024-11-17T04:17:54.275Z","updated_at":"2026-04-22T01:02:32.571Z","avatar_url":"https://github.com/sighupio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Certified Images - Getting Started - Java (Maven and Spring Boot)\n\nWelcome to the **Getting started** with Java applications using SIGHUP Certified images.\nIn this repository, you will find a simple hello world application written in Java.\n\nThe build process will use a maven certified image while it will run on top of OpenJDK.\n\n## Requirements\n\nBefore continuing with this getting started, you will need:\n- Valid subscription to the service.\n  - Feel free to request access using [this simple google form](https://forms.gle/Wf916FGxUqRaLY5k7)\n  - If you want extended support over the images, [consider to buy the subscription](https://gumroad.com/l/NiCYf).\n- [`docker`](https://docs.docker.com/get-docker/)\n  - `docker login reg.sihup.io` with your credentials before continuing.\n\n## Build\n\nRun the following commands from the root of this repository:\n\n```bash\n$ docker build -t spring-boot-maven:local .\n# It will take 5-10 minutes\n```\n\n## Run\n\nEverything is ready to run the java app:\n\n```bash\n$ docker run --name demo -d -p 8080:8080 -p 30000:30000 spring-boot-maven:local\nd52b75b5d4495242a3c4a0bb3c6cb9e18eef7bd7e0fac3a003ec156bd9c5034b\n$ docker logs demo\nexec java -javaagent:/opt/SIGHUP/java/14/entrypoint/jmx_prometheus_javaagent.jar=30000:/opt/SIGHUP/java/14/configuration/jmx_exporter.yaml -XX:+ExitOnOutOfMemoryError -cp . -jar /app/demo-0.0.1-SNAPSHOT.jar\n _____  _____  _____  _   _  _   _ ______\n/  ___||_   _||  __ \\| | | || | | || ___ \\\n\\ `--.   | |  | |  \\/| |_| || | | || |_/ /\n `--. \\  | |  | | __ |  _  || | | ||  __/\n/\\__/ / _| |_ | |_\\ \\| | | || |_| || |\n\\____/  \\___/  \\____/\\_| |_/ \\___/ \\_|\n\n2020-06-03 15:03:34.376  INFO 7 --- [           main] io.sighup.demo.DemoApplication           : Starting DemoApplication v0.0.1-SNAPSHOT on d52b75b5d449 with PID 7 (/app/demo-0.0.1-SNAPSHOT.jar started by root in /app)\n2020-06-03 15:03:34.379  INFO 7 --- [           main] io.sighup.demo.DemoApplication           : No active profile set, falling back to default profiles: default\n2020-06-03 15:03:35.857  INFO 7 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)\n2020-06-03 15:03:35.869  INFO 7 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]\n2020-06-03 15:03:35.870  INFO 7 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.35]\n2020-06-03 15:03:35.957  INFO 7 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext\n2020-06-03 15:03:35.957  INFO 7 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1521 ms\n2020-06-03 15:03:36.295  INFO 7 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'\n2020-06-03 15:03:36.792  INFO 7 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''\n2020-06-03 15:03:36.815  INFO 7 --- [           main] io.sighup.demo.DemoApplication           : Started DemoApplication in 3.121 seconds (JVM running for 3.9)\n```\n\nThen the application is ready under 8080 port:\n\n```bash\n$ curl localhost:8080\nGreetings from SIGHUP!\n```\n\nPrometheus JMX exporter is available in the 30000 port:\n\n```bash\n$ curl localhost:30000\n\n\u003cTRUNCATED OUTPUT\u003e\n\n# HELP jvm_threads_state Current count of threads by state\n# TYPE jvm_threads_state gauge\njvm_threads_state{state=\"WAITING\",} 12.0\njvm_threads_state{state=\"BLOCKED\",} 0.0\njvm_threads_state{state=\"RUNNABLE\",} 9.0\njvm_threads_state{state=\"TERMINATED\",} 0.0\njvm_threads_state{state=\"TIMED_WAITING\",} 4.0\njvm_threads_state{state=\"NEW\",} 0.0\n# HELP jvm_classes_loaded The number of classes that are currently loaded in the JVM\n# TYPE jvm_classes_loaded gauge\njvm_classes_loaded 6616.0\n# HELP jvm_classes_loaded_total The total number of classes that have been loaded since the JVM has started execution\n# TYPE jvm_classes_loaded_total counter\njvm_classes_loaded_total 6616.0\n# HELP jvm_classes_unloaded_total The total number of classes that have been unloaded since the JVM has started execution\n# TYPE jvm_classes_unloaded_total counter\njvm_classes_unloaded_total 0.0\n```\n\n```bash\n$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/Library/Caches:/root/.cache/ aquasec/trivy --light spring-boot-maven:local\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsighupio%2Fsecure-containers-java-getting-started","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsighupio%2Fsecure-containers-java-getting-started","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsighupio%2Fsecure-containers-java-getting-started/lists"}