-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to specify root context directory when parsing buildfile (#…
- Loading branch information
1 parent
7d29959
commit 9f5aabc
Showing
3 changed files
with
91 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
jib-cli/src/test/resources/buildfiles/projects/allProperties/altYamls/alt-jib.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# this buildfile doesn't necessarily work, just useful for testing parsing and translation | ||
apiVersion: jib/v1alpha1 | ||
kind: BuildFile | ||
|
||
# "FROM" with detail for manifest lists or multiple architectures | ||
from: | ||
image: "ubuntu" | ||
# optional: if missing, then defaults to `linux/amd64` | ||
platforms: | ||
- architecture: "arm" | ||
os: "linux" | ||
- architecture: "amd64" | ||
os: "darwin" | ||
|
||
# potentially simple form of "FROM" (based on ability to define schema) | ||
# from: "gcr.io/distroless/java:8" | ||
|
||
creationTime: 2000 # millis since epoch or iso8601 creation time | ||
format: OCI # Docker or OCI | ||
|
||
environment: | ||
"KEY1": "v1" | ||
"KEY2": "v2" | ||
labels: | ||
"label1": "l1" | ||
"label2": "l2" | ||
volumes: | ||
- "/volume1" | ||
- "/volume2" | ||
|
||
exposedPorts: | ||
- "123/udp" | ||
- "456" | ||
- "789/tcp" | ||
|
||
user: "customUser" | ||
workingDirectory: "/home" | ||
entrypoint: | ||
- "sh" | ||
- "script.sh" | ||
cmd: | ||
- "--param" | ||
- "param" | ||
|
||
layers: | ||
entries: | ||
- name: "scripts" | ||
files: | ||
- src: "project/script.sh" | ||
dest: "/home/script.sh" |