commit eaab627be27e3cefc1d384de107ae8173a62ddae Author: root Date: Sat Aug 31 17:47:26 2024 -0400 build-alpine diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..517ff1c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use the latest Alpine Linux image +FROM alpine:latest + +# Install necessary packages including bash +RUN apk update && apk add --no-cache alpine-sdk squashfs-tools xorriso openssh wget bash p7zip + +# Set environment variable for SSH public key (replace with your actual key) +ENV SSH_PUBLIC_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDsKFCdYNW+ShGM89hrN1lRBOeH7Am1DM3RuF5ODl9B3ZBJyL3qbixWipys3twNuHF8PxjRdE4OeXawY8w5U/FdYx9WtZ+/jfnpkIt85hzRP6wGm2Gb3YvYlukMoWRJTrPzY9B1wWZ0lUdwjryh6rsrIiuL/nYi4DMJWVfLLM5i8Pjzqq4rFT0hJDUg4I2cXspCec1YoRFKMKCqIGoduWpjhGm6P23fjz+8GXuB1DfhQcu3TkJF90tn3DUpiQ2BW4PreCtyTzcDdbhIo1O9x3abAeAkOnZtIK2DXdmbtgjCJg9yHgtjQQDV3WT0YkpHGsj3x9/xmhIr2Mcf18Ohjoo81hfL4raWAzGHrQFdc5bHop9M95iqp+0GbxGUhc4Wvy9iptuqfqclZdibOMGeX2vGJsqEkdwuWHpjtQ/12dGTGI9crRP+d/Nch+rc1Dz+cuLfDMuNcS0bqAk4eSeFbgsoOBqZeWcMG0m+ZKgyl4Q+uhBgUoHCoC4FHSJUnMfkKhs= root@868a158393be" + +# Copy build script into container +COPY build-alpine.sh /build-alpine.sh + +# Make the build script executable +RUN chmod +x /build-alpine.sh + +# Create output directory +RUN mkdir /output + +# Set the default command to run the build script using bash +CMD ["/bin/bash", "/build-alpine.sh"] diff --git a/alpine-make-vm-image b/alpine-make-vm-image new file mode 100755 index 0000000..341a656 --- /dev/null +++ b/alpine-make-vm-image @@ -0,0 +1,744 @@ +#!/bin/sh +# vim: set ts=4 sw=4: +# SPDX-FileCopyrightText: © 2017 Jakub Jirutka +# SPDX-License-Identifier: MIT +#---help--- +# Usage: alpine-make-vm-image [options] [--] [