{"id":24835784,"url":"https://github.com/tobilg/docker-predictionio","last_synced_at":"2025-10-14T10:30:34.255Z","repository":{"id":86825746,"uuid":"51362979","full_name":"tobilg/docker-predictionio","owner":"tobilg","description":"Docker container for the latest prediction.io version with most recent dependencies","archived":true,"fork":false,"pushed_at":"2017-01-06T18:05:19.000Z","size":8,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T14:17:30.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobilg.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":"2016-02-09T11:32:19.000Z","updated_at":"2023-09-08T17:06:51.000Z","dependencies_parsed_at":"2023-07-16T13:22:40.185Z","dependency_job_id":null,"html_url":"https://github.com/tobilg/docker-predictionio","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tobilg/docker-predictionio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-predictionio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-predictionio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-predictionio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-predictionio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobilg","download_url":"https://codeload.github.com/tobilg/docker-predictionio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-predictionio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018780,"owners_count":26086452,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2025-01-31T04:51:46.397Z","updated_at":"2025-10-14T10:30:34.249Z","avatar_url":"https://github.com/tobilg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PredictionIO as a Docker container\n\n\u003e [PredictionIO](https://prediction.io) is an open-source Machine Learning\nserver for developers and data scientists to build and deploy predictive\napplications in a fraction of the time.\n\n## Contents\nAs of 2016-06-15 this container has the following applications installed:\n* PredictionIO 0.9.6\n* Spark 1.6.1\n* Elasticsearch 1.7.5\n* HBase 1.0.3\n\n## Running\n\n### Basic\nTo run the basic container, without a template yet deployed:\n```Bash\n$ docker run -d -p 7070:7070 -p 8000:8000 tobilg/predictionio\n```\nThis starts the event server and the PredictionIO engine and webservice. To deploy an engine while running, open a Bash shell via\n\n```Bash\n$ docker exec -it \u003ccontainerid\u003e bash\n```\n\nThen, follow the steps after step 2 in the [quickstart tutorial](https://docs.prediction.io/templates/recommendation/quickstart/#2.-create-a-new-engine-from-an-engine-template)\n\n### Use preconfigured engine with basic container\nTo use the basic container with a preconfigured custom engine, map the engine's directory to the containers `/CustomEngine` folder, and run the `./deploy_engine.sh` script.\n\nSo, if your engine resides in the `~/engines/myCustomEngine` folder, you can use\n\n```Bash\n$ docker run -d -p 7070:7070 -p 8000:8000 -v ~/engines/myCustomEngine:/CustomEngine tobilg/predictionio\n```\nto map it in the container. Please don't forget to run `./deploy_engine.sh` script after connecting into the running container (see *Basic*).\n\n### Own Docker container with custom engine\nYou can create a custom Dockerfile if you want to include and deploy you custom engine with the container itself. If your custom engine resides in `~/engines/myCustomEngine`, create the following Dockerfile in the same folder:\n\n```Dockerfile\nFROM tobilg/predictionio\n\nADD . /CustomEngine\n\nRUN ./deploy_engine.sh\n\nEXPOSE 7070 8000\n\nENTRYPOINT [\"/PredictionIO-0.9.6/bin/pio-start-all\"]\n```\n\n### With Mesos/Marathon\nTo run the container with Marathon on Mesos with bridge networking, issue the following command (replace `\u003cMarathonServer\u003e` with an actual IP or hostname):\n\n```Bash\ncurl -H \"Content-Type: application/json\" -XPOST 'http://\u003cMarathonServer\u003e:8080/v2/apps' -d '{\n    \"id\": \"predictionio-server\",\n    \"container\": {\n        \"docker\": {\n            \"image\": \"tobilg/predictionio\",\n            \"network\": \"BRIDGE\",\n\t\t\t\"portMappings\": [\n\t\t\t  { \"containerPort\": 7070 },\n\t\t\t  { \"containerPort\": 8000 }\n\t\t\t]\n        },\n        \"type\": \"DOCKER\"\n    },\n    \"cpus\": 4,\n    \"mem\": 8192,\n    \"instances\": 1\n}'\n```\n\nYou'll have to have a look at the launched task to see where the container is actually launched, or use a service discovery tool such as Mesos DNS.\nIf you want to use static ports, you have to use `HOST` networking like this:\n\n```Bash\ncurl -H \"Content-Type: application/json\" -XPOST 'http://\u003cMarathonServer\u003e:8080/v2/apps' -d '{\n    \"id\": \"predictionio-server\",\n    \"container\": {\n        \"docker\": {\n            \"image\": \"tobilg/predictionio\",\n            \"network\": \"HOST\"\n        },\n        \"type\": \"DOCKER\"\n    },\n    \"cpus\": 4,\n    \"mem\": 8192,\n    \"instances\": 1,\n\t\"ports\": [7070, 8000]\n}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fdocker-predictionio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobilg%2Fdocker-predictionio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fdocker-predictionio/lists"}