migrated to Makefile for localbuilds

This commit is contained in:
Anatolii Zimovskii 2021-11-02 03:34:02 +03:00
parent 028172009f
commit fb6350ad6d
Signed by: stam
GPG Key ID: AA3A575AB99E8469
8 changed files with 159 additions and 140 deletions

153
Makefile Normal file
View File

@ -0,0 +1,153 @@
VERSION = "2021.11.01"
all: app
app:
@make -s version
@make -s help
version:
@echo "=================================================="
@echo " docker-scripts, version: ${VERSION}, [` git branch --show-current `]"
@echo "=================================================="
help:
@echo "make help - show this help."
@echo "make version - show version of this repository."
@echo "make docker-compose-install - local install latest version of docker-compose binary."
@echo "make docker-compose-update - update local docker-compose binary."
@echo "make docker-clean - cleanup docker kitchen."
@echo "make chmod - find and fix chmod of '*.sh' and '*.py' files."
@echo "make advanced-images - build only advanced images."
@echo "make ecosystem-images - build ecosystem images."
@echo "make images - build all images."
chmod:
find . -name '*.sh' -type f | xargs chmod +x
find . -name '*.py' -type f | xargs chmod +x
docker-compose-install:
@make -s docker-compose-update
docker-compose-update:
@bash ./bin/docker-compose-update.sh
docker-clean:
docker container prune -f
docker image prune -f
docker network prune -f
docker volume prune -f
docker system prune -af
images:
make docker-clean
make advanced-images
make docker-clean
make ecosystem-images
make docker-clean
advanced-images:
@echo "======================================="
@echo "===== Building third-party images ====="
@echo "======================================="
cd `pwd`/linux/advanced/zabbix/agent && pwd && make
cd `pwd`/linux/advanced/zabbix/java-gateway && pwd && make
cd `pwd`/linux/advanced/zabbix/proxy && pwd && make
cd `pwd`/linux/advanced/zabbix/server && pwd && make
cd `pwd`/linux/advanced/zabbix/web && pwd && make
cd `pwd`/linux/advanced/mattermost && pwd && make
cd `pwd`/linux/advanced/nextcloud/latest && pwd && make
cd `pwd`/linux/advanced/teamcity/server && pwd && make
cd `pwd`/linux/advanced/redash && pwd && make
cd `pwd`/linux/advanced/nextcloud/14 && pwd && make
cd `pwd`/linux/advanced/nextcloud/15 && pwd && make
cd `pwd`/linux/advanced/nextcloud/16 && pwd && make
cd `pwd`/linux/advanced/nextcloud/17 && pwd && make
cd `pwd`/linux/advanced/nextcloud/18 && pwd && make
cd `pwd`/linux/advanced/nextcloud/19 && pwd && make
cd `pwd`/linux/advanced/nextcloud/20 && pwd && make
cd `pwd`/linux/advanced/nextcloud/21 && pwd && make
cd `pwd`/linux/advanced/nextcloud/22 && pwd && make
ecosystem-images:
@echo "======================================="
@echo "===== Building EpicMorg images ====="
@echo "======================================="
cd `pwd`/linux/ecosystem/epicmorg/prod/main && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/prod/jdk6 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/prod/jdk7 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/prod/jdk8 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/prod/jdk11 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/prod/jdk16 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/edge/main && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/edge/jdk6 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/edge/jdk7 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/edge/jdk8 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/edge/jdk11 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/edge/jdk16 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/devel/main && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/devel/jdk6 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/devel/jdk7 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/devel/jdk8 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/devel/jdk11 && pwd && make
cd `pwd`/linux/ecosystem/epicmorg/devel/jdk16 && pwd && make
cd `pwd`/linux/ecosystem/php/latest && pwd && make
cd `pwd`/linux/ecosystem/php/php7.2 && pwd && make
cd `pwd`/linux/ecosystem/php/php7.3 && pwd && make
cd `pwd`/linux/ecosystem/php/php7.4 && pwd && make
cd `pwd`/linux/ecosystem/apache2/latest && pwd && make
cd `pwd`/linux/ecosystem/apache2/php7.2 && pwd && make
cd `pwd`/linux/ecosystem/apache2/php7.3 && pwd && make
cd `pwd`/linux/ecosystem/apache2/php7.4 && pwd && make
cd `pwd`/linux/ecosystem/testrail/latest && pwd && make
cd `pwd`/linux/ecosystem/postgres/latest && pwd && make
cd `pwd`/linux/ecosystem/postgres/8.2 && pwd && make
cd `pwd`/linux/ecosystem/postgres/8.3 && pwd && make
cd `pwd`/linux/ecosystem/postgres/8.4 && pwd && make
cd `pwd`/linux/ecosystem/postgres/9.0 && pwd && make
cd `pwd`/linux/ecosystem/postgres/9.1 && pwd && make
cd `pwd`/linux/ecosystem/postgres/9.2 && pwd && make
cd `pwd`/linux/ecosystem/postgres/9.3 && pwd && make
cd `pwd`/linux/ecosystem/postgres/9.4 && pwd && make
cd `pwd`/linux/ecosystem/postgres/9.5 && pwd && make
cd `pwd`/linux/ecosystem/postgres/9.6 && pwd && make
cd `pwd`/linux/ecosystem/postgres/10 && pwd && make
cd `pwd`/linux/ecosystem/postgres/11 && pwd && make
cd `pwd`/linux/ecosystem/postgres/12 && pwd && make
cd `pwd`/linux/ecosystem/postgres/13 && pwd && make
cd `pwd`/linux/ecosystem/postgres/14 && pwd && make
cd `pwd`/linux/ecosystem/qbittorrent/latest && pwd && make
cd `pwd`/linux/ecosystem/qbittorrent/stable && pwd && make
cd `pwd`/linux/ecosystem/vk2discord/latest && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/latest && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/amxx-sdk && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/android-sdk && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/atlassian-sdk && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/dotnet-sdk && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/node12 && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/node14 && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/node15 && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/node16 && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/php7.2 && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/php7.3 && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/php7.4 && pwd && make
cd `pwd`/linux/ecosystem/teamcity/agent/steam-sdk && pwd && make
cd `pwd`/linux/ecosystem/nginx/latest/main && pwd && make
cd `pwd`/linux/ecosystem/nginx/latest/php && pwd && make
cd `pwd`/linux/ecosystem/nginx/latest/rtmp-hls && pwd && make
cd `pwd`/linux/ecosystem/nginx/latest/quic && pwd && make

View File

@ -1,4 +0,0 @@
#!/bin/bash
cd ..
find . -name '*.sh' -type f | xargs chmod +x
find . -name '*.py' -type f | xargs chmod +x

View File

@ -1,6 +0,0 @@
docker container prune -f
docker image prune -f
docker network prune -f
docker volume prune -f
docker system prune -af
exit 0

View File

@ -1,2 +1,5 @@
curl -L "https://github.com/docker/compose/releases/download/`curl -fsSLI -o /dev/null -w %{url_effective} https://github.com/docker/compose/releases/latest | sed 's#.*tag/##g' && echo`/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose #!/bin/bash
exit 0
curl --progress-bar -L "https://github.com/docker/compose/releases/download/`curl -fsSLI -o /dev/null -w %{url_effective} https://github.com/docker/compose/releases/latest | sed 's#.*tag/##g' && echo`/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose -v

View File

@ -1,80 +0,0 @@
export SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
clear
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/prod/main && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/prod/jdk6 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/prod/jdk7 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/prod/jdk8 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/prod/jdk11 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/prod/jdk16 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/edge/main && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/edge/jdk6 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/edge/jdk7 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/edge/jdk8 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/edge/jdk11 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/edge/jdk16 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/devel/main && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/devel/jdk6 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/devel/jdk7 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/devel/jdk8 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/devel/jdk11 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/epicmorg/devel/jdk16 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/php/latest && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/php/php7.2 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/php/php7.3 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/php/php7.4 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/apache2/latest && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/apache2/php7.2 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/apache2/php7.3 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/apache2/php7.4 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/testrail/latest && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/latest && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/8.2 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/8.3 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/8.4 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/9.0 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/9.1 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/9.2 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/9.3 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/9.4 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/9.5 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/9.6 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/10 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/11 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/12 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/13 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/postgres/14 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/qbittorrent/latest && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/qbittorrent/stable && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/vk2discord/latest && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/latest && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/amxx-sdk && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/android-sdk && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/atlassian-sdk && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/dotnet-sdk && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/node12 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/node14 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/node15 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/node16 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/php7.2 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/php7.3 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/php7.4 && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/teamcity/agent/steam-sdk && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/nginx/latest/main && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/nginx/latest/php && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/nginx/latest/rtmp-hls && pwd && make
cd ${SCRIPTPATH}/../linux/ecosystem/nginx/latest/quic && pwd && make
exit 0

View File

@ -1,28 +0,0 @@
export SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
clear
cd ${SCRIPTPATH}/../linux/advanced/zabbix/agent && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/zabbix/java-gateway && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/zabbix/proxy && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/zabbix/server && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/zabbix/web && pwd && make
exit 1
cd ${SCRIPTPATH}/../linux/advanced/mattermost && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/latest && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/teamcity/server && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/redash && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/14 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/15 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/16 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/17 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/18 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/19 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/20 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/21 && pwd && make
cd ${SCRIPTPATH}/../linux/advanced/nextcloud/22 && pwd && make
exit 0

View File

@ -1,19 +0,0 @@
export SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
clear
pause 3
echo "======================================="
echo "===== Building third-party images ====="
echo "======================================="
${SCRIPTPATH}/make-all-third-party.sh
clear
pause 3
echo "======================================="
echo "===== Building EpicMorg images ====="
echo "======================================="
${SCRIPTPATH}/make-all-epicmorg-based.sh
exit 0

View File

@ -17,7 +17,7 @@ patch:
sed -i -e 's/# ldap3==2.2.4/ldap3==2.2.4/g' ./redash-repo/requirements.txt sed -i -e 's/# ldap3==2.2.4/ldap3==2.2.4/g' ./redash-repo/requirements.txt
build: build:
docker-compose build --compress docker-compose build --compress --parallel
push: push:
docker-compose push docker-compose push