GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nb-99/pubsub-horizon-cosmoparrot: A simple HTTP based echo server

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.reuse
.reuse
 
 
LICENSES
LICENSES
 
 
docs/img
docs/img
 
 
internal
internal
 
 
manifest
manifest
 
 
web
web
 
 
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CODEOWNERS
CODEOWNERS
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Cosmoparrot logo

Cosmoparrot

A simple HTTP based echo server.

Building Cosmoparrot • Configuration • Running Cosmoparrot

Go Test

Overview

Cosmosparrot simple HTTP based echo server designed to provide a response that mirrors the contents included in the initial request.
It was initially created for Pub/Sub end-to-end test scenarios where it is important to simulate an event message consumer that responds to HTTP (callback) requests.

Building Cosmoparrot

Go build

Assuming you have already installed go, simply run the follwoing to build the executable:

go build

Alternatively, you can also follow the Docker build in the following section if you want to build a Docker image without the need to have Golang installed locally.

Docker build

This repository provides a multi-stage Dockerfile that will also take care about compiling the software, as well as dockerizing Cosmoparrot. Simply run:

docker build -t cosmoparrot:latest  . 

Configuration

Cosmoparrot supports configuration via environment variables and/or a configuration file (config.yml). The configuration file has to be located in the same directory as the executable.

Path Variable Type Default Description
port COSMOPARROT_PORT int 8080 Sets the port to listen on.
responseCode COSMOPARROT_RESPONSECODE int 200 Enforces a specific HTTP response code. Can be used to test different consumer behavior.
methodResponseCodeMapping COSMOPARROT_METHODRESPONSECODEMAPPING string "" Control the HTTP response code per HTTP method, for example: "POST:401"

Running Cosmoparrot

Locally

Simply run the built cosmoparrot executable to start the server:

./cosmoparrot

Alternatively you can run the server in a container:

docker run -p 8080:8080 cosmoparrot

Deployment

For the deployment of Cosmoparrot you can use Kubernetes deployment manifest/deployment.yaml and adjust it to your needs, or you can use and customize the Heln chart located in manifest/helm.

Helm example:

helm install cosmoparrot ./manifest/helm/cosmoparrot \
  --namespace custom-namespace --create-namespace \
  --set cosmoparrot.storeKeyRequestHeaders="{X-Request-ID,X-Correlation-ID}" \
  --set image.repository=myregistry.com/cosmoparrot \
  --set image.tag=latest \
  --set ingress.enabled=true \
  --set ingress.host=cosmoparrot.mycompany.com \
  --set imagePullSecrets[0].name=my-pull-secret

Contributing

We're committed to open source, so we welcome and encourage everyone to join its developer community and contribute, whether it's through code or feedback.
By participating in this project, you agree to abide by its Code of Conduct at all times.

Code of Conduct

This project has adopted the Contributor Covenant in version 2.1 as our code of conduct. Please see the details in our Code of Conduct. All contributors must abide by the code of conduct. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

This project follows the REUSE standard for software licensing. You can find a guide for developers at https://telekom.github.io/reuse-template/.
Each file contains copyright and license information, and license texts can be found in the ./LICENSES folder. For more information visit https://reuse.software/.

About

A simple HTTP based echo server

Resources

Readme

Code of conduct

Code of conduct
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.