-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add codespace configuration for h5pyd #187
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fad6aa9
added codespace config
jreadey 4f233ef
added requirements.txt
jreadey afbe5f3
revised examples
jreadey 61450cb
move requirements.txt to .devcontainer
jreadey 7c0db10
support s3fs for anonymous creds
jreadey 72c55f5
set hsds loglevel to ERROR
jreadey d78444c
updated notebook environment
jreadey 3292cb4
updated notebook markdown
jreadey 2df07bc
remove extraneious .domain.json file
jreadey 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 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,29 @@ | ||
{ | ||
"name": "h5pyd with HSDS", | ||
"hostRequirements": { | ||
"cpus": 4 | ||
}, | ||
"dockerComposeFile": "docker-compose.yaml", | ||
"updateContentCommand": "python3 -m pip install -r .devcontainer/requirements.txt", | ||
"postCreateCommand": "", | ||
"service": "app", | ||
"workspaceFolder": "/workspace", | ||
"forwardPorts": [5101], | ||
"portsAttributes": { | ||
"5101": {"label": "HSDS port", "onAutoForward": "silent"} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-outside-of-docker": {} | ||
}, | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": [] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.jupyter" | ||
] | ||
} | ||
} | ||
} |
This file contains 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,107 @@ | ||
version: "3" | ||
services: | ||
app: | ||
image: "mcr.microsoft.com/devcontainers/universal:2" | ||
environment: | ||
- HS_ENDPOINT=http://localhost:5101 | ||
- HS_USERNAME=test_user1 | ||
- HS_PASSWORD=test | ||
- H5PYD_TEST_FOLDER=/home/test_user1/h5pyd_test/ | ||
volumes: | ||
- ..:/workspace:cached | ||
|
||
# Overrides default command so things don't shut down after the process ends. | ||
command: sleep infinity | ||
|
||
# Runs app on the same network as the SN container, allows "forwardPorts" in devcontainer.json function. | ||
network_mode: service:sn | ||
head: | ||
image: hdfgroup/hsds:master | ||
restart: on-failure | ||
mem_limit: 512m | ||
environment: | ||
- TARGET_SN_COUNT=1 | ||
- TARGET_DN_COUNT=4 | ||
- NODE_TYPE=head_node | ||
ports: | ||
- 5100 | ||
volumes: | ||
- ../.hsds/data:/data | ||
- ../.hsds/config/:/config/ | ||
dn1: | ||
image: hdfgroup/hsds:master | ||
restart: on-failure | ||
mem_limit: 1g | ||
environment: | ||
- NODE_TYPE=dn | ||
- ROOT_DIR=/data | ||
ports: | ||
- 6101 | ||
depends_on: | ||
- head | ||
volumes: | ||
- ../.hsds/data:/data | ||
- ../.hsds/config/:/config/ | ||
links: | ||
- head | ||
dn2: | ||
image: hdfgroup/hsds:master | ||
restart: on-failure | ||
mem_limit: 1g | ||
environment: | ||
- NODE_TYPE=dn | ||
ports: | ||
- 6102 | ||
depends_on: | ||
- head | ||
volumes: | ||
- ../.hsds/data:/data | ||
- ../.hsds/config/:/config/ | ||
links: | ||
- head | ||
dn3: | ||
image: hdfgroup/hsds:master | ||
restart: on-failure | ||
mem_limit: 1g | ||
environment: | ||
- NODE_TYPE=dn | ||
ports: | ||
- 6103 | ||
depends_on: | ||
- head | ||
volumes: | ||
- ../.hsds/data:/data | ||
- ../.hsds/config/:/config/ | ||
links: | ||
- head | ||
dn4: | ||
image: hdfgroup/hsds:master | ||
restart: on-failure | ||
mem_limit: 1g | ||
environment: | ||
- NODE_TYPE=dn | ||
ports: | ||
- 6104 | ||
depends_on: | ||
- head | ||
volumes: | ||
- ../.hsds/data:/data | ||
- ../.hsds/config/:/config/ | ||
links: | ||
- head | ||
sn: | ||
image: hdfgroup/hsds:master | ||
restart: on-failure | ||
mem_limit: 1g | ||
environment: | ||
- SN_PORT=5101 | ||
- NODE_TYPE=sn | ||
ports: | ||
- 5101:5101 | ||
depends_on: | ||
- head | ||
volumes: | ||
- ../.hsds/data:/data | ||
- ../.hsds/config/:/config/ | ||
links: | ||
- head |
This file contains 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,40 @@ | ||
aiobotocore==2.12.3 | ||
aiohttp==3.9.5 | ||
aioitertools==0.11.0 | ||
aiosignal==1.3.1 | ||
attrs==23.2.0 | ||
botocore==1.34.69 | ||
build==1.2.1 | ||
certifi==2024.2.2 | ||
charset-normalizer==3.3.2 | ||
contourpy==1.2.1 | ||
cycler==0.12.1 | ||
flake8==7.0.0 | ||
fonttools==4.51.0 | ||
frozenlist==1.4.1 | ||
fsspec==2024.3.1 | ||
h5py==3.11.0 | ||
h5pyd @ git+https://github.com/hdfgroup/h5pyd | ||
idna==3.7 | ||
jmespath==1.0.1 | ||
kiwisolver==1.4.5 | ||
matplotlib==3.8.4 | ||
mccabe==0.7.0 | ||
multidict==6.0.5 | ||
numpy==1.26.4 | ||
packaging==24.0 | ||
pillow==10.3.0 | ||
pycodestyle==2.11.1 | ||
pyflakes==3.2.0 | ||
PyJWT==2.8.0 | ||
pyparsing==3.1.2 | ||
pyproject_hooks==1.0.0 | ||
python-dateutil==2.9.0.post0 | ||
pytz==2024.1 | ||
requests==2.31.0 | ||
requests-unixsocket==0.3.0 | ||
s3fs==2024.3.1 | ||
six==1.16.0 | ||
urllib3==2.2.1 | ||
wrapt==1.16.0 | ||
yarl==1.9.4 |
This file contains 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 |
---|---|---|
|
@@ -66,3 +66,6 @@ target/ | |
|
||
# macOS stuff | ||
.DS_Store | ||
|
||
# hsds data | ||
data/ |
This file contains 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,9 @@ | ||
log_level: ERROR | ||
bucket_name: hsdstest | ||
server_name: "HSDS for Github codespaces" | ||
aws_region: us-west-2 # (original was us-east-1) | ||
aws_s3_gateway: http://s3.us-west-2.amazonaws.com/ # (original was null) | ||
aws_s3_no_sign_request: True # (original was false) | ||
root_dir: /data | ||
|
||
|
This file contains 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,13 @@ | ||
# HSDS password file template | ||
# | ||
# | ||
# This file contains a list of usernames/passwords that will be used to authenticate | ||
# requests to HSDS. | ||
# If using HTTP Basic Auth, copy file to "passwd.txt" in the same directory before deploying HSDS. | ||
# Otherwise, if using Azure Active Directory or Kerberos, don't copy this file - usernames will be | ||
# authenticated using those identity providers. | ||
# For production use, replace the "test" password below with secret passwords and add | ||
# and any new accounts desired. | ||
admin:admin | ||
test_user1:test | ||
test_user2:test |
This file contains 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 @@ | ||
{"owner": "admin", "acls": {"admin": {"create": true, "read": true, "update": true, "delete": true, "readACL": true, "updateACL": true}, "default": {"create": false, "read": true, "update": false, "delete": false, "readACL": false, "updateACL": false}}, "created": 1708897646.0599918, "lastModified": 1708897646.0599918} | ||
This file contains 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 @@ | ||
{"owner": "test_user1", "acls": {"test_user1": {"create": true, "read": true, "update": true, "delete": true, "readACL": true, "updateACL": true}, "default": {"create": false, "read": true, "update": false, "delete": false, "readACL": false, "updateACL": false}}, "created": 1711992550.3733413, "lastModified": 1711992550.3733413} |
This file contains 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 @@ | ||
{"owner": "test_user1", "acls": {"test_user1": {"create": true, "read": true, "update": true, "delete": true, "readACL": true, "updateACL": true}, "default": {"create": false, "read": true, "update": false, "delete": false, "readACL": false, "updateACL": false}}, "created": 1711992550.3733413, "lastModified": 1711992550.3733413} |
This file contains 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 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 @@ | ||
{"owner": "test_user1", "acls": {"test_user1": {"create": true, "read": true, "update": true, "delete": true, "readACL": true, "updateACL": true}, "default": {"create": false, "read": true, "update": false, "delete": false, "readACL": false, "updateACL": false}}, "created": 1711992550.3733413, "lastModified": 1711992550.3733413} |
This file contains 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,15 +1,15 @@ | ||
name: hsds | ||
name: h5pyd tutorial | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.6 | ||
- python=3.11 | ||
- h5py | ||
- jupyter | ||
- matplotlib | ||
- nb_conda_kernels | ||
- pytz | ||
- requests | ||
- matplotlib | ||
- s3fs | ||
- pip: | ||
- h5pyd #latest release on PyPi | ||
# - git+https://github.com/HDFGroup/h5pyd.git #latest from master | ||
- h5pyd @ git+https://github.com/hdfgroup/h5pyd # latest from master |
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.
It looks like the
hsds/data
folder was included by accident.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.
removed