Business oriented, config driven DevOps
Перейти к файлу
Jason 35c5dc576e Removed task. 2020-01-23 19:30:28 +11:00
.devcontainer Fixed gopls issue. 2020-01-22 13:37:40 +11:00
.github update pr template 2019-11-07 12:49:55 -08:00
.vscode Merge up master 2019-11-14 09:39:06 +11:00
build/ci Removed task. 2020-01-23 19:30:28 +11:00
cmd Moved tools out from internal to root of project. 2020-01-23 15:23:05 +11:00
docs Fixed liniting issues. 2020-01-22 10:53:06 +11:00
examples Renamed .scripts to scripts and sample to examples. 2020-01-15 13:09:21 +11:00
internal Cleanup. 2020-01-23 18:30:54 +11:00
scripts Renamed .scripts to scripts and sample to examples. 2020-01-15 13:09:21 +11:00
tools Moved tools out from internal to root of project. 2020-01-23 15:23:05 +11:00
.gitignore crrodger/178 diff constellations (#57) 2019-12-16 17:10:22 +11:00
.golangci.yml Fixed golangci.yml. 2020-01-22 10:48:15 +11:00
CODE_OF_CONDUCT.md Initial commit 2019-09-01 22:20:34 -07:00
CONTRIBUTING.md Testing CI Build 2019-11-14 22:48:52 +00:00
LICENSE Initial commit 2019-09-01 22:20:35 -07:00
README.md Renamed .scripts to scripts and sample to examples. 2020-01-15 13:09:21 +11:00
SECURITY.md Initial commit 2019-09-01 22:20:37 -07:00
go.mod Updated tests to use asserts. 2020-01-14 11:31:13 +11:00
go.sum crrodger/178 diff constellations (#57) 2019-12-16 17:10:22 +11:00
main.go Moved tools out from internal to root of project. 2020-01-23 15:23:05 +11:00
makefile Remove get_helm.sh after installing. 2020-01-23 14:52:15 +11:00

README.md

Abstrakt

Build Status Azure DevOps coverage (branch)

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