-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add stacker101 talk from internal presentation (#576)
this version with some differences for confidential internal info, was given at SJC in Nov. 2023 and again in Dec to a wider internal audience Signed-off-by: Ravi Chamarthy <[email protected]> Signed-off-by: Michael McCracken <[email protected]>
- Loading branch information
1 parent
68bae2b
commit 2152d8d
Showing
13 changed files
with
683 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# README for container 1 | ||
|
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,6 @@ | ||
test: | ||
from: | ||
type: scratch | ||
import: | ||
- path: 1.README.md | ||
dest: / |
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,6 @@ | ||
test: | ||
from: | ||
type: docker | ||
url: docker://$YOUR_REGISTRY:5000/c3/minbase@sha256:af4c87a154aea6c5d6fd578f234c70d1f31d42609ddd096f212cbb9d8dbde9be | ||
run: | | ||
echo "fun" > what-is-hacking |
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,8 @@ | ||
test: | ||
from: | ||
type: docker | ||
url: docker://$YOUR_REGISTRY:5000/c3/minbase:1.0.72 | ||
import: | ||
- path: example.tgz | ||
run: | | ||
tar zxvf /stacker/imports/example.tgz example.stacker.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,17 @@ | ||
build_it: | ||
from: | ||
type: docker | ||
url: docker://$YOUR_REGISTRY/c3/godev:${{C3_VERSION}} | ||
build_only: true | ||
run: | | ||
git clone $url foo | ||
cd foo | ||
make install | ||
finalcontainer: | ||
from: ... | ||
import: | ||
- path: stacker://build_it/usr/bin/it | ||
dest: /usr/bin/it | ||
run: | | ||
# do whatever else here, no need to copy the imports because we used 'dest' above |
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,16 @@ | ||
|
||
setup: exampletarball | ||
|
||
exampletarball: | ||
tar zcvf example.tgz *.stacker.yaml | ||
|
||
|
||
%: %.stacker.yaml exampletarball | ||
stacker --oci-dir $@ build $(BARG) -f $< | ||
tree -h $@ | ||
@echo "press enter to run oci-viewer" | ||
@read a | ||
~/bin/ociv $@ | ||
|
||
clean: | ||
rm -rf 1 2 3 example.tgz |
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,7 @@ | ||
This talk uses `patat`, https://github.com/jaspervdj/patat which is a markdown | ||
based presentation tool that supports images on some terminals (like MacOS' | ||
iTerm2) and supports running code during the presentation to generate output, | ||
which is used here to display the listings of stacker.yaml examples that are | ||
kept separate to allow building them with the included makefile. | ||
|
||
-mike |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.