{"id":16193366,"url":"https://github.com/starnowski/docker-fun","last_synced_at":"2025-04-07T15:17:46.241Z","repository":{"id":101714167,"uuid":"184452646","full_name":"starnowski/docker-fun","owner":"starnowski","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-16T21:55:09.000Z","size":177,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T17:53:05.765Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starnowski.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":"2019-05-01T17:17:32.000Z","updated_at":"2019-11-11T01:31:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e5d629e-c8a0-4589-92c2-235d93bf2489","html_url":"https://github.com/starnowski/docker-fun","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/starnowski%2Fdocker-fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fdocker-fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fdocker-fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fdocker-fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starnowski","download_url":"https://codeload.github.com/starnowski/docker-fun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675599,"owners_count":20977378,"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-10-10T08:14:43.134Z","updated_at":"2025-04-07T15:17:46.219Z","avatar_url":"https://github.com/starnowski.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/starnowski/docker-fun.svg?branch=master)](https://travis-ci.org/starnowski/docker-fun)\n\n# docker-fun\n\n\n* [Bash script which use ansible to parallel execution of specified command on localhost for specified array of items](#bash-script-which-use-ansible-to-parallel-execution-of-specified-command-on-localhost-for-specified-array-of-items)\n* [Ansible custom filters](#ansible-custom-filters)\n* [Useful links](#useful-links)\n\n\n[bash-script-which-use-ansible-to-parallel-execution-of-specified-command-on-localhost-for-specified-array-of-items]: #bash-script-which-use-ansible-to-parallel-execution-of-specified-command-on-localhost-for-specified-array-of-items\n# Bash script which use ansible to parallel execution of specified command on localhost for specified array of items\n\n* Main bash script ['run-command-for-items.sh'](https://github.com/starnowski/docker-fun/blob/master/images/ansible_server/ansible_project/run-command-for-items.sh)\n* Main Ansible playbook  ['run-command-for-items.yml'](https://github.com/starnowski/docker-fun/blob/master/images/ansible_server/ansible_project/run-command-for-items.yml)\n* The Ansible tasks file which contains usage of 'async', 'poll' option as also module 'async_status' ['run-command-for-items.yml'](https://github.com/starnowski/docker-fun/blob/master/images/ansible_server/ansible_project/tasks/run_command_for_items/items_parallel_executor.yml)\n* The Ansible tasks file which sets facts with information like for which items the command execution succeeded, failed or did not finished ['compute_parallel_results.yml'](https://github.com/starnowski/docker-fun/blob/master/images/ansible_server/ansible_project/tasks/run_command_for_items/compute_parallel_results.yml)\n\n### Tests\n* Basic tests ['run-command-for-items-parallel.bats'](https://github.com/starnowski/docker-fun/blob/master/bats/ansible_playbooks/run-command-for-items-parallel.bats)\n* Tests which shows that commands are executed in parallel ['run-command-for-items-parallel.bats'](https://github.com/starnowski/docker-fun/blob/master/bats/ansible_playbooks/run-command-for-items-concurrent.bats)\n* Tests which shows that the main bash script can handle command timeout execution ['run-command-for-items-timeout.bats'](https://github.com/starnowski/docker-fun/blob/master/bats/ansible_playbooks/run-command-for-items-timeout.bats) \n\n# Ansible custom filters\n['greetings_statement.py'](https://github.com/starnowski/docker-fun/blob/master/images/ansible_server/ansible_project/filter_plugins/greetings_statement.py)\n\n['host_location_statement.py'](https://github.com/starnowski/docker-fun/blob/master/images/ansible_server/ansible_project/filter_plugins/host_location_statement.py)\n\n[useful-links]: #useful-links\n# Useful links\n\nhttps://github.com/ansible/ansible-examples\n\n\nhttps://www.mulesoft.com/tcat/tomcat-clustering\n\n\n#ansible, spaces in command line variables - issue\nhttps://stackoverflow.com/questions/32584112/ansible-spaces-in-command-line-variables\n\n\n#Restapi mock server\nhttp://www.mock-server.com/#what-is-mockserver\n\nHow to check if a shell is login/interactive/batch\nhttps://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch\nhttps://www.linuxquestions.org/questions/programming-9/how-to-check-in-a-script-whether-the-shell-is-login-or-non-login-360629/\n\nTo check if you are in an interactive shell:\n\n[[ $- == *i* ]] \u0026\u0026 echo 'Interactive' || echo 'Not interactive'\n\nTo check if you are in a login shell:\n\nshopt -q login_shell \u0026\u0026 echo 'Login shell' || echo 'Not login shell'\n\n#Redirection and streams operation in Bash\nhttps://wiki.bash-hackers.org/howto/redirection_tutorial\n\n#Ansible filters:\nhttps://www.dasblinkenlichten.com/creating-ansible-filter-plugins/\nhttps://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html\nhttps://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/filter/json_query.py\n\n#Ansible developer code formating\nhttps://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#module-documenting\n\n# Best practices for writing Dockerfiles\nhttps://docs.docker.com/develop/develop-images/dockerfile_best-practices/\n\nhttps://www.cyberciti.biz/faq/linux-unix-ssh-proxycommand-passing-through-one-host-gateway-server/\n\n\nhttps://www.geeksforgeeks.org/expect-command-in-linux-with-examples/\nhttps://linux.die.net/man/1/expect\nhttps://srvfail.com/how-to-provide-ssh-password-inside-a-script-or-oneliner/\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarnowski%2Fdocker-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarnowski%2Fdocker-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarnowski%2Fdocker-fun/lists"}