Closed bschmalhofer closed 2 years ago
@StefanRother-OTOBO, @svenoe I would be happy with add some more scripts to scripts/devel . Or, do you have an better idea?
The scripts would replace functionality that I currently use via bash aliases:
alias otobo_docker_login_web="docker exec -it otobo_web_1 bash"
alias otobo_docker_login_db="docker exec -it otobo_db_1 bash"
alias otobo_docker_login_daemon="docker exec -it otobo_daemon_1 bash"
alias otobo_docker_login_redis="docker exec -it otobo_redis_1 sh"
alias otobo_docker_login_nginx="docker exec -it otobo_nginx_1 bash"
alias otobo_docker_login_selenium="docker exec -it otobo_selenium-chrome_1 bash"
alias otobo_docker_quick_setup='docker exec -t otobo_web_1 bash -c "date ; hostname ; rm -f Kernel/Config/Files/ZZZAAuto.pm ; bin/docker/quick_setup.pl --db-password otobo_root --http-port 81"'
alias otobo_docker_restore='docker run -it --rm --volume otobo_opt_otobo:/opt/otobo --volume otobo_backup:/otobo_backup --network otobo_default otobo:local scripts/restore.pl -d /otobo_backup'
alias otobo_docker_test_progress='docker exec -t otobo_web_1 bash -c " date ; ls -l prove_*.out ; wc -l prove_*.out ; grep '\''^not ok '\'' prove_*.out | grep -v -c '\''# TODO'\''"'
alias otobo_docker_test_suite='docker stop otobo_daemon_1 ; docker exec -t otobo_web_1 bash -c " date ; hostname ; bin/docker/run_test_suite.sh" ; date ; docker start otobo_daemon_1'
This issue is a bit too general. Open a new issue when a specific script is planned.
Now that we have a scripts/devel dir, let's add some helpers: