Skip to content

A Docker fullstack app to visualise HDF5 files

Notifications You must be signed in to change notification settings

silx-kit/h5whale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

h5whale: a Docker application to explore HDF5 files 🐳

Quick start 🚀

  • Copy the files in data
  • Run docker-compose up
  • Access the viewer at http://localhost:3000/?file=<name_of_your_file>

Repository contents 📦

h5whale provides Docker images to run a fullstack application to view HDF5 files in a web browser. The fullstack app is composed of two apps:

  • A Python back-end app based on h5grove to serve HDF5 files contained in the data folder through the network.
  • A React front-end app based on h5web to display and inspect HDF5 files served by the back-end app.

Each app has its own Dockerfile and the fullstack app can be run with docker-compose:

docker-compose up

The viewer can be accessed at http://localhost:3000, the file being specified by the query param file. Ex: nexus.nx can be viewed by accessing http://localhost:3000/?file=nexus.nx.

The value of the front-end app port (default: 3000) and of the back-end app port (default: 8888) can be changed in the .env file.

Docker images 🐋🖼️

Back-end (h5grove_app)

The back-end app in h5grove_app is a simple Python script that runs a Flask h5grove instance, deployed with gunicorn.

By default, it serves HDF5 files in the data folder through the port 8888. The port can be changed when building the image through the H5GROVE_APP_PORT argument:

docker build --build-arg H5GROVE_APP_PORT=8889 .

Front-end (h5web_app)

The front-end app in h5web_app is a React application deploying the H5Web viewer with vite. It is copied from the H5Web vite sandbox.

By default, the viewer can be accessed http://localhost:3000 and will request the back-end at http://localhost:8888. This can be changed through the following build arguments:

  • H5WEB_APP_PORT: Port through which the viewer will be served (default: 3000)
  • H5GROVE_APP_URL: URL of the h5grove app that serves HDF5 file contents (default: http://localhost)
  • H5GROVE_APP_PORT: Port through which the h5grove app serves HDF5 file contents (default: 8888)

About

A Docker fullstack app to visualise HDF5 files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published