Skip to content

Commit

Permalink
Merge pull request IBM#36 from HeavyWombat/fix/TYPO
Browse files Browse the repository at this point in the history
Fix TYPOs and trailing whitespaces
  • Loading branch information
smoser-ibm authored Sep 27, 2022
2 parents 1a0f979 + fff58fe commit 61fd2a0
Show file tree
Hide file tree
Showing 39 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Tutorials and Samples for IBM Cloud Code Engine

This respository is split into two types of educational material: Tutorials
This repository is split into two types of educational material: Tutorials
and Samples.

Tutorials are meant to be complete end-to-end scenarios designed
Expand Down
2 changes: 1 addition & 1 deletion app-n-job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion app2job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
6 changes: 3 additions & 3 deletions bash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
This sample will show how to create an application that is nothing more than
a bash script. While there is still an HTTP server as part of the solution,
you should be able to reuse the `bash` container image in other projects
without neeeding to do more than just provide a custom bash script.
without needing to do more than just provide a custom bash script.

In this setup the follow will happen:
- during the startup of each instance of your applciation, if present,
a file named `/app/init` will be invoked. You can also set an environment
variabled called `INIT` to the path of an additional program that you
variable called `INIT` to the path of an additional program that you
want executed. The environment variable program will be called after
`/app/init`. This allows for you to execute code that you want only
run once per instance - and not on each incoming HTTP request.
Expand Down Expand Up @@ -36,4 +36,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion bind-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion bind-job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion bind-job/run
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ibmcloud resource service-instance-create bj-es messagehub lite \
set +x
echo "Waiting for Event Streams to become available..."
while ! ibmcloud resource service-instance bj-es | grep "State.*active" ; do
sleep 5
sleep 5
done > /dev/null
echo
set -x
Expand Down
2 changes: 1 addition & 1 deletion cecli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion configmaps-env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion configmaps-env/file
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ In Congress, July 4, 1776

The unanimous Declaration of the thirteen united States of America, When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation.

We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
2 changes: 1 addition & 1 deletion configmaps-vol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion configmaps-vol/file
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ In Congress, July 4, 1776

The unanimous Declaration of the thirteen united States of America, When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation.

We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
2 changes: 1 addition & 1 deletion cos-event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion cos2cos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ demonstrates a simple event-driven application pattern wherein the uploading of
an object to a Cloud Object Storage (COS) bucket generates an event. When the
app receives the event, it parses out the bucket and object key from the event,
downloads the object (file), "processes" it, and then uploads the resulting
file to a separate (preconfigured) destination bucket. The app then deletes
file to a separate (pre-configured) destination bucket. The app then deletes
the file from the original source bucket.

The app also includes a listener for cron events. Upon receipt of a cron event,
Expand Down
2 changes: 1 addition & 1 deletion cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion cron/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Clean up previous run
function clean() {
set +ex
echo Cleaning...
echo Cleaning...
(
ibmcloud ce sub cron delete -n cron-sub -f --wait=true
ibmcloud ce app delete -n cron-app -f
Expand Down
2 changes: 1 addition & 1 deletion cronjob/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion cronjob/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Clean up previous run
function clean() {
set +ex
echo Cleaning...
echo Cleaning...
(
ibmcloud ce sub cron delete -n cron-job-sub -f --wait=true
ibmcloud ce job delete -n cron-job -f
Expand Down
4 changes: 2 additions & 2 deletions daemonjob/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The code will also print the list of environment variables to the log file
for debugging purposes.

The sample script will also submit the job twice. First by creating a
job defintion, followed by submitting it, and then it will submit a new
job definition, followed by submitting it, and then it will submit a new
job directly without first creating a job definition. In the second case
it will also change the message printed via the `MSG` environment variable.

Expand All @@ -25,4 +25,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion fruit-counter/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Fruit Counter

Combine IBM Cloudant and IBM Code Engine to deploy a scalable and higly available web app. [Follow the tutorial here](https://www.ibm.com/cloud/blog/ibm-code-engine-and-ibm-cloudant-serverless-data-and-infrastructure).
Combine IBM Cloudant and IBM Code Engine to deploy a scalable and highly available web app. [Follow the tutorial here](https://www.ibm.com/cloud/blog/ibm-code-engine-and-ibm-cloudant-serverless-data-and-infrastructure).


2 changes: 1 addition & 1 deletion github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func ProcessEvent(eventType string, eventBody []byte) {
return
}

log.Printf("%s commited %q to %q branch",
log.Printf("%s committed %q to %q branch",
PushEvent.Pusher.Name, PushEvent.After, PushEvent.Ref)

// Now we'd normally do a build, but let's just fake it.
Expand Down
2 changes: 1 addition & 1 deletion hello/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion helloworld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
4 changes: 2 additions & 2 deletions job/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Job

This sample shows up to run a batch job. It will create the batch job two ways:
1 - first, it'll create a Job definition (the config informatin about a job)
1 - first, it'll create a Job definition (the config information about a job)
and then it submits that Job to actually do the work.
2 - second, it'll submit the Job directly without creating the definition
first. Both will generate the same results though.
Expand All @@ -18,4 +18,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion job2app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
4 changes: 2 additions & 2 deletions kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ that to setup our subscription and Kafka "sender" application that will
add messages to our Kafka instance.

The second part of the sample will create a Kafka subscription and send
all incoming messags to a new application called "receiver". In order
all incoming messages to a new application called "receiver". In order
to setup the Kafka subscription we'll first need to store the credentials
(`username` and `password`) in a secret, then pass in that secret name on
the subscription "create" command. We'll also need to pass in the list of
Expand All @@ -32,4 +32,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion private/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion s2i-dockerfile/run
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ibmcloud ce build create -n s2i-dbuild -i "$ICR/${ICR_NS}/app" --rs s2i-dicr \
--source https://github.com/IBM/CodeEngine --context-dir s2i-dockerfile

# Now kick off the build itself
ibmcloud ce buildrun submit -n s2i-drun --build s2i-dbuild --wait
ibmcloud ce buildrun submit -n s2i-drun --build s2i-dbuild --wait

# Test the image we just built - deploy an app and 'curl' it
ibmcloud ce app create -n s2i-dockerfile --image "$ICR/${ICR_NS}/app" --rs s2i-dicr
Expand Down
2 changes: 1 addition & 1 deletion secrets-env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion secrets-env/file
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ In Congress, July 4, 1776

The unanimous Declaration of the thirteen united States of America, When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation.

We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
2 changes: 1 addition & 1 deletion secrets-vol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ As noted in [the main README](../README.md), this sample has two pieces:
- a `run` script which deploys resources that use those images

The main purpose of this example is the `run` script, but the `build`
script is included for complete educational (and reuse) purposes.
script is included for complete educational (and reuse) purposes.
2 changes: 1 addition & 1 deletion secrets-vol/file
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ In Congress, July 4, 1776

The unanimous Declaration of the thirteen united States of America, When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation.

We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, --That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.
Loading

0 comments on commit 61fd2a0

Please sign in to comment.