-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add codespace configuration for h5pyd (#187)
* added codespace config * added requirements.txt * revised examples * move requirements.txt to .devcontainer * support s3fs for anonymous creds * set hsds loglevel to ERROR * updated notebook environment * updated notebook markdown * remove extraneious .domain.json file
- Loading branch information
Showing
16 changed files
with
594 additions
and
204 deletions.
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 |
---|---|---|
@@ -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.