Skip to content

Instantly share code, notes, and snippets.

View joedmck's full-sized avatar
:octocat:

Joe McKinnon joedmck

:octocat:
View GitHub Profile
@joedmck
joedmck / pip-install-all.sh
Last active July 29, 2022 21:57
Bash script to install all requirements.txt files in a monorepo with multiple Python microservices (with separate requirements.txt files for Docker build reasons).
#!/usr/bin/env bash
set -e
cd $(dirname $0)
handle_requirements_file() {
echo -e "\n\033[0;36m == Found requirements.txt at $1. Installing. == \033[0m\n"
pip3 install -r $1
}
export -f handle_requirements_file