{"id":14955716,"url":"https://github.com/pwnall/igor","last_synced_at":"2025-10-01T01:31:25.350Z","repository":{"id":1806263,"uuid":"2730324","full_name":"pwnall/igor","owner":"pwnall","description":"Course homework submission site","archived":false,"fork":false,"pushed_at":"2017-09-09T12:44:31.000Z","size":10628,"stargazers_count":14,"open_issues_count":53,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-14T11:46:12.119Z","etag":null,"topics":["courseware","docker","rails-application","ruby","software-testing"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ptb/normalize.sass","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwnall.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":"2011-11-07T23:56:30.000Z","updated_at":"2022-03-19T00:07:00.000Z","dependencies_parsed_at":"2022-08-19T13:51:13.904Z","dependency_job_id":null,"html_url":"https://github.com/pwnall/igor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwnall%2Figor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwnall%2Figor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwnall%2Figor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwnall%2Figor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwnall","download_url":"https://codeload.github.com/pwnall/igor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234808947,"owners_count":18890088,"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":["courseware","docker","rails-application","ruby","software-testing"],"created_at":"2024-09-24T13:11:36.692Z","updated_at":"2025-10-01T01:31:23.863Z","avatar_url":"https://github.com/pwnall.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Igor\n\nCourse homework submission website.\n\n[![Build Status](https://travis-ci.org/pwnall/igor.svg?branch=master)](https://travis-ci.org/pwnall/igor)\n\n\n## Prerequisites\n\nThe site requires access to a [Docker Swarm](https://github.com/docker/swarm)\ncluster, a very recent Ruby and node.js, and a few libraries.\n\nDocker can only be installed directly on Linux, and is now packaged natively by\nevery major distribution. [docker-machine](https://github.com/docker/machine)\ncan be used to get access to a Docker daemon on Mac OS X.\n\nThe recommended way to get Ruby set up is via\n[rbenv](https://github.com/sstephenson/rbenv) and\n[ruby-build](https://github.com/sstephenson/ruby-build).\n\nThe recommended way to get Node set up is via\n[nvm](https://github.com/creationix/nvm).\n\nThe recommended way to get the libraries is your system's package manager, or\n[Homebrew](http://brew.sh/) on Mac OS X.\n\n### Mac OS X\n\nThe following commands install the prerequisites on OSX, using\n[Homebrew](http://brew.sh).\n\n```bash\nxcode-select --install\nbrew bundle install\nln -s /usr/local/opt/openssl/bin/openssl /usr/local/bin/openssl\nTOKEN=$(docker-swarm create)\ndocker-machine create --driver virtualbox --engine-storage-driver overlay \\\n    --swarm --swarm-master --swarm-discovery \"token://$TOKEN\" swarm-master\ndocker-machine create --driver virtualbox --engine-storage-driver overlay \\\n    --swarm --swarm-discovery \"token://$TOKEN\" swarm-agent-1\ndocker-machine create --driver virtualbox --engine-storage-driver overlay \\\n    --swarm --swarm-discovery \"token://$TOKEN\" swarm-agent-2\n```\n\nThe following command must be executed in every shell used for development.\n\n```bash\neval \"$(docker-machine env --swarm swarm-master)\"\n```\n\n### Linux\n\nUse your package manager to install the prerequisites listed in the\n[web_frontend Ansible role](deploy/ansible/roles/web_frontend/tasks/packages.yml).\n\n### Vagrant\n\nThe following commands quickly set up a [Vagrant](https://www.vagrantup.com/)\nenvironment that matches the production setup.\n\n```bash\nansible-playbook -i localhost, -e os_prefix=vagrant -e worker_count=2 \\\n    -e use_certbot=no deploy/ansible/keys.yml\nvagrant up\n```\n\nThe details behind these commands are explained in the\n[deployment guide](doc/deployment.md). The Vagrant environment can be used to\ntest Docker-related features and playbook changes.\n\n### OpenStack\n\nThe [deployment guide](doc/deployment.md) can be used to bring up a\ntesting cluster, which can come in handy when testing Docker-related\nauto-grading functionality. The deployment receipes referenced in the guide\ninclude an OpenStack bring-up playbook.\n\n[TryStack](http://trystack.openstack.org/) is a public OpenStack cluster\nintended for testing, and therefore can be used to test out any playbook\nchanges.\n\n\n## Installation\n\nThe following steps will set up the Rails application's development\nenvironment, assuming the prerequisites described above have been installed.\n\n```bash\ngit clone https://github.com/pwnall/igor.git\ncd igor\nrbenv install $(cat .ruby-version)\nnvm install stable\ngem install --force rake\ngem install bundler\nbundle install\nnpm install\nrake db:create db:migrate\nrake bower:install\n```\n\nThe command below runs the development server. Ctrl+C stops it.\n\n```bash\nforeman start\n```\n\nThe first user registered on the system automatically receives administrative\nprivileges. Course specifics can be configured by selecting Setup \u003e Course in\nthe left-side menu.\n\n\n## Development\n\nSeed the database to get a reasonably large data set that covers the most used\ncases. Seeding will crash without access to a Docker daemon.\n\n```bash\nrake db:seed\n```\n\nThe seeded database has `admin@mit.edu` set up as an admin, with the password\n`mit`.\n\nThe comments at the top of the model files are automatically generated by the\n[annotate_models](https://github.com/ctran/annotate_models) plugin. Re-generate\nthem using the following command.\n\n```bash\nbundle exec annotate\n```\n\nTo run integration tests that require Javascript/XHR, install PhantomJS 1.9.8.\nUploading files is [broken](https://github.com/ariya/phantomjs/issues/12506) in\nversion 2.0. For Mac users, use the following Homebrew command.\n\n```bash\nbrew install homebrew/versions/phantomjs198\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwnall%2Figor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwnall%2Figor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwnall%2Figor/lists"}