This repo contains the source code for the test-suite Reframe dashboard. Within the context of the MultiXScale project an EESSI test-suite was created, this dashboard is part of this test-suite.
The dashboard can be used in two ways:
- As a standalone application, see Docker deployment. Build it with
npm run build:app(output indist-app/). - As a Vue plugin inside another Vue application, see Plugin usage. Build it with
npm run build(output indist/).
Before running, building or containerizing the dashboards please configure the .env-example file to your liking and remove the -example.
Requirements:
- npm: ^12.+
In the root directory install all required packages with: npm ci.
Then in this same root directory start the front-end development server with: npm run dev
This will run the test-suite dashboard. For the API, please refer to the API section.
Requirements:
- Docker: ^27.+
First you need to build the instance by running the following command in the repo root directory:
docker build -f ./ops/Dockerfile -t test-suite-dashboard .
Then you can run it with:
docker run --env-file .env -p 5173:80 --rm --name test-suite-dashboard test-suite-dashboard
Requirements for the host application:
- Vue 3 and Vuex 4 (peer dependencies)
- Bootstrap 5 CSS, the dashboard's layout relies on Bootstrap classes but does not include Bootstrap's CSS itself
Install the package in the host application, e.g. directly from this git repository (the prepare script builds dist/ on install):
npm install github:EESSI/test-suite-dashboard
Register the plugin with the host's Vuex store and the API location:
import { createApp } from 'vue'
import { createStore } from 'vuex'
import ReframeDashboardPlugin from '@surf/reframe-dashboard'
import '@surf/reframe-dashboard/style.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import App from './App.vue'
const store = createStore({})
createApp(App)
.use(store)
.use(ReframeDashboardPlugin, { store, apiBase: '/reframe-api' })
.mount('#app')Then place <ReframeDashboard /> in any template. To use it as a route instead, import the component directly: import { ReframeDashboard } from '@surf/reframe-dashboard'.
Plugin options:
| Option | Required | Description |
|---|---|---|
store |
yes | The host's Vuex store, the dashboard registers its reframe store module on it |
apiBase |
yes | Base URL of the API. Either a path that the host proxies to the API (e.g. /reframe-api), or a full URL (which requires CORS to be set up on the API) |
componentName |
no | Name under which the component is registered globally, defaults to ReframeDashboard |
The package also exports the ReframeChangelog and EESSIAbout components, for use in the host's about pages.
In both situations, local deployment and docker deployment, the test suite es backend api endpoints are proxied through /reframe-api to any url defined with REFRAME_API in the .env file (when --env-file is defined in the run command) to reduce CORS conflicts. If you API is setup behind another proxy with another endpoint name you can build the image with the build argument VITE_REFRAME_API_ENDPOINT, which must contain your relative path of completely different origin (which might cause CORS issues).
The test suite es backend source code and deployment instructions can be found here: https://github.com/EESSI/test-suite-es-backend.