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:
parent
abd3d0bc52
commit
145893e327
3 changed files with 7 additions and 7 deletions
2
Makefile
2
Makefile
|
|
@ -97,7 +97,7 @@ $(ISO_NAME)-CHECKSUM: $(ISO_NAME)
|
|||
cd $(dir $(ISO_NAME)) && sha256sum $(notdir $(ISO_NAME)) > $(notdir $(ISO_NAME))-CHECKSUM
|
||||
|
||||
# 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)))
|
||||
xorriso -dialog on < xorriso/input.txt
|
||||
implantisomd5 $(ISO_NAME)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
$(IMAGE_NAME)-$(IMAGE_TAG):
|
||||
skopeo copy docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG) oci:$(IMAGE_NAME)-$(IMAGE_TAG)
|
||||
container:
|
||||
skopeo copy docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG) oci:container
|
||||
|
||||
install-deps:
|
||||
$(install_pkg) skopeo
|
||||
|
|
|
|||
|
|
@ -43,11 +43,11 @@ then
|
|||
echo "-chmod 0444 /sb_pubkey.der"
|
||||
fi
|
||||
|
||||
pushd "${PWD}/../container/${IMAGE_NAME}-${IMAGE_TAG}" > /dev/null
|
||||
for file in $(find)
|
||||
pushd "${PWD}/../container" > /dev/null
|
||||
for file in $(find container)
|
||||
do
|
||||
echo "-map ${PWD}/${file} container/${file}"
|
||||
echo "-chmod 0444 container/${file}"
|
||||
echo "-map ${PWD}/${file} ${file}"
|
||||
echo "-chmod 0444 ${file}"
|
||||
done
|
||||
popd > /dev/null
|
||||
echo "-end"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue