mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 07:00:10 +00:00
add support for specifying dockerfile in build process
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
FROM alpine:3.19
|
@@ -0,0 +1,3 @@
|
||||
org: linuxkit
|
||||
image: missing-in-yml
|
||||
dockerfile: Dockerfilenotexist
|
@@ -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
|
@@ -0,0 +1 @@
|
||||
FROM alpine:3.19
|
@@ -0,0 +1,3 @@
|
||||
org: linuxkit
|
||||
image: missing-in-yml
|
||||
dockerfile: Dockerfilenotexist
|
@@ -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
|
@@ -0,0 +1 @@
|
||||
FROM alpine:3.19
|
@@ -0,0 +1,3 @@
|
||||
org: linuxkit
|
||||
image: missing-in-yml
|
||||
dockerfile: Dockerfile
|
@@ -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
|
@@ -0,0 +1 @@
|
||||
FROM alpine:3.19
|
@@ -0,0 +1,2 @@
|
||||
org: linuxkit
|
||||
image: missing-in-yml
|
13
test/cases/000_build/055_dockerfiles/003_default/test.sh
Normal file
13
test/cases/000_build/055_dockerfiles/003_default/test.sh
Normal 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
|
Reference in New Issue
Block a user