{"id":19454803,"url":"https://github.com/fancellu/sbt-docker-helloworld","last_synced_at":"2025-08-03T23:37:10.619Z","repository":{"id":71450819,"uuid":"88049747","full_name":"fancellu/sbt-docker-helloworld","owner":"fancellu","description":"Simple sbt-native-plugin docker hello world example plus docker-compose example","archived":false,"fork":false,"pushed_at":"2022-02-28T23:04:51.000Z","size":9,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T16:52:12.731Z","etag":null,"topics":["akka-http","docker","docker-compose","microservices","mongodb","scala","scalatest"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/fancellu.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-12T12:34:05.000Z","updated_at":"2025-04-02T12:01:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e69a8b1-8ab0-42d5-916d-75beeba7a435","html_url":"https://github.com/fancellu/sbt-docker-helloworld","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsbt-docker-helloworld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsbt-docker-helloworld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsbt-docker-helloworld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsbt-docker-helloworld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fancellu","download_url":"https://codeload.github.com/fancellu/sbt-docker-helloworld/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250760571,"owners_count":21482830,"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":["akka-http","docker","docker-compose","microservices","mongodb","scala","scalatest"],"created_at":"2024-11-10T17:12:04.444Z","updated_at":"2025-04-25T05:30:39.800Z","avatar_url":"https://github.com/fancellu.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"sbt-docker-helloworld\n=====================\n\nThis is a simple hello world example to serve as a skeleton app to show your Scala code\nrunning inside a docker container\n\n[A more complex docker-compose example](docker-compose/README.md)\n\nIt uses the ```sbt-native-packager``` plugin\n\nFirst, make you you have docker installed and running\n\ni.e. ```docker ps```\n\nshould return the running containers on your current docker host\n\nThen go to the root of this project and run\n\n```sbt stage docker:publishLocal```\n\nIt should build and end with\n\n```\n[info] Built image DockerAlias(None,None,sbt-docker-helloworld,Some(1.0))\n[success] ...\n```\n\n```docker images```\n\nshould show your new image, named ```sbt-docker-helloworld```\n\nTo run\n\n```docker run -it sbt-docker-helloworld:1.1```\n\nYou should see \"Hello World\" follow by the timestamp\n\nOf course to run locally outside of docker, just run\n\n```sbt run```\n\n---\n\nIf you look inside ```target/docker``` you'll see the ```Dockerfile```, jars,\nand ENTRYPOINT binaries\n\nIf you're curious you can shell into the image and take a look around\n\n```docker run -it --entrypoint bash sbt-docker-helloworld:1.0```\n\ne.g. ```bin/sbt-docker-helloworld``` will run the scala app\n\nYou can even supply your own Dockerfile if you so wish\n\nhttp://sbt-native-packager.readthedocs.io/en/latest/formats/docker.html#custom-dockerfile\n\n---\n\nIn order to make Docker easier to use, I recommend the portainer container, an admin web app for Docker\nhttp://portainer.io\n\nTo read more about the sbt-native-packager Docker plugin\n\nhttp://sbt-native-packager.readthedocs.io/en/latest/formats/docker.html\n\nThere is also another sbt-docker plugin\n\nhttps://github.com/marcuslonnberg/sbt-docker","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancellu%2Fsbt-docker-helloworld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffancellu%2Fsbt-docker-helloworld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancellu%2Fsbt-docker-helloworld/lists"}