{"id":24835771,"url":"https://github.com/tobilg/mesos-js-framework","last_synced_at":"2025-10-14T10:30:31.114Z","repository":{"id":86825909,"uuid":"54564298","full_name":"tobilg/mesos-js-framework","owner":"tobilg","description":"[DEPRECATED] Use https://github.com/tobilg/mesos-framework instead","archived":true,"fork":false,"pushed_at":"2016-03-24T15:13:41.000Z","size":2631,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T12:00:01.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tobilg.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":"2016-03-23T14:00:30.000Z","updated_at":"2023-07-04T10:45:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfcedd60-dcf3-4e09-a453-e81e0fe8f885","html_url":"https://github.com/tobilg/mesos-js-framework","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tobilg/mesos-js-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesos-js-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesos-js-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesos-js-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesos-js-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobilg","download_url":"https://codeload.github.com/tobilg/mesos-js-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesos-js-framework/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:43.931Z","updated_at":"2025-10-14T10:30:31.102Z","avatar_url":"https://github.com/tobilg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mesos-js-framework\nThis project is a proof-of-concept implementation of a Mesos framework in JavaScript via the fabulous [node-java](https://github.com/joeferner/node-java) bridge.\nIt will start three [tobilg/docker-mini-webserver](https://github.com/tobilg/docker-mini-webserver) Docker images as tasks on the Mesos cluster.\n\n### Status\nThis framework is for demo purposes only, and just meant to show that it's possible to write a Mesos framework in JavaScript via a JNI bridge.\n\n## Installation\n    \n### Clone the Vagrant CoreOS Mesos cluster and start the cluster\n\n    git clone https://github.com/tobilg/coreos-mesos-cluster.git \u0026\u0026 cd coreos-mesos-cluster \u0026\u0026 vagrant up \n\n### Clone the project and install dependencies\n\n    git clone https://github.com/tobilg/mesos-js-framework.git \u0026\u0026 cd mesos-js-framework \u0026\u0026 npm install\n    \n## Running\nYou can test this via Vagrant and the [tobilg/coreos-mesos-cluster](https://github.com/tobilg/coreos-mesos-cluster) project, which starts a three node CoreOS cluster with ZooKeeper 3.4.6, Mesos 0.27.0 (masters and slaves) and Marathon.\n\nThis will expose the addresses `172.17.8.101`, `172.17.8.102` and `172.17.8.103`. To connect the framework to the cluster, you can use the Mesos master URL `zk://172.17.8.101:2181,172.17.8.102:2181,172.17.8.103:2181/mesos`. \n\n### Running the framework locally\nBefore you can test the framework, please make sure that you have at least a JDK (version 7 or 8) and Mesos 0.27.x installed. The framework needs the `libmesos.so` library to be available either on the path or via the `MESOS_NATIVE_JAVA_LIBRARY` environment variable. \nYou need to make sure that the `LIBPROCESS_IP` is set to a reachable IP address on you local machine, e.g. on Mac OS via\n\n    export LIBPROCESS_IP=$(ipconfig getifaddr en0)\n    \nwhere `en0` is the respective interface.\n\nTo start the framework, use the following command:\n\n    MESOS_ZK_CONNECTION=zk://172.17.8.101:2181,172.17.8.102:2181,172.17.8.103:2181/mesos node mesos-js-framework.js\n    \nThis framework will start three [tobilg/docker-mini-webserver](https://github.com/tobilg/docker-mini-webserver) Docker images. Each will be reachable on port `8888` on the Mesos slaves, e.g. [http://172.17.8.102:8888/status](http://172.17.8.102:8888/status).  \n    \nYou should then see the framework in the Mesos master's framework page.\n\n### Running the framework via Marathon\n\n```bash\ncurl -XPOST 'http://172.17.8.102:8080/v2/apps' -H 'Content-Type: application/json' -d '{\n  \"id\": \"mesos-js-framework\",\n  \"env\": {\n      \"MESOS_ZK_CONNECTION\": \"zk://172.17.8.101:2181,172.17.8.102:2181,172.17.8.103:2181/mesos\",\n      \"LIBPROCESS_IP\": \"172.17.8.102\"\n  },\n  \"container\": {\n    \"type\": \"DOCKER\",\n    \"docker\": {\n      \"network\": \"HOST\",\n        \"image\": \"tobilg/mesos-js-framework\",\n        \"forcePullImage\": true\n    }\n  },\n  \"cpus\": 0.5,\n  \"mem\": 256,\n  \"instances\": 1, \n  \"constraints\": [[\"hostname\", \"CLUSTER\", \"172.17.8.102\"]]\n}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fmesos-js-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobilg%2Fmesos-js-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fmesos-js-framework/lists"}