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
- Host: GitHub
- URL: https://github.com/akshaymankar/el-patron
- Owner: akshaymankar
- Created: 2018-03-04T23:46:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-22T20:45:56.000Z (over 5 years ago)
- Last Synced: 2025-02-12T12:21:25.505Z (3 months ago)
- Language: Haskell
- Homepage:
- Size: 135 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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
```