Skip to content

Commit

Permalink
add stacker101 talk from internal presentation (#576)
Browse files Browse the repository at this point in the history
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
mikemccracken authored Jan 8, 2024
1 parent 68bae2b commit 2152d8d
Show file tree
Hide file tree
Showing 13 changed files with 683 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/talks/stacker101/1.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# README for container 1

6 changes: 6 additions & 0 deletions doc/talks/stacker101/1.stacker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test:
from:
type: scratch
import:
- path: 1.README.md
dest: /
6 changes: 6 additions & 0 deletions doc/talks/stacker101/2.stacker.yaml
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
8 changes: 8 additions & 0 deletions doc/talks/stacker101/3.stacker.yaml
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
17 changes: 17 additions & 0 deletions doc/talks/stacker101/4.stacker.yaml
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
16 changes: 16 additions & 0 deletions doc/talks/stacker101/Makefile
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
7 changes: 7 additions & 0 deletions doc/talks/stacker101/README-TALK.txt
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
Binary file added doc/talks/stacker101/arch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/talks/stacker101/flow3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/talks/stacker101/overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2152d8d

Please sign in to comment.