Skip to content

Commit

Permalink
Merge pull request #463 from dividehex/docker-compose
Browse files Browse the repository at this point in the history
Clean up from revamp
  • Loading branch information
dividehex committed Jul 11, 2023
2 parents 0c82d56 + b0cebf9 commit 720f49b
Show file tree
Hide file tree
Showing 6 changed files with 7,764 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- 'revamp'
- 'master'

permissions:
contents: 'read'
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]

- id: check-added-large-files

- repo: https://github.com/psf/black
Expand Down
52 changes: 52 additions & 0 deletions clouddeploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: deploy.cloud.google.com/v1
kind: DeliveryPipeline
metadata:
name: 'sso-dashboard'
description: 'Deployment pipeline for sso-dashboard'
serialPipeline:
stages:
- targetId: 'dev'
profiles: ['dev']
- targetId: 'staging'
profiles: ['staging']
- targetId: 'prod'
profiles: ['prod']
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: 'dev'
description: 'Development target'
run:
location: 'projects/iam-auth0/locations/us-east1'
executionConfigs:
- usages:
- RENDER
- DEPLOY
serviceAccount: [email protected]
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: 'staging'
description: 'Staging target'
run:
location: 'projects/iam-auth0/locations/us-east1'
executionConfigs:
- usages:
- RENDER
- DEPLOY
serviceAccount: [email protected]
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: 'prod'
description: 'Production target'
run:
location: 'projects/iam-auth0/locations/us-east1'
executionConfigs:
- usages:
- RENDER
- DEPLOY
serviceAccount: [email protected]
20 changes: 20 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
services:
redis:
image: redis

sso-dashboard:
build: .
env_file: envfile
environment:
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
- FLASK_DEBUG=True
- FLASK_APP=dashboard/app.py
ports:
- 8000:8000
volumes:
- ./dashboard:/dashboard
entrypoint: "/usr/local/bin/flask"
command: run --host=0.0.0.0 --port 8000
Loading

0 comments on commit 720f49b

Please sign in to comment.