https://github.com/tariq1890/hello-osiris
Demo web application for Osiris
https://github.com/tariq1890/hello-osiris
docker-image golang kubernetes
Last synced: 3 months ago
JSON representation
Demo web application for Osiris
- Host: GitHub
- URL: https://github.com/tariq1890/hello-osiris
- Owner: tariq1890
- License: mit
- Created: 2018-12-04T18:00:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T23:11:08.000Z (over 7 years ago)
- Last Synced: 2025-03-21T08:48:36.521Z (over 1 year ago)
- Topics: docker-image, golang, kubernetes
- Language: Makefile
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-osiris
[](https://circleci.com/gh/tariq1890/hello-osiris/tree/master)
[](https://cloud.docker.com/repository/docker/tariq181290/hello-osiris)
[](https://github.com/tariq1890/hello-osiris/blob/master/LICENSE)
hello-osiris is a basic golang web server that listens on two ports 4000 and 5000.
### Usage
hello-osiris is used as a sample web application for demonstrating the functions of [Osiris](https://github.com/deislabs/osiris), a scale to zero component for Kubernetes.
### Running in a container
To run hello-osiris inside a container, run the following commands: (assuming you are in the hello-osiris project root)
```
docker build -t .
docker run -p :4000 -p :5000
```
Alternatively, you could also pull the docker image of hello-osiris that has been publicly hosted and run that.
```
docker pull tariq181290:hello-osiris
docker run -p :4000 -p :5000 tariq181290:hello-osiris
```
If the commands above were run successfully, you will have received the following output:
```
hello server listening at :4000
goodbye server listening at :5000
```
To test that you are able to reach the container ports from your host machine, run the following cURL commands:
```
$ curl 0.0.0.0:
Hello, World!
$ curl 0.0.0.0:
Ya'll come back real soon!
```