{"id":15480154,"url":"https://github.com/gilbertsoft/infrastructure-opsone-git-installer","last_synced_at":"2026-06-23T20:32:10.925Z","repository":{"id":52267928,"uuid":"363622302","full_name":"gilbertsoft/infrastructure-opsone-git-installer","owner":"gilbertsoft","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-05T13:21:20.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T09:44:12.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilbertsoft.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}},"created_at":"2021-05-02T10:21:33.000Z","updated_at":"2021-05-05T13:21:22.000Z","dependencies_parsed_at":"2022-09-25T00:43:50.262Z","dependency_job_id":null,"html_url":"https://github.com/gilbertsoft/infrastructure-opsone-git-installer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gilbertsoft/infrastructure-opsone-git-installer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbertsoft%2Finfrastructure-opsone-git-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbertsoft%2Finfrastructure-opsone-git-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbertsoft%2Finfrastructure-opsone-git-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbertsoft%2Finfrastructure-opsone-git-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilbertsoft","download_url":"https://codeload.github.com/gilbertsoft/infrastructure-opsone-git-installer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbertsoft%2Finfrastructure-opsone-git-installer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34706579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":"2024-10-02T04:41:00.708Z","updated_at":"2026-06-23T20:32:10.905Z","avatar_url":"https://github.com/gilbertsoft.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GIT Installer Script (GIS)\n\nThe GIT Installer Script makes a simple cloning and setup of a git repository to\nthe user home or any sub directory on an [OpsOne Managed Server PaaS](https://opsone.ch/hosting/managed-server)\npossible.\n\n## Installation\n\nThe installation can easiely be done via the global server configuration by\nadding this `Custom JSON`:\n\n```json\n{\n  \"globalrepo::repo\": {\n    \"git-installer\": {\n      \"source\": \"https://github.com/gilbertsoft/infrastructure-opsone-git-installer.git\",\n      \"revision\": \"main\",\n      \"exec_after\": \"sudo ./setup\"\n    }\n  }\n}\n```\n\n## Usage\n\n### Configuration\n\nBrowse to the [OpsOne Cockpit](https://cockpit.opsone.ch) and add the following\nconfiguration:\n\n* `Custom JSON`:\n\n  ```json\n  {\n    \"envvar\": {\n      \"GIS_REPOSITORY\": \"https://github.com/gilbertsoft/infrastructure-opsone-erpnext.git\",\n      \"GIS_BRANCH\": \"main\",\n      \"GIS_DESTINATION\": \"\",\n      \"GIS_SETUP\": \"setup\",\n      \"GIS_SETUP_OPTIONS\": \"\"\n    }\n  }\n  ```\n\nAlternatively you can add the environment variables via `~/cnf/environment`. Do\nnot forget to relogin to the server afterwards.\n\nThe third option is to provide various `.env` files which will be loaded\nautomatically. Several `.env` files are available to set environment variables\nin just the right situation:\n\n* `.env`: defines the default values of the env vars.\n* `.env.local`: overrides the default values for all contexts but only on the\n  machine which contains the file. This file should not be committed to the\n  repository.\n* `.env.\u003ccontext\u003e` (e.g. `.env.STAGE`): overrides env vars only for one\n  contexts but for all machines (these files are committed).\n* `.env.\u003ccontext\u003e.local` (e.g. `.env.STAGE.local`): defines machine-specific\n  env var overrides only for one contexts. It’s similar to `.env.local`, but\n  the overrides only apply to one contexts.\n\nValid contexts are:\n\n* `PROD`\n* `STAGE`\n* `DEV`\n\n#### GIS_REPOSITORY (mandatory)\n\nDefines the repository to be cloned e.g. `https://github.com/gilbertsoft/infrastructure-opsone-erpnext.git`.\n\n#### GIS_BRANCH\n\nDefines the branch of the repository to be cloned. Defaults to `main`.\n\n#### GIS_DESTINATION\n\nDefines the destination directory to be used. If not set the repository gets\ncloned to the user home.\n\n#### GIS_SETUP\n\nDefines the setup script to be called after the cloning if found. Defaults to\n`setup`.\n\n#### GIS_SETUP_OPTIONS\n\nDefines the options passed to the setup script. Defaults to none.\n\n### Run the Installer\n\nAfter the configuration you can run `gis` via SSH to get the configured\nrepository cloned and setted up.\n\nFor more information about the possible options run `gis --help`.\n\n## Contact \u0026 Communication\n\n### Contributing\n\nFeel free to fork this project and create a pull request when you're happy\nwith your changes.\n\n### Bug reporting\n\nPlease open an [issue at github](https://github.com/gilbertsoft/infrastructure-opsone-git-installer/issues)\nand describe your problem.\n\n## License\n\nThis project is released under the terms of the [GNU GENERAL PUBLIC LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbertsoft%2Finfrastructure-opsone-git-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilbertsoft%2Finfrastructure-opsone-git-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbertsoft%2Finfrastructure-opsone-git-installer/lists"}