Skip to content

Commit

Permalink
Use Eligibility Server from GitHub registry (#128)
Browse files Browse the repository at this point in the history
The local dev container is now using a server from the eligibility-server Docker image
from the GitHub Container Registry, not from localhost/server.

* Use the main tag of the eligibility server image from GitHub Container Registry
* Remove Flask debugger
* Remove localhost/server files
  • Loading branch information
machikoyasuda authored Oct 7, 2021
2 parents a688230 + 08204a9 commit 2a802b5
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 313 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*.env
*.mo
**/data/*.json
!localhost/data/[client|server].json
!localhost/data/client.json
static/
!benefits/static
__pycache__/
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ repos:
hooks:
- id: bandit
args: ["-ll"]
exclude: ^server/
files: .py$
15 changes: 0 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@
"0.0.0.0:8000"
],
"django": true
},
{
"name": "Flask: Eligibility Verification Server",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5789
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}/localhost/server",
"remoteRoot": "/usr/src/server"
}
]
}
]
}
21 changes: 0 additions & 21 deletions localhost/data/server.json

This file was deleted.

13 changes: 1 addition & 12 deletions localhost/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,9 @@ services:
- ../:/home/calitp/app:cached

server:
build: ./server
image: eligibility_verification_server:dev
command: python -m debugpy --listen 0.0.0.0:5678 app.py
environment:
- FLASK_APP=app.py
- FLASK_DEBUG=1
- FLASK_ENV=development
image: ghcr.io/cal-itp/eligibility-server:main
ports:
- "5000"
- "5678"
volumes:
- ./server:/usr/src/server:cached
- ./data:/usr/src/server/data
- ./keys:/usr/src/server/keys

s3pull:
image: amazon/aws-cli
Expand Down
27 changes: 0 additions & 27 deletions localhost/keys/server.key

This file was deleted.

9 changes: 0 additions & 9 deletions localhost/server/Dockerfile

This file was deleted.

219 changes: 0 additions & 219 deletions localhost/server/app.py

This file was deleted.

5 changes: 0 additions & 5 deletions localhost/server/requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions localhost/server/static/tokenize.js

This file was deleted.

0 comments on commit 2a802b5

Please sign in to comment.