Skip to content

Commit

Permalink
Using env variable for base image on all images
Browse files Browse the repository at this point in the history
  • Loading branch information
dotneft committed Jan 8, 2025
1 parent 9b0b16d commit ac9cb5c
Show file tree
Hide file tree
Showing 76 changed files with 234 additions and 154 deletions.
4 changes: 2 additions & 2 deletions Dockerfiles/agent/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG ALPINE_BASE_IMAGE=alpine:3.21
ARG OS_BASE_IMAGE=alpine:3.21
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:alpine-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${ALPINE_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${CENTOS_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent/ol/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG OL_BASE_IMAGE=oraclelinux:9-slim
ARG OS_BASE_IMAGE=oraclelinux:9-slim
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ol-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${OL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent/rhel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax=docker/dockerfile:1
ARG RHEL_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG MAJOR_VERSION=7.4
ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:rhel-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${RHEL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG RELEASE
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG UBUNTU_BASE_IMAGE=ubuntu:noble
ARG OS_BASE_IMAGE=ubuntu:noble
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ubuntu-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${UBUNTU_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent2/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG ALPINE_BASE_IMAGE=alpine:3.21
ARG OS_BASE_IMAGE=alpine:3.21
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:alpine-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${ALPINE_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent2/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${CENTOS_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent2/ol/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG OL_BASE_IMAGE=oraclelinux:9-slim
ARG OS_BASE_IMAGE=oraclelinux:9-slim
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ol-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${OL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent2/rhel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax=docker/dockerfile:1
ARG RHEL_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG MAJOR_VERSION=7.4
ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:rhel-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${RHEL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG RELEASE
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/agent2/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG UBUNTU_BASE_IMAGE=ubuntu:noble
ARG OS_BASE_IMAGE=ubuntu:noble
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ubuntu-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${UBUNTU_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/build-base/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG ALPINE_BASE_IMAGE=alpine:3.21
FROM ${ALPINE_BASE_IMAGE}
ARG OS_BASE_IMAGE=alpine:3.21
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/build-base/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
FROM ${CENTOS_BASE_IMAGE}
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/build-base/ol/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG OL_BASE_IMAGE=oraclelinux:9-slim
FROM ${OL_BASE_IMAGE}
ARG OS_BASE_IMAGE=oraclelinux:9-slim
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/build-base/rhel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG RHEL_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
FROM ${RHEL_BASE_IMAGE}
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION=7.4
ARG RELEASE=0
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/build-base/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG UBUNTU_BASE_IMAGE=ubuntu:noble
FROM ${UBUNTU_BASE_IMAGE}
ARG OS_BASE_IMAGE=ubuntu:noble
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/java-gateway/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG ALPINE_BASE_IMAGE=alpine:3.21
ARG OS_BASE_IMAGE=alpine:3.21
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:alpine-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${ALPINE_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/java-gateway/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${CENTOS_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/java-gateway/ol/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG OL_BASE_IMAGE=oraclelinux:9-slim
ARG OS_BASE_IMAGE=oraclelinux:9-slim
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ol-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${OL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/java-gateway/rhel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax=docker/dockerfile:1
ARG RHEL_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG MAJOR_VERSION=7.4
ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:rhel-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${RHEL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG RELEASE
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/java-gateway/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG UBUNTU_BASE_IMAGE=ubuntu:noble
ARG OS_BASE_IMAGE=ubuntu:noble
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ubuntu-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${UBUNTU_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-mysql/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG ALPINE_BASE_IMAGE=alpine:3.21
ARG OS_BASE_IMAGE=alpine:3.21
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:alpine-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${ALPINE_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-mysql/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${CENTOS_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-mysql/ol/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG OL_BASE_IMAGE=oraclelinux:9-slim
ARG OS_BASE_IMAGE=oraclelinux:9-slim
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ol-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${OL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-mysql/rhel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax=docker/dockerfile:1
ARG RHEL_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG MAJOR_VERSION=7.4
ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:rhel-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${RHEL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG RELEASE
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-mysql/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG UBUNTU_BASE_IMAGE=ubuntu:noble
ARG OS_BASE_IMAGE=ubuntu:noble
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:ubuntu-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${UBUNTU_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-sqlite3/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG ALPINE_BASE_IMAGE=alpine:3.21
ARG OS_BASE_IMAGE=alpine:3.21
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-sqlite3:alpine-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${ALPINE_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-sqlite3/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-sqlite3:centos-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${CENTOS_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/proxy-sqlite3/ol/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG OL_BASE_IMAGE=oraclelinux:9-slim
ARG OS_BASE_IMAGE=oraclelinux:9-slim
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-sqlite3:ol-${ZBX_VERSION}

FROM ${BUILD_BASE_IMAGE} AS builder

FROM ${OL_BASE_IMAGE}
FROM ${OS_BASE_IMAGE}

ARG MAJOR_VERSION
ARG ZBX_VERSION
Expand Down
Loading

0 comments on commit ac9cb5c

Please sign in to comment.