Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #61 from SueChaplain/upd-0.9.0
Browse files Browse the repository at this point in the history
Update version number in guides
  • Loading branch information
jantley-ibm authored May 6, 2020
2 parents e63bdb0 + c9b5d0a commit e746e2d
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 96 deletions.
82 changes: 42 additions & 40 deletions publish/creating-a-stack-hub/creating-a-stack-hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ In this guide, you will change the example configuration file and use it build a
- java-microprofile
- java-openliberty
- nodejs
- url: https://github.com/kabanero-io/collections/releases/download/0.6.0/kabanero-index.yaml
- url: https://github.com/kabanero-io/collections/releases/download/0.9.0/kabanero-index.yaml
include:
- java-openliberty
image-org:
image-registry:
nginx-image-name:
```

This example configuration file builds a single stack hub index file for your `default` hub. The `default` hub points to two index files, `https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml` and `https://github.com/kabanero-io/collections/releases/download/0.6.0/kabanero-index.yaml`. The `include:` and `exclude:` options are used
This example configuration file builds a single stack hub index file for your `default` hub. The `default` hub points to two index files, `https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml` and `https://github.com/kabanero-io/collections/releases/download/0.9.0/kabanero-index.yaml`. The `include:` and `exclude:` options are used
to filter from the available application stacks.

2. Save your changes.
Expand All @@ -166,25 +166,25 @@ Not retrieving or modifying any assets
Creating consolidated index for default
== fetching https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
== Adding stacks from index https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
==== Adding stack nodejs-loopback 0.2.2
==== Adding stack nodejs-loopback 0.3.0
==== Excluding stack swift 0.2.5
==== Excluding stack node-red 0.1.1
==== Excluding stack python-flask 0.2.2
==== Excluding stack python-flask 0.2.3
==== Excluding stack starter 0.1.2
==== Excluding stack java-microprofile 0.2.24
==== Adding stack java-spring-boot2 0.3.26
==== Excluding stack kitura 0.2.5
==== Excluding stack java-openliberty 0.2.2
==== Excluding stack nodejs 0.3.4
==== Adding stack nodejs-express 0.4.3
== fetching https://github.com/kabanero-io/collections/releases/download/0.6.0/kabanero-index.yaml
== Adding stacks from index https://github.com/kabanero-io/collections/releases/download/0.6.0/kabanero-index.yaml
==== Excluding stack java-microprofile 0.2.25
==== Adding stack java-openliberty 0.2.1
==== Excluding stack java-spring-boot2 0.3.23
==== Excluding stack nodejs-express 0.2.8
==== Excluding stack nodejs-loopback 0.1.8
==== Excluding stack nodejs 0.3.1
==== Excluding stack java-microprofile 0.2.26
==== Adding stack java-spring-boot2 0.3.29
==== Excluding stack kitura 0.2.6
==== Excluding stack java-openliberty 0.2.11
==== Excluding stack quarkus 0.3.3
==== Excluding stack nodejs 0.3.5
==== Adding stack nodejs-express 0.4.8
== fetching https://github.com/kabanero-io/collections/releases/download/0.9.0/kabanero-index.yaml
== Adding stacks from index https://github.com/kabanero-io/collections/releases/download/0.9.0/kabanero-index.yaml
==== Excluding stack java-microprofile 0.2.27
==== Adding stack java-openliberty 0.2.3
==== Excluding stack java-spring-boot2 0.3.29
==== Excluding stack nodejs-express 0.4.8
==== Excluding stack nodejs 0.3.6
== Running post_build.d scripts
==== Running build_nginx.sh
== Done post_build.d scripts
Expand All @@ -194,29 +194,31 @@ Creating consolidated index for default

Open the `default-index.yaml` file to view the consolidated information for each stack in your configuration. For example, the last stack in the list is `nodejs-express`:

```
- default-template: simple
description: Express web framework for Node.js
id: nodejs-express
image: docker.io/appsody/nodejs-express:0.4.3
language: nodejs
license: Apache-2.0
maintainers:
- email: [email protected]
github-id: sam-github
name: Sam Roberts
name: Node.js Express
requirements:
appsody-version: '>= 0.2.7'
docker-version: '>= 17.09.0'
src: https://github.com/appsody/stacks/releases/download/nodejs-express-v0.4.3/incubator.nodejs-express.v0.4.3.source.tar.gz
templates:
- id: simple
url: https://github.com/appsody/stacks/releases/download/nodejs-express-v0.4.3/incubator.nodejs-express.v0.4.3.templates.simple.tar.gz
- id: scaffold
url: https://github.com/appsody/stacks/releases/download/nodejs-express-v0.4.3/incubator.nodejs-express.v0.4.3.templates.scaffold.tar.gz
version: 0.4.3
```
- id: nodejs-express
name: Node.js Express
version: 0.4.8
description: Express web framework for Node.js
license: Apache-2.0
language: nodejs
maintainers:
- name: Sam Roberts
email: [email protected]
github-id: sam-github
default-template: simple
src: https://github.com/appsody/stacks/releases/download/nodejs-express-v0.4.8/incubator.nodejs-express.v0.4.8.source.tar.gz
templates:
- id: kafka
url: https://github.com/appsody/stacks/releases/download/nodejs-express-v0.4.8/incubator.nodejs-express.v0.4.8.templates.kafka.tar.gz
- id: simple
url: https://github.com/appsody/stacks/releases/download/nodejs-express-v0.4.8/incubator.nodejs-express.v0.4.8.templates.simple.tar.gz
- id: scaffold
url: https://github.com/appsody/stacks/releases/download/nodejs-express-v0.4.8/incubator.nodejs-express.v0.4.8.templates.scaffold.tar.gz
requirements:
docker-version: '>= 17.09.0'
appsody-version: '>= 0.2.7'
image: docker.io/appsody/nodejs-express:0.4.8
```

Congratulations! You have built your first stack hub index file that defines a set of filtered application stacks from multiple source repositories.

Expand Down
14 changes: 7 additions & 7 deletions publish/stack-java-openliberty/stack-java-openliberty.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ NAME URL
Next, run the following command to add the URL for the public Kabanero stack hub:

```shell
appsody repo add kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
appsody repo add kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

Check the repositories again by running `appsody repo list` to see that your repository was added. The output is similar to the following example:

```shell
NAME URL
*incubator https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

In this example, the asterisk (\*) shows that `incubator` is the default repository. Run the following command to set `kabanero` as the default repository:
Expand All @@ -114,7 +114,7 @@ Check the available repositories again by running `appsody repo list` to see tha
```shell
NAME URL
incubator https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

**Recommendation**: To avoid initializing projects that are based on the public application stacks, it's best
Expand All @@ -128,7 +128,7 @@ Check the available repositories again by running `appsody repo list` to see tha

```shell
NAME URL
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

Your development environment is now configured to use the Kabanero application stacks. Next, you need to initialize your project.
Expand Down Expand Up @@ -163,7 +163,7 @@ Checking stack requirements...
Appsody requirements met
Docker requirements met
Running appsody init...
Downloading java-openliberty template project from https://github.com/kabanero-io/collections/releases/download/0.6.4/java-openliberty.v0.2.3.templates.default.tar.gz
Downloading java-openliberty template project from https://github.com/kabanero-io/collections/releases/download/0.9.0/java-openliberty.v0.2.3.templates.default.tar.gz
Download complete. Extracting files from /Users/myuser/appsody/java-openliberty/java-openliberty.tar.gz
Setting up the development environment
Your Appsody project name has been set to java-openliberty
Expand All @@ -187,10 +187,10 @@ Running command: docker pull docker.io/kabanerobeta/java-openliberty:0.2
[InitScript] [INFO] BUILD SUCCESS
[InitScript] [INFO] ------------------------------------------------------------------------
[InitScript] [INFO] Total time: 2.556 s
[InitScript] [INFO] Finished at: 2020-04-07T13:19:45+01:00
[InitScript] [INFO] Finished at: 2020-05-15T13:19:45+01:00
[InitScript] [INFO] ------------------------------------------------------------------------
Successfully added your project to /Users/myuser/.appsody/project.yaml
Your Appsody project ID has been set to 20200407131945.49100100
Your Appsody project ID has been set to 20200515131945.49100100
Successfully initialized Appsody project with the java-openliberty stack and the default template.
```

Expand Down
30 changes: 15 additions & 15 deletions publish/stack-nodejs-express/stack-nodejs-express.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ NAME URL
Next, run the following command to add the URL for the public Kabanero stack hub:

```
appsody repo add kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
appsody repo add kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

Check the repositories again by running `appsody repo list` to see that your repository was added. The output is similar to the following example:

```
NAME URL
*incubator https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

In this example, the asterisk (\*) shows that `incubator` is the default repository. Run the following command to set `kabanero` as the default repository:
Expand All @@ -119,7 +119,7 @@ Check the available repositories again by running `appsody repo list` to see tha
```
NAME URL
incubator https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

**Recommendation**: To avoid initializing projects that are based on the Appsody application stacks, it's best to remove `incubator` from the list. Run the following command to remove the `incubator` repository:
Expand All @@ -134,7 +134,7 @@ Check the available repositories again by running `appsody repo list` to see tha

```
NAME URL
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

Your development environment is now configured to use the Kabanero application stacks. Next, you need to initialize your project.
Expand Down Expand Up @@ -167,20 +167,20 @@ appsody init nodejs-express
The output from the command is similar to the following example:

```
Downloading nodejs-express template project from https://github.com/kabanero-io/collections/releases/download/0.6.4/nodejs-express.v0.2.10.templates.simple.tar.gz
Downloading nodejs-express template project from https://github.com/kabanero-io/collections/releases/download/0.9.0/nodejs-express.v0.4.8.templates.simple.tar.gz
Download complete. Extracting files from /Users/myuser/appsody/simple-nodejs-express/nodejs-express.tar.gz
Setting up the development environment
Your Appsody project name has been set to simple-nodejs-express
Pulling docker image docker.io/kabanerobeta/nodejs-express:0.2
Running command: docker pull docker.io/kabanerobeta/nodejs-express:0.2
0.2: Pulling from kabanerobeta/nodejs-express
Pulling docker image docker.io/kabanerobeta/nodejs-express:0.4
Running command: docker pull docker.io/kabanerobeta/nodejs-express:0.4
0.4: Pulling from kabanerobeta/nodejs-express
..
..
Status: Downloaded newer image for kabanerobeta/nodejs-express:0.2
docker.io/kabanerobeta/nodejs-express:0.2
Running command: docker run --rm --entrypoint /bin/bash docker.io/kabanerobeta/nodejs-express:0.2 -c "find /project -type f -name .appsody-init.sh"
Status: Downloaded newer image for kabanerobeta/nodejs-express:0.4
docker.io/kabanerobeta/nodejs-express:0.4
Running command: docker run --rm --entrypoint /bin/bash docker.io/kabanerobeta/nodejs-express:0.4 -c "find /project -type f -name .appsody-init.sh"
Successfully added your project to /Users/myuser/.appsody/project.yaml
Your Appsody project ID has been set to 20200407090805.07014400
Your Appsody project ID has been set to 20200515090805.07014400
Successfully initialized Appsody project with the nodejs-express stack and the default template.
```

Expand Down Expand Up @@ -221,11 +221,11 @@ After some time, you see a message similar to the following example:
```
[Container] Running command: npm start
[Container]
[Container] > nodejs-express@0.2.10 start /project
[Container] > nodejs-express@0.4.8 start /project
[Container] > node server.js
[Container]
[Container] [Tue Apr 07 12:58:44 2020] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 5.1.1.202003121616 (Agent Core 4.0.5)
[Container] [Tue Apr 07 12:58:45 2020] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883
[Container] [Tue May 15 12:58:44 2020] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 5.1.1.202003121616 (Agent Core 4.0.5)
[Container] [Tue May 15 12:58:45 2020] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883
[Container] App started on PORT 3000
```

Expand Down
16 changes: 8 additions & 8 deletions publish/stack-nodejs/stack-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ NAME URL
Next, run the following command to add the URL for the public Kabanero stack hub:

```shell
appsody repo add kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
appsody repo add kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

Check the repositories again by running `appsody repo list` to see that your repository was added. The output is similar to the following example:

```shell
NAME URL
*incubator https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

In this example, the asterisk (\*) shows that `incubator` is the default repository. Run the following command to set `kabanero` as the default repository:
Expand All @@ -112,7 +112,7 @@ Check the available repositories again by running `appsody repo list` to see tha
```shell
NAME URL
incubator https://github.com/appsody/stacks/releases/latest/download/incubator-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

**Recommendation**: To avoid initializing projects that are based on the public application stacks, it's best
Expand All @@ -126,7 +126,7 @@ Check the available repositories again by running `appsody repo list` to see tha

```shell
NAME URL
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.8.0/kabanero-stack-hub-index.yaml
*kabanero https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.9.0/kabanero-stack-hub-index.yaml
```

Your development environment is now configured to use your customized application stacks. Next, you need to initialize your project.
Expand Down Expand Up @@ -161,7 +161,7 @@ Checking stack requirements...
Docker requirements met
Appsody requirements met
Running appsody init...
Downloading nodejs template project from https://github.com/kabanero-io/collections/releases/download/0.6.4/nodejs.v0.3.3.templates.simple.tar.gz
Downloading nodejs template project from https://github.com/kabanero-io/collections/releases/download/0.9.0/nodejs.v0.3.6.templates.simple.tar.gz
Download complete. Extracting files from /Users/myuser/appsody/simple-nodejs/nodejs.tar.gz
Setting up the development environment
Your Appsody project name has been set to simple-nodejs
Expand All @@ -175,7 +175,7 @@ docker.io/kabanero/nodejs:0.3
[Warning] The stack image does not contain APPSODY_PROJECT_DIR. Using /project
Running command: docker run --rm --entrypoint /bin/bash docker.io/kabanero/nodejs:0.3 -c "find /project -type f -name .appsody-init.sh"
Successfully added your project to /Users/myuser/.appsody/project.yaml
Your Appsody project ID has been set to 20200402132709.84166800
Your Appsody project ID has been set to 20200515132709.84166800
Successfully initialized Appsody project with the nodejs stack and the default template.

```
Expand Down Expand Up @@ -234,10 +234,10 @@ up to date in 0.733s
..
[Container] Running command: npm start --node-options --require=appmetrics-dash/attach
[Container]
[Container] > nodejs-simple@0.1.0 start /project/user-app
[Container] > nodejs-simple@0.3.6 start /project/user-app
[Container] > node app.js
[Container]
[Container] [Tue Apr 7 08:03:53 2020] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 5.1.1.202003102147 (Agent Core 4.0.5)
[Container] [Tue May 15 08:03:53 2020] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 5.1.1.202003102147 (Agent Core 4.0.5)
[Container] Hello from Node.js 12!
```

Expand Down
Loading

0 comments on commit e746e2d

Please sign in to comment.