https://github.com/burtlo/vault-action-exampleapp
https://github.com/burtlo/vault-action-exampleapp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/burtlo/vault-action-exampleapp
- Owner: burtlo
- Created: 2020-11-05T19:54:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T20:50:27.000Z (over 4 years ago)
- Last Synced: 2025-02-10T20:27:51.783Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exampleapp in Ruby
Now with GitHub action builder.
## Local Development
This application is built to run in a cluster and not locally. It would take
some additional changes to have it work locally.```shell
$ bundle install
$ rackup
```## Docker Image
Create the Docker image.
```shell
$ docker build . -t exampleapp-ruby
```Test the Docker image.
```shell
$ docker run -it -p 8080:8080 exampleapp-ruby:k8s
```Push the Docker image.
```shell
$ docker push USERNAME/exampleapp-ruby:k8s
```## Load it into Kubernetes
The assumption is Kubernetes, Vault, and Consul are configured correctly.
Update the configuration file to use your Docker image.
Apply the configuration that describes the exampleapp-simple pod.
```shell
$ kubectl apply -f exampleapp.yaml
```Check the logs of the server.
```shell
$ kubectl logs exampleapp-simple-c54944b4c-pjqlc
```Login to the instance.
```shell
$ kubectl exec -it exampleapp-simple-c54944b4c-pjqlc /bin/bash
```