mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-22 04:41:28 +00:00
Components with existing dockerfiles will be updated in this PR.
Part of #519
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added support for multi-architecture and cross-platform Docker image
builds across various components, enabling builds for different
operating systems and CPU architectures.
- **Chores**
- Updated Docker build commands in multiple Makefiles to use
configurable builder and platform variables, improving build
flexibility.
- Standardized Dockerfile build arguments and environment variables for
cross-compilation.
- Improved package installation commands for quieter and more minimal
installs in Dockerfiles.
- Changed the default bucket name configuration to "cozystack" in system
bucket settings.
- Updated some maintenance targets and manual update reminders in
Makefiles.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
(cherry picked from commit 4f78b133c2)
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
25 lines
973 B
Makefile
25 lines
973 B
Makefile
POSTGRES_BACKUP_TAG = $(shell awk '$$1 == "version:" {print $$2}' Chart.yaml)
|
|
|
|
include ../../../scripts/common-envs.mk
|
|
include ../../../scripts/package.mk
|
|
|
|
generate:
|
|
readme-generator -v values.yaml -s values.schema.json -r README.md
|
|
|
|
image:
|
|
docker buildx build images/postgres-backup \
|
|
--provenance false \
|
|
--builder=$(BUILDER) \
|
|
--platform=$(PLATFORM) \
|
|
--tag $(REGISTRY)/postgres-backup:$(call settag,$(POSTGRES_BACKUP_TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/postgres-backup:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/postgres-backup.json \
|
|
--push=$(PUSH) \
|
|
--label "org.opencontainers.image.source=https://github.com/cozystack/cozystack" \
|
|
--load=$(LOAD)
|
|
echo "$(REGISTRY)/postgres-backup:$(call settag,$(POSTGRES_BACKUP_TAG))@$$(yq e '."containerimage.digest"' images/postgres-backup.json -o json -r)" \
|
|
> images/postgres-backup.tag
|
|
cp images/postgres-backup.tag ../ferretdb/images/
|
|
rm -f images/postgres-backup.json
|