diff --git a/.container/Containerfile-etch.m68k b/.container/Containerfile-etch.m68k index 6ab1d18..e0fa8f8 100644 --- a/.container/Containerfile-etch.m68k +++ b/.container/Containerfile-etch.m68k @@ -24,6 +24,8 @@ RUN apt-get install --yes --allow-unauthenticated debian-archive-keyring debian- RUN apt-key update RUN apt-get upgrade --yes RUN apt-get install --yes --allow-unauthenticated make gcc binutils docbook-to-man e2fslibs-dev file +RUN apt-get clean +RUN rm /var/lib/apt/lists/archive.debian.org_debian_dists_etch-m68k_Release /var/lib/apt/lists/archive.debian.org_debian_dists_etch-m68k_main_binary-m68k_Packages RUN groupadd -g $GID builder RUN useradd -g $GID -u $UID builder CMD ["bash"] diff --git a/.container/Containerfile-sid.m68k b/.container/Containerfile-sid.m68k index a228430..41b408d 100644 --- a/.container/Containerfile-sid.m68k +++ b/.container/Containerfile-sid.m68k @@ -24,6 +24,8 @@ RUN apt-get update --yes RUN apt-get install --yes debian-keyring debian-archive-keyring RUN apt-get upgrade --yes RUN apt-get install --yes make gcc binutils docbook-to-man libext2fs-dev file +RUN apt-get clean +RUN rm /var/lib/apt/lists/ftp.ports.debian.org_debian-ports_dists_sid_main_binary-m68k_Packages /var/lib/apt/lists/ftp.ports.debian.org_debian-ports_dists_unreleased_main_binary-m68k_Packages RUN groupadd -g $GID builder RUN useradd -M -g $GID -u $UID builder CMD ["bash"] diff --git a/container.mk b/container.mk index bb368f8..77bc119 100644 --- a/container.mk +++ b/container.mk @@ -44,3 +44,16 @@ emile-m68k-etch-container: import-etch-rootfs $(CONTAINER_ENGINE) build --pull=never -f .container/Containerfile-etch.m68k -t $(EMILE_IMAGE_ETCH) \ --build-arg UID=$$(id -u) \ --build-arg GID=$$(id -g) + +DATE=$(shell date +%Y%m%d) +.PHONY: +emile-containers-export: + -mkdir archives + $(CONTAINER_ENGINE) create --name etch-container-temp localhost/$(EMILE_IMAGE_ETCH) + $(CONTAINER_ENGINE) export -o archives/$(EMILE_IMAGE_ETCH)-$(DATE).tar etch-container-temp + $(CONTAINER_ENGINE) rm etch-container-temp + xz -9 archives/$(EMILE_IMAGE_ETCH)-$(DATE).tar + $(CONTAINER_ENGINE) create --name sid-container-temp localhost/$(EMILE_IMAGE_SID) + $(CONTAINER_ENGINE) export -o archives/$(EMILE_IMAGE_SID)-$(DATE).tar sid-container-temp + $(CONTAINER_ENGINE) rm sid-container-temp + xz -9 archives/$(EMILE_IMAGE_SID)-$(DATE).tar