1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00
This commit is contained in:
Jason N. 2024-03-14 12:50:21 -04:00
parent 9d042079af
commit ebe2fb3ba1

View file

@ -207,11 +207,11 @@ clean:
rm -f $(_BASE_DIR)/*.log || true rm -f $(_BASE_DIR)/*.log || true
install-deps: install-deps:
if [[ "$(PACKAGE_MANAGER)" =~ apt.* ]]; then $(PACKAGE_MANAGER) update; fi if [ "$(PACKAGE_MANAGER)" =~ apt.* ]; then $(PACKAGE_MANAGER) update; fi
$(PACKAGE_MANAGER) install -y lorax xorriso skopeo flatpak dbus-daemon ostree coreutils gettext git $(PACKAGE_MANAGER) install -y lorax xorriso skopeo flatpak dbus-daemon ostree coreutils gettext git
install-test-deps: install-test-deps:
if [[ "$(PACKAGE_MANAGER)" =~ apt.* ]]; then $(PACKAGE_MANAGER) update; fi if [ "$(PACKAGE_MANAGER)" =~ apt.* ]; then $(PACKAGE_MANAGER) update; fi
$(PACKAGE_MANAGER) install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible make coreutils squashfs-tools $(PACKAGE_MANAGER) install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible make coreutils squashfs-tools
@ -247,17 +247,15 @@ test-iso:
sudo umount /mnt/install sudo umount /mnt/install
sudo umount /mnt/iso sudo umount /mnt/iso
ansible_inventory: ansible_inventory:
cat << EOF > ansible_inventory echo "ungrouped:" > ansible_inventory
ungrouped: echo " hosts:" >> ansible_inventory
hosts: echo " vm:" >> ansible_inventory
vm: echo " ansible_host: ${VM_IP}" >> ansible_inventory
ansible_host: ${VM_IP} echo " ansible_port: ${VM_PORT}" >> ansible_inventory
ansible_port: ${VM_PORT} echo " ansible_user: ${VM_USER}" >> ansible_inventory
ansible_user: ${VM_USER} echo " ansible_password: ${VM_PASS}" >> ansible_inventory
ansible_password: ${VM_PASS} echo " ansible_ssh_common_args: '-o StrictHostKeyChecking=no'" >> ansible_inventory
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
EOF
test-vm: ansible_inventory test-vm: ansible_inventory
$(eval _TESTS = $(filter-out README.md,$(shell ls tests/vm))) $(eval _TESTS = $(filter-out README.md,$(shell ls tests/vm)))