mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
This avoids the need for buildah and skopeo for building releases. Reviewed by: cpersiva MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D48574 (cherry picked from commit e8a5b9fd73f4f437a03c85e7644daa55652e224b)
32 lines
875 B
Makefile
32 lines
875 B
Makefile
#
|
|
#
|
|
#
|
|
# Makefile for building OCI container images.
|
|
#
|
|
|
|
.if defined(WITH_OCIIMAGES) && !empty(WITH_OCIIMAGES)
|
|
OCI_IMAGES= static dynamic minimal
|
|
.endif
|
|
|
|
oci-install:
|
|
.if defined(WITH_OCIIMAGES) && !empty(WITH_OCIIMAGES)
|
|
mkdir -p ${DESTDIR}/ociimages
|
|
. for _IMG in ${OCI_IMAGES}
|
|
cp -p ${.OBJDIR}/container-image-${_IMG}.txz ${DESTDIR}/ociimages
|
|
. endfor
|
|
.endif
|
|
|
|
OCI_TARGETS=
|
|
OCI_DEPS_static=
|
|
OCI_DEPS_dynamic= container-image-static.txz
|
|
OCI_DEPS_minimal= container-image-dynamic.txz
|
|
|
|
.for _IMG in ${OCI_IMAGES}
|
|
OCI_TARGETS+= container-image-${_IMG}.txz
|
|
container-image-${_IMG}.txz: ${OCI_DEPS_${_IMG}}
|
|
# Adjust PATH so that we run pwd_mkdb from the bootstrap tools
|
|
env PATH=${OBJTOP}/tmp/legacy/bin:${PATH:Q} \
|
|
sh ${.CURDIR}/scripts/make-oci-image.sh ${.CURDIR} ${REVISION} ${BRANCH} ${TARGET_ARCH} ${_IMG} container-image-${_IMG}.txz
|
|
.endfor
|
|
|
|
oci-release: ${OCI_TARGETS}
|