3.2.5 release

This commit is contained in:
dotneft 2017-04-27 05:12:16 -07:00
parent 60a1149c35
commit bacd6da712
21 changed files with 20 additions and 56 deletions

View File

@ -26,7 +26,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}

View File

@ -31,7 +31,7 @@ RUN DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CO
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}

View File

@ -22,7 +22,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}

View File

@ -28,7 +28,7 @@ RUN DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CO
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}

View File

@ -44,7 +44,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -49,7 +49,7 @@ RUN locale-gen $LC_ALL && \
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -40,7 +40,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -47,7 +47,7 @@ RUN locale-gen $LC_ALL && \
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -45,7 +45,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -50,7 +50,7 @@ RUN locale-gen $LC_ALL && \
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -45,7 +45,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -50,7 +50,7 @@ RUN locale-gen $LC_ALL && \
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -1,36 +0,0 @@
#!/bin/bash
set -e
new_version=$1
is_trunk=${2:-"false"}
if [[ $new_version =~ ^[0-9]*\.[0-9]*.*$ ]] && [ "$is_trunk" == "true" ]; then
echo "** Switching to trunk"
elif [[ ! $new_version =~ ^[0-9]*\.[0-9]*\.[0-9]*.*$ ]] && [ "$new_version" != "master" ]; then
echo "Incorrect syntax of the version"
exit 1
fi
major_version=$(echo $new_version | cut -d'.' -f 1,2)
minor_version=$(echo $new_version | cut -d'.' -f 3)
echo "Using $major_version.$minor_version version of Zabbix"
find ./ -type d | while read DIR; do
if [ -d "$DIR" ] && [ -f "$DIR/run_zabbix_component.sh" ] && [ -f "$DIR/Dockerfile" ]; then
echo "** Updating $DIR/Dockerfile"
if [ "$is_trunk" == "true" ]; then
sed -i -e "/^ARG MAJOR_VERSION=/s/=.*/=$major_version/" $DIR/Dockerfile
sed -i -e "/^ARG ZBX_VERSION=/s/=.*/=\${MAJOR_VERSION}/" $DIR/Dockerfile
sed -i -e "/^ARG ZBX_SOURCES=/s/=.*/=svn:\/\/svn.zabbix.com\/trunk\//" $DIR/Dockerfile
else
sed -i -e "/^ARG MAJOR_VERSION=/s/=.*/=$major_version/" $DIR/Dockerfile
[ "$new_version" == "master" ] || sed -i -e "/^ARG ZBX_VERSION=/s/=.*/=\${MAJOR_VERSION}.$minor_version/" $DIR/Dockerfile
[ "$new_version" == "master" ] && sed -i -e "/^ARG ZBX_VERSION=/s/=.*/=\${MAJOR_VERSION}/" $DIR/Dockerfile
sed -i -e "/^ARG ZBX_SOURCES=/s/=.*/=svn:\/\/svn.zabbix.com\/tags\/\${ZBX_VERSION}\//" $DIR/Dockerfile
fi
fi
done
exit 0

View File

@ -38,7 +38,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -37,7 +37,7 @@ RUN DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CO
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -37,7 +37,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -37,7 +37,7 @@ RUN DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CO
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -37,7 +37,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -44,7 +44,7 @@ RUN DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CO
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -36,7 +36,7 @@ RUN addgroup zabbix && \
rm -rf /var/cache/apk/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}

View File

@ -44,7 +44,7 @@ RUN DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CO
rm -rf /var/lib/apt/lists/*
ARG MAJOR_VERSION=3.2
ARG ZBX_VERSION=${MAJOR_VERSION}.4
ARG ZBX_VERSION=${MAJOR_VERSION}.5
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} DB_TYPE=${DB_TYPE}