Skip to content

Commit

Permalink
Adding some comments and other bits people can use when they use thes…
Browse files Browse the repository at this point in the history
…e projects as a template. (#6022)

Just adding in some comments to make it a bit easier to understand what's mandatory and what's not and adding in individual .gitignore files for common stuff.
  • Loading branch information
richardpark-msft authored Apr 21, 2023
1 parent c98e02f commit 4a14332
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# generated based on the values in your scenarios-matrix.yaml
generatedValues.yaml

# the temp output when we compile your .bicep template with resources
stress-test-resources.json

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# generated based on the values in your scenarios-matrix.yaml
generatedValues.yaml

# the temp output when we compile your .bicep template with resources
stress-test-resources.json

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# generated based on the values in your scenarios-matrix.yaml
generatedValues.yaml

# the temp output when we compile your .bicep template with resources
stress-test-resources.json

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
matrix:
scenarios:
- stress
filesharedemo:
dataToBeWritten: "hello world"
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,30 @@ metadata:
spec:
containers:
- name: debug-share-example
# Your base image will be different - the only requirement is that it has some form of `sh`
image: busybox
command: ['sh', '-c']
args:
- |
set -ex;
# -e: exit on non-zero exit code
# -x: echo out all executed commands
set -ex;
# your log folder doesn't exist when your app starts, so make sure you
# create it.
mkdir -p $DEBUG_SHARE;
# OPTIONAL: If your app can only write to your current working
# directory then you'll also want to cd into the folder you
# created before running your test:
cd $DEBUG_SHARE;
# This is where you'd run your command, along with any Helm macro
# replacements that are needed.
pwd;
ls -R $DEBUG_SHARE_ROOT;
echo "debug share example success" > success;
ls -R $DEBUG_SHARE;
echo "debug share example success {{ .Stress.dataToBeWritten }}" > success;
cat success;
# The file share is mounted by default at the path $DEBUG_SHARE
# when including the container-env template
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# generated based on the values in your scenarios-matrix.yaml
generatedValues.yaml

# the temp output when we compile your .bicep template with resources
stress-test-resources.json

0 comments on commit 4a14332

Please sign in to comment.