An open API service indexing awesome lists of open source software.

https://github.com/akshaymankar/el-patron

Application to manage pools of locks
https://github.com/akshaymankar/el-patron

Last synced: about 2 months ago
JSON representation

Application to manage pools of locks

Awesome Lists containing this project

README

        

# El Patrón

Application to manage pools of locks. Read more about pools and locks [here](https://github.com/concourse/pool-resource)

## Deploy to Kubernetes using helm

1. Create a [Github OAuth App](https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/):
- Homepage URL must be root of whatever domain you use
- Authorization callback URL must be `http://YOUR-DOMAIN/auth/page/github/callback`
1. Create a file (say `el-patron-secrets.yml`) with these values:
```yaml
elPatron:
authorizedTeam: # Members of this team will have access to El Patrón
githubClientId:
githubClientSecret:
remote: [email protected]:/
privateKey:
```
1. Install using helm
```
helm install deploy/kubernetes/helm/el-patron --namespace el-patron -f el-patron-secrets.yml
```

## Push to Cloud Foundry

1. Create a [Github OAuth App](https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/):
- Homepage URL must be root of whatever domain you use
- Authorization callback URL must be `http://YOUR-DOMAIN/auth/page/github/callback`
1. Copy `manifest.yml.exmaple` to `manifest.yml`
1. Fill in all the values in `env` in `manifest.yml`
1. `cf push `

## Run locally

1. Install [stack](https://docs.haskellstack.org/en/stable/README/#how-to-install)
1. Install [elm](https://guide.elm-lang.org/install.html)
1. Install [create-elm-app](https://github.com/halfzebra/create-elm-app)
1. Clone the code
1. Build elm code
```bash
cd el-patron/elm
elm app build
cd ..
```
1. Build haskell code
```bash
stack build
```
1. Execute
```bash
stack exec el-patron \
--remote [email protected]:akshaymankar/test-locks \
--private-key /ssh/id_rsa \
--github-client-secret \
--github-client-id \
-t 'ORG/TEAM' \
-e ./elm/build
```