https://github.com/mmalessa/go-dummy-http
make binary
docker-compose.yaml
version: "3.8"
services:
http_1:
container_name: go_dummy_http1
image: mmalessa/go-dummy-http:1.0.1
environment:
- APP_INSTANCE=http1
ports:
- "801:80"
http_2:
container_name: go_dummy_http2
image: mmalessa/go-dummy-http:1.0.1
environment:
- APP_INSTANCE=http2
ports:
- "802:80"
http://localhost:801
http://localhost:802
The server captures everything and displays a simple report, i.e.:
GO DUMMY HTTP
http://github.com/mmalessa/go-http-mock
Server instance: http1
Server time: 2023-09-04 16:43:10+00:00
Host: localhost
Method: GET
Path: /asdfasdf/
Headers:
[...]
make developer
make build
docker image ls | grep go_dummy_http
docker tag go_dummy_http-app:latest mmalessa/go-dummy-http:1.0.1
docker push mmalessa/go-dummy-http:1.0.1