1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

rename to container

This commit is contained in:
Jason N. 2024-05-01 10:38:37 -04:00
parent abd3d0bc52
commit 145893e327
3 changed files with 7 additions and 7 deletions

View file

@ -97,7 +97,7 @@ $(ISO_NAME)-CHECKSUM: $(ISO_NAME)
cd $(dir $(ISO_NAME)) && sha256sum $(notdir $(ISO_NAME)) > $(notdir $(ISO_NAME))-CHECKSUM cd $(dir $(ISO_NAME)) && sha256sum $(notdir $(ISO_NAME)) > $(notdir $(ISO_NAME))-CHECKSUM
# Build end ISO # Build end ISO
$(ISO_NAME): results/images/boot.iso container/$(IMAGE_NAME)-$(IMAGE_TAG) xorriso/input.txt $(ISO_NAME): results/images/boot.iso container/container xorriso/input.txt
$(if $(wildcard $(dir $(ISO_NAME))),,mkdir -p $(dir $(ISO_NAME)); chmod ugo=rwX $(dir $(ISO_NAME))) $(if $(wildcard $(dir $(ISO_NAME))),,mkdir -p $(dir $(ISO_NAME)); chmod ugo=rwX $(dir $(ISO_NAME)))
xorriso -dialog on < xorriso/input.txt xorriso -dialog on < xorriso/input.txt
implantisomd5 $(ISO_NAME) implantisomd5 $(ISO_NAME)

View file

@ -1,5 +1,5 @@
$(IMAGE_NAME)-$(IMAGE_TAG): container:
skopeo copy docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG) oci:$(IMAGE_NAME)-$(IMAGE_TAG) skopeo copy docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG) oci:container
install-deps: install-deps:
$(install_pkg) skopeo $(install_pkg) skopeo

View file

@ -43,11 +43,11 @@ then
echo "-chmod 0444 /sb_pubkey.der" echo "-chmod 0444 /sb_pubkey.der"
fi fi
pushd "${PWD}/../container/${IMAGE_NAME}-${IMAGE_TAG}" > /dev/null pushd "${PWD}/../container" > /dev/null
for file in $(find) for file in $(find container)
do do
echo "-map ${PWD}/${file} container/${file}" echo "-map ${PWD}/${file} ${file}"
echo "-chmod 0444 container/${file}" echo "-chmod 0444 ${file}"
done done
popd > /dev/null popd > /dev/null
echo "-end" echo "-end"