-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 1.04 KB
/
Makefile
File metadata and controls
33 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PLATFORMS=linux/arm64/v8,linux/amd64
# MariaDB, see https://endoflife.date/mariadb
# we only build "LTS" versions:
MARIADB_RELEASE=11.8
MARIADB_RELEASE_LEGACY=10.11
# MySQL:
MYSQL_RELEASE=8.4
#BUILDX_OPTIONS=--push
DOCKER_CACHE=--cache-from "type=local,src=.buildx-cache" --cache-to "type=local,dest=.buildx-cache"
build-mariadb:
docker buildx build $(DOCKER_CACHE) $(BUILDX_OPTIONS) \
--platform $(PLATFORMS) \
-f Dockerfile.mariadb \
--build-arg MARIADB_RELEASE=$(MARIADB_RELEASE) --tag croneu/phpapp-db:mariadb-$(MARIADB_RELEASE) .
build-mariadb-legacy:
docker buildx build $(DOCKER_CACHE) $(BUILDX_OPTIONS) \
--platform $(PLATFORMS) \
-f Dockerfile.mariadb \
--build-arg MARIADB_RELEASE=$(MARIADB_RELEASE_LEGACY) --tag croneu/phpapp-db:mariadb-$(MARIADB_RELEASE_LEGACY) .
build-mysql:
docker buildx build $(DOCKER_CACHE) $(BUILDX_OPTIONS) \
--platform $(PLATFORMS) \
-f Dockerfile.mysql \
--build-arg MYSQL_RELEASE=$(MYSQL_RELEASE) --tag croneu/phpapp-db:mysql-$(MYSQL_RELEASE) .
build: build-mysql build-mariadb build-mariadb-legacy