-
Notifications
You must be signed in to change notification settings - Fork 1
Remote tiled #9
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
Open
davramov
wants to merge
15
commits into
main
Choose a base branch
from
remote-tiled
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Remote tiled #9
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
57b89b6
use newest Tiled component and refactor to use its defaults for modal…
SeijDeLeon 69cc448
new itk viewer that loads from the als github directly and displays m…
SeijDeLeon 5df1b93
update env to include tiled api examples and accept new default file id
SeijDeLeon 1815ad8
refactor to use new itk viewer component and new utils
SeijDeLeon da5b783
add jsdoc and sanitizer
SeijDeLeon 592975a
network and docker updates
SeijDeLeon 2d1ac8e
initial working prototype of auth interceptor for tiled within the it…
SeijDeLeon ec310d6
working itk app with tiled token interceptor
SeijDeLeon 1f47634
install newest tiled with oidcRedirectUrl
SeijDeLeon b1dbd08
connecting to remote tiled server
davramov 0377799
Allowing for folder selection, fixed issue where a second dataset wou…
davramov 4f299cd
Working now
davramov d1aca48
Cleaning up
davramov 4f721ac
Remove orphaned viewer/widget/service-worker files
davramov 07a638d
upgrade tiled finder to v0033
SeijDeLeon 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| DATA_PATH=/Users/david/Documents/data/tomo/scratch | ||
| DATA_PATH=/path/to/your/zarr/data #directory of zarr datasets served by tiled | ||
| VITE_TILED_DEFAULT_FILE_ID=your-default-dataset-id #the first file that will be automatically loaded into the viewer app | ||
| VITE_API_TILED_URL=http://localhost:8000/api/v1 #optional custom url for tiled | ||
| # VITE_API_TILED_URL=https://tiled-staging.computing.als.lbl.gov/api/v1 | ||
| #VITE_TILED_PORT=8001 #optionally specify the tiled port (not to be used with VITE_API_TILED_URL) (will assume same hostname as browser) | ||
| VITE_TILED_PROCESSED_PATH=beamlines/bl832/processed #parent catalog path whose subfolders populate the folder dropdown (defaults to beamlines/bl832/processed) | ||
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 |
|---|---|---|
| @@ -1,10 +1,27 @@ | ||
| authentication: | ||
| allow_anonymous_access: false | ||
|
|
||
| single_user_api_key: ${TILED_SINGLE_USER_API_KEY} | ||
| uvicorn: | ||
| host: 0.0.0.0 | ||
| port: 8000 | ||
| allow_origins: | ||
| - http://localhost:5173 | ||
| - http://localhost:5174 | ||
| - http://localhost:8082 | ||
| - http://localhost:8787 | ||
| - https:///tiled-staging.computing.als.lbl.gov | ||
| - http://host.docker.internal:5173 | ||
| - http://host.docker.internal:5174 | ||
| - http://host.docker.internal:8082 | ||
| - http://host.docker.internal:8787 | ||
| trees: | ||
| - path: / | ||
| tree: catalog | ||
| args: | ||
| uri: "sqlite+aiosqlite:////storage/catalog.db" | ||
| writable_storage: "/storage/data" | ||
| uri: "sqlite:////storage/catalog.db" | ||
| writable_storage: | ||
| - "/storage/data" | ||
| - "sqlite:////storage/tabular.db" | ||
| readable_storage: | ||
| - "/storage/data" | ||
| init_if_not_exists: true |
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 |
|---|---|---|
|
|
@@ -5,62 +5,51 @@ services: | |
| nginx: | ||
| image: nginx:stable | ||
| ports: | ||
| - "8787:80" | ||
| - "5174:80" | ||
| volumes: | ||
| - ./nginx.conf:/etc/nginx/nginx.conf:ro | ||
| - ./cors.conf:/etc/nginx/cors.conf:ro | ||
| depends_on: | ||
| - tiled | ||
| - viewer | ||
| # - tiled | ||
| - react | ||
| restart: unless-stopped | ||
| networks: | ||
| - webnet | ||
|
|
||
| tiled: | ||
| build: | ||
| context: ./tiled | ||
| dockerfile: Dockerfile | ||
| environment: | ||
| - DATA_DIR=/storage/data | ||
| - TILED_ALLOW_ORIGINS="http://localhost:8787 http://localhost:8082 http://localhost:5174 http://localhost:8000 http://host.docker.internal:8787 http://host.docker.internal:8082 http://host.docker.internal:5174" | ||
| - TILED_SINGLE_USER_API_KEY=${TILED_SINGLE_USER_API_KEY} | ||
| - TILED_CONFIG=/deploy/config/custom_config.yml # Point to our custom config | ||
| volumes: | ||
| - ${DATA_PATH:-./data}:/storage/data # Mount data directory | ||
| - ./custom_config.yml:/deploy/config/custom_config.yml # Mount custom config | ||
| expose: | ||
| - "8000" | ||
| networks: | ||
| - webnet | ||
| command: > | ||
| sh -c " | ||
| # 1) Launch the server in the background | ||
| exec tiled serve config --host 0.0.0.0 --port 8000 --scalable & | ||
| TILED_PID=\$! | ||
|
|
||
| # 2) Wait up to 30s for it to become healthy | ||
| sleep 30 | ||
|
|
||
| # 3) Register your data once the server is accepting connections | ||
| tiled register http://localhost:8000/ /storage/data --api-key=${TILED_SINGLE_USER_API_KEY} --verbose | ||
|
|
||
| # 4) Hand control back to the server process so docker logs still show it | ||
| wait \$TILED_PID | ||
| " | ||
| restart: unless-stopped | ||
| # tiled: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would be a fan of leaving tiled in...let's treat this docker-compose as "what a developer needs to just get running"...actual deployment in the real world will be very different. |
||
| # # build: | ||
| # # context: ./tiled | ||
| # # dockerfile: Dockerfile | ||
| # image: ghcr.io/bluesky/tiled:0.2.3 | ||
| # environment: | ||
| # - DATA_DIR=/storage/data | ||
| # #- TILED_ALLOW_ORIGINS='["http://localhost:8787", "http://localhost:8082", "http://localhost:5174", "http://localhost:8000", "http://host.docker.internal:8787", "http://host.docker.internal:8082", "http://host.docker.internal:5174"]' | ||
| # - TILED_SINGLE_USER_API_KEY=${TILED_SINGLE_USER_API_KEY} | ||
| # - TILED_CONFIG=/deploy/config/custom_config.yml # Point to our custom config | ||
| # volumes: | ||
| # - ${DATA_PATH:-./data}:/storage/data # Mount data directory | ||
| # - ./custom_config.yml:/deploy/config/custom_config.yml # Mount custom config | ||
| # expose: | ||
| # - "8000" | ||
| # networks: | ||
| # - webnet | ||
| # # command: > | ||
| # # sh -c " | ||
| # # # 1) Launch the server in the background | ||
| # # exec tiled serve config --host 0.0.0.0 --port 8000 --scalable & | ||
| # # TILED_PID=\$! | ||
|
|
||
| # # # 2) Wait up to 30s for it to become healthy | ||
| # # sleep 30 | ||
|
|
||
| viewer: | ||
| build: | ||
| context: ./viewer | ||
| dockerfile: Dockerfile | ||
| expose: | ||
| - "8082" | ||
| networks: | ||
| - webnet | ||
| restart: unless-stopped | ||
| # # # 3) Register your data once the server is accepting connections | ||
| # # tiled register http://localhost:8000/ /storage/data --api-key=${TILED_SINGLE_USER_API_KEY} --verbose | ||
|
|
||
| # # # 4) Hand control back to the server process so docker logs still show it | ||
| # # wait \$TILED_PID | ||
| # # " | ||
| # command: sleep infinity | ||
| # restart: unless-stopped | ||
|
|
||
| react: | ||
| build: | ||
|
|
@@ -72,4 +61,4 @@ services: | |
| - "5174" | ||
| restart: unless-stopped | ||
| networks: | ||
| - webnet | ||
| - webnet | ||
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have any way of knowing this in deployment. Is it optional or required in your app?