{"id":13858492,"url":"https://github.com/grahamleslie/schrodinger","last_synced_at":"2025-07-13T23:32:38.833Z","repository":{"id":39160683,"uuid":"255158106","full_name":"grahamleslie/schrodinger","owner":"grahamleslie","description":"📦 Schrodinger is the simplest CI tool for running your build, test, and deployments in Docker.","archived":false,"fork":false,"pushed_at":"2023-01-19T18:22:44.000Z","size":2114,"stargazers_count":5,"open_issues_count":38,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-22T16:39:33.657Z","etag":null,"topics":["cd","ci","containers","continuous-delivery","continuous-deployment","continuous-integration","deployment","docker"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grahamleslie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-12T19:47:59.000Z","updated_at":"2021-04-22T01:04:19.000Z","dependencies_parsed_at":"2023-02-11T15:31:18.223Z","dependency_job_id":null,"html_url":"https://github.com/grahamleslie/schrodinger","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/grahamleslie/schrodinger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamleslie%2Fschrodinger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamleslie%2Fschrodinger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamleslie%2Fschrodinger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamleslie%2Fschrodinger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grahamleslie","download_url":"https://codeload.github.com/grahamleslie/schrodinger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamleslie%2Fschrodinger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265221159,"owners_count":23729962,"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":["cd","ci","containers","continuous-delivery","continuous-deployment","continuous-integration","deployment","docker"],"created_at":"2024-08-05T03:02:10.932Z","updated_at":"2025-07-13T23:32:38.083Z","avatar_url":"https://github.com/grahamleslie.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# 📦 Schrodinger\n\n[![](https://img.shields.io/docker/pulls/grahamleslie/schrodinger.svg)](https://hub.docker.com/r/grahamleslie/schrodinger)\n\n**Schrodinger** is a simple CI tool for running your build, test, and deployments in Docker containers.\n\nRun the **Schrodinger** container in your Docker host, create Pipelines to automatically scan your repos for changes, and **Schrodinger** will automatically run them its host's Docker engine.\n\n\u003ccenter\u003e\n  \u003cimg src=\".readme/1.png\" width=\"600\" /\u003e \u003cimg src=\".readme/2.png\" width=\"600\" /\u003e \u003cimg src=\".readme/3.png\" width=\"600\" /\u003e\n\u003c/center\u003e\n\n## Getting Started\n\nThere's a couple steps to get started:\n\n- Install Docker on your host.\n- Make sure [`docker` is accessible without sudo](https://askubuntu.com/a/477554).\n- [Generate a ssh key pair on your host machine](https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key) and grant it read access to any repositories you want Schrodinger to build ([GitHub, for example](https://help.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account)).\n- Add a `Dockerfile.schrodinger` to any repos you've added to a Pipeline to define build/test/deploy.\n\nYou can also configure a repo for the sample project, [`schrodinger-test`](https://gitlab.com/gleslie/schrodinger-test). Use the SSH repo, and a `master` trigger.\n\n## Documentation\n\nDocumentation is available in the [Schrodinger Wiki](https://github.com/grahamleslie/schrodinger/wiki).\n\n## Installation\n\nTested on Ubuntu and MacOS.\n\n```bash\ndocker run \\\n    -d \\\n    --name schrodinger \\\n    -p 80:3000 \\\n    -e RAILS_LOG_TO_STDOUT=true \\\n    -e GIT_IDENTITY_FILE=id_rsa \\\n    -e SCAN_SCHEDULE=5m \\\n    -e CLEANUP_KEEP_LATEST_RUNS=10 \\\n    -v $(which docker):/usr/bin/docker \\\n    -v /var/run/docker.sock:/var/run/docker.sock \\\n    -v $HOME/.ssh:/app/.ssh:ro \\\n    -v schrodinger:/persistent/ \\\n    --privileged=true \\\n    --restart=always \\\n    grahamleslie/schrodinger:latest\n```\n\nUbuntu may require an additional dependency mount:\n\n`-v /usr/lib/x86_64-linux-gnu/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7`\n\nEditable arguments:\n\n- `-e RAILS_LOG_TO_STDOUT`: if present, **Schrodinger** will log to stdout and be captured in Docker logs.  Remove this if you don't want secrets written to the Docker logs (see Caveats).\n- `-e CLEANUP_KEEP_LATEST_RUNS`: if present, deletes any runs older than the latest *N* runs specified.\n- `-e GIT_IDENTITY_FILE`: specify the private key file **Schrodinger** should use for cloning repositories with SSH. It should be in `/app/.ssh/` in the container.\n- `-e SCAN_SCHEDULE`: how often to re-scan repositories for changes. Defaults to `1m`. See [rufus-scheduler](https://github.com/jmettraux/rufus-scheduler) for syntax.\n- `-v $HOME/.ssh:/app/.ssh:ro`: mounts the user's `.ssh` directory in read-only mode. This directory should contain the public and private keys **Schrodinger** will use to clone your repositories.\n- `-v schrodinger:/persistent/`: mounts a directory that will be used for storing the sqlite database.\n\nRequired arguments:\n\n- `-v /usr/bin/docker:/usr/bin/docker`: mounts the Docker binary.\n- `-v /usr/lib/x86_64-linux-gnu/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7`: mounts a dependency required on Linux systems. Untested on other systems.\n- `-v /var/run/docker.sock:/var/run/docker.sock`: mounts the Docker socket, required for communicating with Docker on the host.\n\n## Caveats\n\nIt should only be run in a trusted environment with trusted users, because:\n\n- It runs in privileged mode and mounts the Docker socket, so it has control of its Docker host.\n- Secrets are stored in plaintext.  They are also logged by default.\n- Git host key checking is disabled to automatically accept hosts when cloning repositories.\n\n## Development\n\n- Install Docker.\n- Make sure [`docker` is accessible without sudo](https://askubuntu.com/a/477554).\n- Clone this repository.\n- `rails db:migrate` to run all migrations.\n- `rails db:seed` to seed the database.\n- `./start.sh` to start the local development server (see file for other tasks run).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrahamleslie%2Fschrodinger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrahamleslie%2Fschrodinger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrahamleslie%2Fschrodinger/lists"}