{"id":20145025,"url":"https://github.com/michalswi/getandfix","last_synced_at":"2026-04-10T01:50:04.972Z","repository":{"id":112989120,"uuid":"70688024","full_name":"michalswi/getandfix","owner":"michalswi","description":"Verify specific tasks on server and fix it","archived":false,"fork":false,"pushed_at":"2017-02-01T13:52:02.000Z","size":459,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T10:51:25.603Z","etag":null,"topics":["django","docker-compose","ldap-authentication","vagrant"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/michalswi.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-10-12T10:13:09.000Z","updated_at":"2017-02-27T12:28:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d08d89c-6645-46f5-b712-f188e7a5b08f","html_url":"https://github.com/michalswi/getandfix","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/michalswi%2Fgetandfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgetandfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgetandfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgetandfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalswi","download_url":"https://codeload.github.com/michalswi/getandfix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587858,"owners_count":19986628,"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":["django","docker-compose","ldap-authentication","vagrant"],"created_at":"2024-11-13T22:13:38.682Z","updated_at":"2025-12-31T01:03:21.009Z","avatar_url":"https://github.com/michalswi.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# getandfix\n\n[in progress]\n\nGetandfix is a web app to verify (in future could be extended to fix) specific tasks like check CPU, memory, filesystems usage etc. for specific customer and server. App use LDAP to authenticate user.\n\n### How it works? \nPlease read all before run app.\n#### First steps\nMain application (django_app) you can find [here](https://github.com/michalswi/getandfix/tree/master/django_app)\n\nFirst you should install all required packages: TODO\n\nNext step is to create database.\n \nThere are two ways:\n  1. Create DB and build from scratch using python makemigrations/migrate.\n  2. Use myproject.sql (password: password).\n\nAfter that you can run django app:\n```bash\n$ python django_app/manage.py runserver\n```\n\n[Here](https://github.com/michalswi/getandfix/tree/master/django_app/webapp/ansible_django/os) you can find vagrant machine for tests. Just run `vagrant up` in this dir. VM is already placed in DB.\n\n#### Authentication\nYou don't have to create/request any account. I use [here](https://github.com/michalswi/ldap_stuff) LDAP to verify user.\n\nBefore run you have to place script [here](https://github.com/michalswi/getandfix/tree/master/django_app/webapp/ldap_stuff) and add to script:\n```text\nLDAP_SERVER = 'example.ldap.com'\nLDAP_BASEDN = 'ou=example,o=ldap.com'\n```\n\n#### Docker\nApp is ready to be used by docker. All files you can find [here](https://github.com/michalswi/getandfix/tree/master/docker). \n\nOf course all files like ssh_keys, ssl_certs are only for tests purposes (remember to change them). \n\nAll you have to do is:\n  - copy main django_app/ to web/ directory\n  - create db/mysql/ directory\n  - mariadb container use db/myproject.sql, remember to change it you want to use another one (by default it's the same like in getandfix/)\n\nAfter copied you don't have to change anything in web/django_app/ directory because all necessary files are going to be changed.\n\nTo better understand what's going on here please read docker-compose.yml and Dockerfiles for each container.\n\nMove to docker/ directory and run:\n```bash\n$ docker-compose build\n$ docker-compose up -d\n```\nFinally you will get sth like that:\n```bash\n$ docker-compose ps\n  Name                Command             State           Ports          \n------------------------------------------------------------------------\nans_host1   /usr/sbin/sshd -D             Up      22/tcp                 \nans_host2   /usr/sbin/sshd -D             Up      22/tcp                 \nmariadb     docker-entrypoint.sh mysqld   Up      3306/tcp               \nnginx       nginx                         Up      0.0.0.0:8000-\u003e5000/tcp \nweb         ./start_gun.sh                Up      8080/tcp\n```\nOn your host machine open web browser, paste https://0.0.0.0:8000/ and that's all.\n\nIf you want to use it somewhere else, just zip docker/.\n\nFor tests you have two containers(already added to DB) ans_host1/2 where as you can see above sshd service is active.\n\n#### Vagrant\nVagrant part you can find [here](https://github.com/michalswi/getandfix/tree/master/vagrant). Vagrantfile for dbserver is ready but for webserver not yet.\n\n#### Authors:\n\n*  [Michal Swierczewski](https://github.com/michalswi)\n*  [Damian Lubawy](https://github.com/pag-r)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalswi%2Fgetandfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalswi%2Fgetandfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalswi%2Fgetandfix/lists"}