Chore: Updated python dependencies

Chore: Updated angular to v19
Chore: Refactored ops with docker and ansible
This commit is contained in:
2024-12-16 17:53:21 +05:30
parent 010e9a84db
commit 2495c24e1a
127 changed files with 9712 additions and 416 deletions

View File

@ -12,24 +12,14 @@ else
./version_bump.sh
fi
# Download the package.json for caching
curl --silent 'https://git.tanshu.com/tanshu/barker/raw/tag/latest/bookie/package.json' \
| sed 's/\"version\": \"[0-9\.]*\"/"version": "0.0.0"/g' \
> "$parent_path/docker/app/package.json"
# Download the package.json for caching
curl --silent 'https://git.tanshu.com/tanshu/barker/raw/tag/latest/barker/pyproject.toml' \
| sed 's/version = \"[0-9\.]*\"/version = "0.0.0"/g' \
> "$parent_path/docker/app/pyproject.toml"
cd "$parent_path/docker/app" || exit
docker build --tag barker:latest .
make build-production
if [ 1 -eq "$#" ]
then
docker tag barker:latest "$1"
else
echo "No version bump"
fi
cd "$parent_path/docker" || exit
docker save barker:latest | bzip2 | pv | ssh tanshu@beacon.tanshu.com 'bunzip2 | sudo docker load'
docker tag barker:latest registry.tanshu.com/barker:latest
docker push registry.tanshu.com/barker:latest
cd "$parent_path/ansible" || exit
ansible-playbook --inventory hosts playbook.yml