2024-07-18 16:29:06 +03:00
|
|
|
PIP_BREAK_SYSTEM_PACKAGES=1
|
|
|
|
|
2024-02-13 19:19:34 +03:00
|
|
|
all: app
|
|
|
|
|
|
|
|
app:
|
|
|
|
make build
|
|
|
|
make deploy
|
|
|
|
make clean
|
|
|
|
|
|
|
|
build:
|
2024-06-24 01:15:44 +03:00
|
|
|
make pip
|
2024-08-10 21:36:22 +03:00
|
|
|
kaniko-wrapper --version
|
2024-06-24 01:15:44 +03:00
|
|
|
|
|
|
|
dry:
|
|
|
|
make dry-run
|
|
|
|
|
|
|
|
test:
|
|
|
|
make dry-run
|
|
|
|
|
|
|
|
dry-run:
|
2024-08-10 21:36:22 +03:00
|
|
|
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug --dry-run
|
2024-06-24 01:15:44 +03:00
|
|
|
|
|
|
|
pip:
|
2024-07-18 16:29:06 +03:00
|
|
|
rm -rf /usr/lib/python3.6/EXTERNALLY-MANAGED
|
|
|
|
rm -rf /usr/lib/python3.7/EXTERNALLY-MANAGED
|
|
|
|
rm -rf /usr/lib/python3.8/EXTERNALLY-MANAGED
|
|
|
|
rm -rf /usr/lib/python3.9/EXTERNALLY-MANAGED
|
2024-06-24 01:15:44 +03:00
|
|
|
rm -rf /usr/lib/python3.9/EXTERNALLY-MANAGED
|
|
|
|
rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
|
|
|
|
rm -rf /usr/lib/python3.12/EXTERNALLY-MANAGED
|
|
|
|
rm -rf /usr/lib/python3.13/EXTERNALLY-MANAGED
|
2024-07-27 18:47:35 +03:00
|
|
|
pip3 install -r requirements.txt
|
|
|
|
pip install -r requirements.txt
|
2024-06-24 01:15:44 +03:00
|
|
|
|
|
|
|
build-compose:
|
2024-02-13 19:19:34 +03:00
|
|
|
docker-compose build --compress --parallel --progress plain
|
|
|
|
|
|
|
|
deploy:
|
2024-07-18 16:29:06 +03:00
|
|
|
make pip
|
2024-08-10 21:36:22 +03:00
|
|
|
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug
|
2024-06-24 01:15:44 +03:00
|
|
|
|
|
|
|
deploy-compose:
|
2024-02-13 19:19:34 +03:00
|
|
|
docker-compose push
|
|
|
|
|
|
|
|
clean:
|
|
|
|
docker container prune -f
|
|
|
|
docker image prune -f
|
|
|
|
docker network prune -f
|
|
|
|
docker volume prune -f
|
|
|
|
docker system prune -af
|