add support for specifying dockerfile in build process

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2024-02-21 19:53:50 +02:00
parent 2cff5681b5
commit 0c31697e10
18 changed files with 130 additions and 12 deletions

View File

@@ -0,0 +1 @@
FROM alpine:3.19

View File

@@ -0,0 +1,3 @@
org: linuxkit
image: missing-in-yml
dockerfile: Dockerfilenotexist

View File

@@ -0,0 +1,21 @@
#!/bin/sh
# SUMMARY: Check that tar output format build is reproducible
# LABELS:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
set +e
linuxkit pkg build --force .
command_status=$?
set -e
if [ $command_status -eq 0 ]; then
echo "Command should have failed"
exit 1
fi
exit 0

View File

@@ -0,0 +1 @@
FROM alpine:3.19

View File

@@ -0,0 +1,3 @@
org: linuxkit
image: missing-in-yml
dockerfile: Dockerfilenotexist

View File

@@ -0,0 +1,13 @@
#!/bin/sh
# SUMMARY: Check that tar output format build is reproducible
# LABELS:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
linuxkit pkg build --force --dockerfile Dockerfile .
exit 0

View File

@@ -0,0 +1 @@
FROM alpine:3.19

View File

@@ -0,0 +1,3 @@
org: linuxkit
image: missing-in-yml
dockerfile: Dockerfile

View File

@@ -0,0 +1,21 @@
#!/bin/sh
# SUMMARY: Check that tar output format build is reproducible
# LABELS:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
set +e
linuxkit pkg build --force --dockerfile nosuchfile .
command_status=$?
set -e
if [ $command_status -eq 0 ]; then
echo "Command should have failed"
exit 1
fi
exit 0

View File

@@ -0,0 +1 @@
FROM alpine:3.19

View File

@@ -0,0 +1,2 @@
org: linuxkit
image: missing-in-yml

View File

@@ -0,0 +1,13 @@
#!/bin/sh
# SUMMARY: Check that tar output format build is reproducible
# LABELS:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
linuxkit pkg build --force .
exit 0