Move under scripts dir, stop using pip

This commit is contained in:
Luke Murphy 2020-11-02 18:32:32 +01:00
parent 0cf7426104
commit 5b1f4828bd
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
5 changed files with 16 additions and 12 deletions

View File

@ -1,7 +1,12 @@
default: install
.PHONY: install
.PHONY: install clone list-services
install:
@python3 -m venv .venv && \
.venv/bin/pip install -U pip setuptools wheel && \
.venv/bin/pip install -r requirements.txt;
@apt install -y python3-requests
clone:
@python3 scripts/clone.py
list-services:
@bash scripts/services.sh

View File

@ -1,7 +0,0 @@
#!/usr/bin/env bash
for f in clones/*/compose.yml;
do echo "${f}" && \
yq read --printMode p "$f" 'services.*' && \
echo;
done

View File

@ -1 +0,0 @@
requests

0
clone_all.py → scripts/clone.py Normal file → Executable file
View File

7
scripts/services.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
ABRA_DIR="$HOME/.abra/apps"
for f in "$(find $ABRA_DIR -iname "compose*.yml")"; do
echo "$f" && yq read --printMode p "$f" 'services.*' && echo;
done