62 lines
1.3 KiB
Makefile
Raw Normal View History

2024-07-18 16:29:06 +03:00
PIP_BREAK_SYSTEM_PACKAGES=1
2021-10-29 15:38:05 +03:00
all: app
app:
2021-11-01 18:29:55 +03:00
make sync
make patch
make build
2021-11-02 03:55:32 +03:00
make deploy
2021-11-01 18:29:55 +03:00
make clean
sync:
2021-11-01 19:09:36 +03:00
rm -rfv redash-repo
2021-10-29 15:38:05 +03:00
git submodule init
git submodule update --init --recursive
git submodule sync --recursive
2021-11-01 18:29:55 +03:00
patch:
sed -i -e 's/# ldap3==2.2.4/ldap3==2.2.4/g' ./redash-repo/requirements.txt
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:
2024-07-18 16:29:06 +03:00
python3 kaniko-build.py --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-18 16:29:06 +03:00
pip3 install -r requirements.txt --break-system-packages
pip install -r requirements.txt --break-system-packages
2024-06-24 01:15:44 +03:00
build-compose:
2022-09-09 15:47:09 +03:00
docker-compose build --compress --parallel --progress plain
2021-11-01 18:29:55 +03:00
2021-11-02 03:55:32 +03:00
deploy:
2024-07-18 16:29:06 +03:00
make pip
python3 kaniko-build.py --deploy --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug
2024-06-24 01:15:44 +03:00
deploy-compose:
2021-11-01 18:29:55 +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