Add multi-arch image via Bazel (#1452)

* Add multi-arch image via Bazel

* Drop the commented  tags

* Move tests to //integration
This commit is contained in:
Matt Moore
2020-10-09 13:02:09 -07:00
committed by GitHub
parent 5f4e2f1366
commit a310cc6d1c
15 changed files with 441 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
FROM ubuntu
RUN echo Hello
+5
View File
@@ -0,0 +1,5 @@
schemaVersion: "1.0.0"
commandTests:
- name: Trivial build
command: ["/kaniko/executor", "--no-push", "--dockerfile", "./Dockerfile.trivial"]
exitCode: 0
+10
View File
@@ -0,0 +1,10 @@
schemaVersion: "1.0.0"
commandTests:
- name: check fixed name
command: ["/kaniko/executor"]
expectedError: ['Usage:']
exitCode: 1
- name: check PATH
command: ["executor"]
expectedError: ['Usage:']
exitCode: 1
+12
View File
@@ -0,0 +1,12 @@
schemaVersion: "1.0.0"
fileExistenceTests:
# Basic FS sanity checks.
- name: root
path: '/'
shouldExist: true
- name: certs
path: '/kaniko/ssl/certs/ca-certificates.crt'
shouldExist: true
- name: certs
path: '/etc/nsswitch.conf'
shouldExist: true
+6
View File
@@ -0,0 +1,6 @@
schemaVersion: "1.0.0"
fileExistenceTests:
# Basic FS sanity checks.
- name: trivial testdata Dockerfile
path: '/workspace/Dockerfile.trivial'
shouldExist: true