Business oriented, config driven DevOps
Перейти к файлу
dependabot[bot] 077a80b245
build: bump node-fetch from 2.6.0 to 2.6.1 (#74)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-21 13:30:44 +11:00
.devcontainer feat: upgrade to Go 1.14 (#67) 2020-03-17 16:42:24 +11:00
.github ci: bump setup-node from v1.4.0 to v2 (#72) 2021-01-20 15:30:53 +11:00
.vscode Merge up master 2019-11-14 09:39:06 +11:00
cmd feat: implement semantic-release (#65) 2020-03-12 15:36:12 +11:00
docs chore(release): 1.0.0 [skip ci] 2020-03-17 05:47:56 +00:00
examples feat: upgrade to Go 1.14 (#67) 2020-03-17 16:42:24 +11:00
internal feat: upgrade to Go 1.14 (#67) 2020-03-17 16:42:24 +11:00
scripts Broke helm and kind makefile in two. 2020-02-12 10:27:15 +11:00
tools feat: implement semantic-release (#65) 2020-03-12 15:36:12 +11:00
.gitignore feat: implement semantic-release (#65) 2020-03-12 15:36:12 +11:00
.golangci.yml Undid US spelling and replace linter misspell to UK. 2020-01-24 11:21:56 +11:00
CODE_OF_CONDUCT.md Initial commit 2019-09-01 22:20:34 -07:00
CONTRIBUTING.md feat: implement semantic-release (#65) 2020-03-12 15:36:12 +11:00
LICENSE Initial commit 2019-09-01 22:20:35 -07:00
README.md feat: implement semantic-release (#65) 2020-03-12 15:36:12 +11:00
SECURITY.md Initial commit 2019-09-01 22:20:37 -07:00
go.mod feat: upgrade to Go 1.14 (#67) 2020-03-17 16:42:24 +11:00
go.sum feat: upgrade to Go 1.14 (#67) 2020-03-17 16:42:24 +11:00
main.go Moved tools out from internal to root of project. 2020-01-23 15:23:05 +11:00
makefile feat: upgrade to Go 1.14 (#67) 2020-03-17 16:42:24 +11:00
package-lock.json build: bump node-fetch from 2.6.0 to 2.6.1 (#74) 2021-01-21 13:30:44 +11:00
package.json ci: bump semantic-release from 17.0.4 to 17.2.3 (#71) 2021-01-20 14:55:30 +11:00

README.md

Abstrakt

build Azure DevOps coverage (branch) semantic-release

Table of contents

Quick Start

If you want to contribute to the project, we've made things easy for you to get everything up and running using devcontainers.

Dependencies

To run the devcontainer, there's a couple things you need to install first on your machine.

A full devcontainer setup guide can be found here.

Running

With everything installed and running, you can continue.

  1. Open this project in a new instance of Visual Studio Code.
  2. You may be prompted to Reopen in Container. Click on it.
    • If you do not see the prompt, bring up your command palette (View -> Command Palette...) and type Remote Containers: Open Folder in Container...
  3. Wait for Visual Studio Code to reopen and build your container.
  4. Once your container has finished building, you can now start developing!
  5. Open a new terminal in Visual Studio Code (Terminal -> New Terminal).
  6. Type go run main.go.

Samples

You can find sample constellation files in the following location:

/examples/constellation/

Using these files you can test the app binary.

Running the local Helm Microservice Sample

This sample uses the Http Microservice test constellation file located in sample/constellation/http_constellation.yaml.

The sample will install three services with relationships between them:

  • A sender
  • Another sender
  • A receiver

The concept is that you send a message down the chain.

  • The first sender takes a message via http, adds value to the message and forwards it to the second sender.
  • The second sender repeats this, also adding a unique value before sending on to the receiver.
  • The receiver echos back the message
  • Each of the sender returns the message back down the chain before the final message pops out the original http request.
Running the sample

Run:

make run-http-demo

This will deploy the demo to the cluster. The templates are output to output/http_sample/Output.

You can test it by:

kubectl wait pod -n default --for condition=ready --timeout=120s --all && kubectl exec -it sender-sender bash
curl sender:8080/api/CallReceiver?message=yourmessage

You should see the response "yourmessage--Chain-sender--Chain-sender1" which proves the message traversed the chain!

Remove the install

You can remove the installed pods and services by calling make http-demo-delete

Debugging Templates

You can debug the templates by outputting them by running make http-demo-template-all

Contributing

Please read CONTRIBUTING.md for details on our process for submitting pull requests, and CODE_OF_CONDUCT.md for details on our code of conduct.