mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
Merge pull request #11 from johndoe6345789/copilot/fix-dynamic-program-error
Fix missing file command in Docker test environment and invalid workflow tag format
This commit is contained in:
2
.github/workflows/docker-publish.yml
vendored
2
.github/workflows/docker-publish.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=sha,prefix={{branch}}-
|
||||
type=sha
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build Docker image
|
||||
|
||||
10
Dockerfile
10
Dockerfile
@@ -18,6 +18,10 @@ RUN make init
|
||||
# Runtime stage - use Alpine for minimal size
|
||||
FROM alpine:3.19
|
||||
|
||||
# Install file command for testing init binary
|
||||
# file package provides the file(1) command to determine file type
|
||||
RUN apk add --no-cache file
|
||||
|
||||
# Note: Alpine includes busybox by default
|
||||
|
||||
# Create minimal rootfs structure
|
||||
@@ -65,7 +69,11 @@ if [ -f /sparkos/rootfs/sbin/init ]; then
|
||||
ls -lh /sparkos/rootfs/sbin/init
|
||||
echo ""
|
||||
echo "File type:"
|
||||
file /sparkos/rootfs/sbin/init
|
||||
if command -v file >/dev/null 2>&1; then
|
||||
file /sparkos/rootfs/sbin/init
|
||||
else
|
||||
echo " (file command not available)"
|
||||
fi
|
||||
echo ""
|
||||
echo "Dependencies:"
|
||||
ldd /sparkos/rootfs/sbin/init 2>&1 || echo " Static binary (no dependencies)"
|
||||
|
||||
Reference in New Issue
Block a user