marsom / serverbin

simple request and response service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build License Go Report Card Go Reference Powered By: GoReleaser

serverbin

A simple request and response service with support for

  • HTTP
  • TCP

Usage

docker

Run the http test server:

docker run -p 8080:8080 -p 8081:8081 -ti --rm marsom/serverbin http

Run the tcp test server:

docker run -p 8080:8080 -p 8081:8081 -ti --rm marsom/serverbin tcp

go install

Install binary with go

go install github.com/marsom/serverbin/cmd/serverbin

Run the http test server:

serverbin http

Run the tcp test server:

serverbin tcp

manually

Download the pre-compiled binaries from the releases page and copy to the desired location.

Build

Download and install the build requirements:

Optional development tools:

Build binaries

goreleaser build --snapshot --rm-dist

Build binaries and docker images

goreleaser release --snapshot --rm-dist

Release

  • Create and push a release candidate tag, i.e., v0.0.1-rc1
  • If all look good then create the tagged version, i.e., v0.0.1
  • Update release notes in github
    • goreleaser generated docker images section contains architecture based images. this is not correct because we build a docker manifest in a separate step.
    • remove prerelease/draft flag
  • Manually trigger the "Release latest images" github action with the

About

simple request and response service

License:Apache License 2.0


Languages

Language:Go 99.9%Language:Dockerfile 0.1%