docker-scripts/linux/advanced/teamcity/server/Makefile

43 lines
827 B
Makefile
Raw Normal View History

2021-06-02 02:28:11 +03:00
all: app
app:
2021-11-02 03:55:32 +03:00
make build
make deploy
make clean
build:
2024-06-24 01:15:44 +03:00
make pip
python3 kaniko-build.py --version
dry:
make dry-run
test:
make dry-run
dry-run:
python3 kaniko-build.py --kaniko-image gcr.io/kaniko-project/executor:v1.23.0-debug --dry-run
pip:
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
pip install -r requirements.txt
build-compose:
2022-09-09 15:47:09 +03:00
docker-compose build --compress --parallel --progress plain
2021-11-02 03:55:32 +03:00
deploy:
2024-06-24 01:15:44 +03:00
python3 kaniko-build.py --deploy --kaniko-image gcr.io/kaniko-project/executor:v1.23.0-debug
deploy-compose:
2021-06-02 02:28:11 +03:00
docker-compose push
2021-11-02 03:55:32 +03:00
clean:
docker container prune -f
docker image prune -f
docker network prune -f
docker volume prune -f
docker system prune -af