Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cicd-tutorials/animals
Simple containers for testing and demonstrating (rolling) updates.
https://github.com/cicd-tutorials/animals
container container-image demo demo-application hello-world server testing webserver
Last synced: 7 days ago
JSON representation
Simple containers for testing and demonstrating (rolling) updates.
- Host: GitHub
- URL: https://github.com/cicd-tutorials/animals
- Owner: cicd-tutorials
- License: mit
- Created: 2023-10-03T19:07:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-20T19:30:14.000Z (25 days ago)
- Last Synced: 2024-10-20T23:59:10.571Z (25 days ago)
- Topics: container, container-image, demo, demo-application, hello-world, server, testing, webserver
- Language: HTML
- Homepage:
- Size: 236 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Animals
[![Release](https://github.com/cicd-tutorials/animals/actions/workflows/release.yaml/badge.svg)](https://github.com/cicd-tutorials/animals/actions/workflows/release.yaml)
Simple containers for testing and demonstrating (rolling) updates. Based on [UpCloudLtd / hello-container](https://github.com/UpCloudLtd/hello-container.git). Uses the same [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) styling as [cicd-tutorials.net](https://cicd-tutorials.net/).
## Usage
To create a deployment and expose it from your Kubernetes cluster, run:
```sh
kubectl create deployment --image=ghcr.io/cicd-tutorials/animals:cow moo
kubectl expose deployment moo --port=80 --target-port=80 --type=LoadBalancer
kubectl get svc -w
```This process might take a few minutes. After external IP for hello service is visible, use it to test that pod is reachabe from the internet.
## Development
Build `animals` image with:
```sh
docker build . -t animals# With version note
docker build . -t animals --build-arg "VERSION_NOTE=at $(git rev-parse HEAD)"# With all build args
docker build . -t animals \
--build-arg "VERSION_NOTE=at $(git rev-parse HEAD)" \
--build-arg "EMOJI=🦁" \
--build-arg "HELLO=Moo" \
--build-arg "NAME=horse"
```Run `animals` with:
```sh
docker run -i -p 8080:80 --rm animals
```