https://github.com/jtyr/container_test
Testing container
https://github.com/jtyr/container_test
container docker golang http testing
Last synced: 8 months ago
JSON representation
Testing container
- Host: GitHub
- URL: https://github.com/jtyr/container_test
- Owner: jtyr
- License: mit
- Created: 2020-03-06T15:21:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T15:26:12.000Z (about 6 years ago)
- Last Synced: 2024-12-06T19:53:48.021Z (over 1 year ago)
- Topics: container, docker, golang, http, testing
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
container_test
==============
This is a simple HTTP server written in Go returning the hostname and IP of the
host the server runs on. It's meant to be running in a Docker container and
return the name and the IP of the container for testing purposes.
Usage
-----
Build container:
```shell
docker build -t container_test .
```
Run container:
```shell
docker run --rm --publish 8080:8080 --name container_test container_test
```
Test container:
```
curl localhost:8080
```
Author
------
Jiri Tyr
License
-------
MIT