-
Notifications
You must be signed in to change notification settings - Fork 1
Feature local setup #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ecc0f4f
initial docker setup done
susrisha ac2700f
Added custom_imagery column
susrisha 70b14cc
imagery and description added
susrisha 49c11b6
Added routes for validate name
susrisha ed1b7f4
Update a92361f527ef_custom_imagery_and_description.py
susrisha 1129280
updated required settings
susrisha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
alembic_osm/versions/a92361f527ef_custom_imagery_and_description.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| """custom_imagery_and_description | ||
|
|
||
| Revision ID: a92361f527ef | ||
| Revises: f3a7b9c1d2e4 | ||
| Create Date: 2026-07-14 15:08:42.142553 | ||
|
|
||
| """ | ||
|
|
||
| from typing import Sequence, Union | ||
|
|
||
| import sqlalchemy as sa | ||
| from alembic import op | ||
| from sqlalchemy.dialects.postgresql import JSONB | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision: str = "a92361f527ef" | ||
| down_revision: Union[str, None] = "f3a7b9c1d2e4" | ||
|
susrisha marked this conversation as resolved.
Dismissed
|
||
| branch_labels: Union[str, Sequence[str], None] = None | ||
|
susrisha marked this conversation as resolved.
Dismissed
|
||
| depends_on: Union[str, Sequence[str], None] = None | ||
|
susrisha marked this conversation as resolved.
Dismissed
|
||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| op.add_column( | ||
| "tasking_projects", | ||
| sa.Column("custom_imagery", JSONB(astext_type=sa.Text()), nullable=True), | ||
| ) | ||
| op.add_column( | ||
| "tasking_projects", | ||
| sa.Column("description", sa.String(length=10000), nullable=True), | ||
| ) | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| op.drop_column("tasking_projects", "custom_imagery") | ||
| op.drop_column("tasking_projects", "description") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| services: | ||
| database: | ||
| image: postgis/postgis:16-3.4 | ||
| environment: | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: testing | ||
| POSTGRES_DB: workspaces-osm-local | ||
| ports: | ||
| - 5432:5432 | ||
| volumes: | ||
| - ./data/db:/var/lib/postgresql/data | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "pg_isready -U postgres -d workspaces-osm-local"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| osm-cgimap: | ||
| image: opensidewalksdev.azurecr.io/workspaces-osm-cgimap:dev | ||
| environment: | ||
| CGIMAP_INSTANCES: 10 | ||
| CGIMAP_HOST: database | ||
| CGIMAP_USERNAME: postgres | ||
| CGIMAP_PASSWORD: testing | ||
| CGIMAP_DBNAME: workspaces-osm-local | ||
| CGIMAP_MAX_CHANGESET_ELEMENTS: 100000000 # max features per import or save | ||
| CGIMAP_MAX_PAYLOAD: 1000000000 # max size of dataset uploads | ||
| CGIMAP_MAP_NODES: 100000000 # max number of nodes per requeset | ||
| CGIMAP_MAP_AREA: 1 # max area per request in square degrees | ||
| ports: | ||
| - 8000 | ||
| osm-rails: | ||
| image: opensidewalksdev.azurecr.io/workspaces-osm-rails:dev | ||
| environment: | ||
| RAILS_ENV: production | ||
| SECRET_KEY_BASE: osm_secret_key | ||
| WS_OSM_DB_HOST: database | ||
| WS_OSM_DB_USER: postgres | ||
| WS_OSM_DB_PASS: testing | ||
| WS_OSM_DB_NAME: workspaces-osm-local | ||
| stdin_open: true | ||
| tty: true | ||
| ports: | ||
| - 3000 | ||
| command: ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"] | ||
|
|
||
| osm-rails-worker: | ||
| image: opensidewalksdev.azurecr.io/workspaces-osm-rails:dev | ||
| environment: | ||
| RAILS_ENV: production | ||
| SECRET_KEY_BASE: osm_secret_key | ||
| WS_OSM_DB_HOST: database | ||
| WS_OSM_DB_USER: postgres | ||
| WS_OSM_DB_PASS: testing | ||
| WS_OSM_DB_NAME: workspaces-osm-local | ||
| stdin_open: true | ||
| tty: true | ||
| command: ["bundle", "exec", "rake", "jobs:work"] | ||
|
|
||
| backend: | ||
| build: . | ||
| container_name: workspaces-backend | ||
| volumes: | ||
| - .:/app | ||
| ports: | ||
| - 8000:8000 | ||
| environment: | ||
| TDEI_BACKEND_URL: ${TDEI_BACKEND_URL} | ||
| TDEI_OIDC_REALM: ${TDEI_OIDC_REALM} | ||
| TDEI_OIDC_URL: ${TDEI_OIDC_URL} | ||
| OSM_DATABASE_URL: postgresql+asyncpg://postgres:testing@database:5432/workspaces-osm-local | ||
| TASK_DATABASE_URL: postgresql+asyncpg://postgres:testing@database:5432/workspaces-tasks-local | ||
|
susrisha marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.