{"id":23158736,"url":"https://github.com/greendelta/olca-ipc-container","last_synced_at":"2025-04-04T18:40:56.780Z","repository":{"id":186757596,"uuid":"668724417","full_name":"GreenDelta/olca-ipc-container","owner":"GreenDelta","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-25T11:20:37.000Z","size":14,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T03:46:20.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GreenDelta.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}},"created_at":"2023-07-20T13:01:19.000Z","updated_at":"2024-11-01T19:42:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8d221fd-ee67-4908-95b7-2eba3df52452","html_url":"https://github.com/GreenDelta/olca-ipc-container","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"3e0f6d126cc44870951dbf4ad0d85204362a09ed"},"previous_names":["msrocka/olca-ipc-container"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-ipc-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-ipc-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-ipc-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-ipc-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GreenDelta","download_url":"https://codeload.github.com/GreenDelta/olca-ipc-container/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234841,"owners_count":20905852,"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":[],"created_at":"2024-12-17T22:27:23.097Z","updated_at":"2025-04-04T18:40:56.757Z","avatar_url":"https://github.com/GreenDelta.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# olca-ipc-container\n\nThis repository contains an example for packaging an openLCA v2 IPC server in a Docker container. This is done in a multi-stage build where the final image only contains the necessary resources to run the server. To build the image, just run:\n\n```bash\ncd olca-ipc-container\ndocker build -t olca-ipc-server .\n```\n\nThis will package the IPC server and native calculation libraries in an image tagged as `olca-ipc-server`. The following example will start a container from that image:\n\n```bash\ndocker run \\\n  -p 3000:8080 \\\n  -v $HOME/openLCA-data-1.4:/app/data \\\n  --rm -d olca-ipc-server \\\n  -db example --readonly\n```\n\nThis will start the server in the container at port `8080` using `/app/data` as data folder. The data folder is mapped to the default openLCA workspace in the example and the port to `3000` of the host. More options can be passed in to the container after the image name (`olca-ipc-server`). In the example, the database is set to `example` (so `~/openLCA-data-1.4/databases/example` would be the full path of the database) and the server is run in `readonly` mode.\n\nThe server implements the JSON-RPC protocol of the openLCA API (see https://greendelta.github.io/openLCA-ApiDoc/ipc/). Here is an example `curl` command to list the product systems via the API:\n\n```bash\ncurl -d '{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"data/get/descriptors\",\n  \"params\": { \"@type\": \"ProductSystem\" }}'\\\n  -H \"Content-Type: application/json\"\\\n  -X POST http://localhost:3000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreendelta%2Folca-ipc-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreendelta%2Folca-ipc-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreendelta%2Folca-ipc-container/lists"}