2023-11-09 13:41:25 +00:00
|
|
|
export SOURCE_DATE_EPOCH = 0
|
2023-11-09 10:13:20 +00:00
|
|
|
|
2023-11-09 13:41:25 +00:00
|
|
|
out/bootstrap.oci.tgz:
|
|
|
|
docker build -t ocirep/bootstrap --output type=oci,dest=$@ packages/bootstrap
|
2023-11-09 12:14:02 +00:00
|
|
|
|
2023-11-13 06:09:30 +00:00
|
|
|
out/musl.oci.tgz: \
|
2023-11-13 22:48:49 +00:00
|
|
|
out/bootstrap.oci.tgz
|
|
|
|
docker build -t ocirep/musl --output type=oci,dest=$@ packages/musl
|
|
|
|
|
|
|
|
out/busybox.oci.tgz: \
|
2023-11-14 04:56:30 +00:00
|
|
|
out/bootstrap.oci.tgz
|
2023-11-13 22:48:49 +00:00
|
|
|
docker build -t ocirep/busybox --output type=oci,dest=$@ packages/busybox
|
|
|
|
|
|
|
|
out/binutils.oci.tgz: \
|
|
|
|
out/bootstrap.oci.tgz \
|
2023-11-13 06:09:30 +00:00
|
|
|
out/musl.oci.tgz
|
|
|
|
docker build -t ocirep/musl --output type=oci,dest=$@ packages/musl
|
|
|
|
|
2023-11-14 04:56:30 +00:00
|
|
|
out/linux-headers.oci.tgz: \
|
|
|
|
docker build -t ocirep/linux-headers --output type=oci,dest=$@ packages/linux-heades
|
|
|
|
|
2023-11-09 13:41:25 +00:00
|
|
|
out/gcc.oci.tgz: \
|
2023-11-13 22:48:49 +00:00
|
|
|
out/bootstrap.oci.tgz \
|
|
|
|
out/musl.oci.tgz
|
2023-11-09 13:41:25 +00:00
|
|
|
docker build -t ocirep/gcc --output type=oci,dest=$@ packages/gcc
|
2023-11-09 10:13:20 +00:00
|
|
|
|
2023-11-16 10:01:19 +00:00
|
|
|
out/make.oci.tgz: \
|
|
|
|
out/bootstrap.oci.tgz \
|
|
|
|
out/musl.oci.tgz
|
|
|
|
docker build -t ocirep/make --output type=oci,dest=$@ packages/make
|
|
|
|
|
2023-11-09 13:41:25 +00:00
|
|
|
out/bash.oci.tgz: \
|
2023-11-14 04:56:30 +00:00
|
|
|
out/gcc.oci.tgz
|
2023-11-09 13:41:25 +00:00
|
|
|
docker build -t ocirep/bash --output type=oci,dest=$@ packages/bash
|
|
|
|
|
2023-11-16 10:01:19 +00:00
|
|
|
out/openssl.oci.tgz: \
|
|
|
|
out/gcc.oci.tgz \
|
|
|
|
out/binutils.oci.tgz \
|
|
|
|
out/busybox.oci.tgz \
|
|
|
|
out/musl.oci.tgz
|
|
|
|
docker build -t ocirep/openssl --output type=oci,dest=$@ packages/openssl
|
|
|
|
|
2023-11-09 13:41:25 +00:00
|
|
|
out/go.oci.tgz: \
|
|
|
|
out/gcc.oci.tgz \
|
2023-11-14 04:56:30 +00:00
|
|
|
out/binutils.oci.tgz \
|
2023-11-09 13:41:25 +00:00
|
|
|
out/busybox.oci.tgz \
|
2023-11-14 04:56:30 +00:00
|
|
|
out/bash.oci.tgz \
|
|
|
|
out/musl.oci.tgz
|
2023-11-09 13:41:25 +00:00
|
|
|
docker build -t ocirep/go --output type=oci,dest=$@ packages/go
|
2023-11-15 00:30:48 +00:00
|
|
|
|
2023-11-16 10:01:19 +00:00
|
|
|
out/perl.oci.tgz: \
|
|
|
|
out/gcc.oci.tgz \
|
|
|
|
out/binutils.oci.tgz \
|
|
|
|
out/busybox.oci.tgz \
|
|
|
|
out/musl.oci.tgz
|
|
|
|
docker build -t ocirep/perl --output type=oci,dest=$@ packages/perl
|
|
|
|
|
|
|
|
out/python.oci.tgz: \
|
|
|
|
out/gcc.oci.tgz \
|
|
|
|
out/perl.oci.tgz \
|
|
|
|
out/binutils.oci.tgz \
|
|
|
|
out/busybox.oci.tgz \
|
|
|
|
out/openssl.oci.tgz \
|
|
|
|
out/make.oci.tgz \
|
|
|
|
out/musl.oci.tgz
|
|
|
|
docker build -t ocirep/python --output type=oci,dest=$@ packages/python
|
|
|
|
|
2023-11-15 00:30:48 +00:00
|
|
|
test:
|
2023-11-16 10:01:19 +00:00
|
|
|
docker build -t ocirep/test-c tests/c
|
|
|
|
docker build -t ocirep/test-go tests/go
|
|
|
|
docker build -t ocirep/test-perl tests/perl
|
2023-11-15 00:30:48 +00:00
|
|
|
@printf "\nOcirep Test Suite\n"
|
2023-11-16 10:01:19 +00:00
|
|
|
@printf "go -> "
|
|
|
|
@docker run -i ocirep/test-go | grep Success
|
|
|
|
@printf "c -> "
|
|
|
|
@docker run -i ocirep/test-c | grep Success
|
|
|
|
@printf "perl -> "
|
|
|
|
@docker run -i ocirep/test-perl | grep Success
|