-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Locally working dynamic settings version * Bump version * Fix waiting settings file * Rename config file to settings.json * Bump version * Switch to alpine node * Working version of dashboard * Remove the ability to change the job status * Add hover boxes etc * Use light grey for todo in dashboard * Changed direction of progress bar
- Loading branch information
Showing
25 changed files
with
663 additions
and
285 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
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,7 +1,7 @@ | ||
name: ParallelRunner | ||
description: "ParallelRunnerService" | ||
key: simcore/services/dynamic/osparc-meta-parallelrunner | ||
version: 0.2.1 | ||
version: 1.0.1 | ||
integration-version: 2.0.0 | ||
type: dynamic | ||
authors: | ||
|
@@ -10,30 +10,18 @@ authors: | |
affiliation: IT'IS Foundation | ||
contact: [email protected] | ||
inputs: | ||
input_0: | ||
displayOrder: 0.0 | ||
label: Template ID | ||
description: | ||
Template ID | ||
type: string | ||
input_1: | ||
displayOrder: 1.0 | ||
label: Number of workers | ||
displayOrder: 0.0 | ||
label: Settings | ||
description: | ||
Number of parallel workers to use to run the jobs | ||
type: integer | ||
JSON file with settings for the parallel runner | ||
type: data:*/* | ||
input_2: | ||
displayOrder: 2.0 | ||
displayOrder: 1.0 | ||
label: Input parameters | ||
description: | ||
File with the parameter sets to evaluate | ||
type: data:*/* | ||
input_3: | ||
displayOrder: 2.0 | ||
label: Settings | ||
description: | ||
JSON file with settings for the parallel runner | ||
type: data:*/* | ||
outputs: | ||
output_1: | ||
displayOrder: 1.0 | ||
|
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,29 +1,43 @@ | ||
FROM ubuntu:22.04 as base | ||
FROM node:alpine as base | ||
|
||
RUN useradd -m -r osparcuser | ||
RUN adduser osparcuser --disabled-password | ||
|
||
USER root | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBCONF_NOWARNINGS="yes" | ||
|
||
RUN apt-get update --yes && apt-get upgrade --yes | ||
RUN apt-get install -y --no-install-recommends apt-utils | ||
RUN apt-get install --yes --no-install-recommends python3 python-is-python3 python3-venv wget python3-pip gosu | ||
|
||
RUN apk update && apk upgrade | ||
RUN apk add --no-cache python3 py3-pip wget bash su-exec | ||
|
||
# Copying boot scripts | ||
COPY docker_scripts /docker | ||
|
||
RUN pip3 install pathos osparc pydantic-settings osparc-filecomms --upgrade | ||
|
||
USER osparcuser | ||
|
||
WORKDIR /home/osparcuser | ||
RUN python3 -m venv venv | ||
RUN . ./venv/bin/activate && pip3 install -r /docker/requirements.txt | ||
|
||
USER root | ||
|
||
WORKDIR /docker/http | ||
RUN npm install vite @vitejs/plugin-react --save-dev | ||
RUN npm create vite@latest dashboard -- --template react | ||
|
||
WORKDIR /docker/http/dashboard | ||
RUN npm install | ||
RUN npm install -D tailwindcss@latest postcss@latest autoprefixer@latest | ||
RUN npx tailwindcss init -p | ||
|
||
WORKDIR /docker/http/server | ||
RUN chown osparcuser:osparcuser jobs.json | ||
|
||
RUN npm install express | ||
RUN npm run build | ||
|
||
USER root | ||
EXPOSE 8888 | ||
ENV JOBS_STATUS_PATH=/docker/http/server/jobs.json | ||
|
||
ENTRYPOINT [ "/bin/bash", "-c", "/docker/entrypoint.bash" ] | ||
CMD [ "/bin/bash", "-c", "/docker/runner.bash "] |
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
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,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Job Status Dashboard</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
</html> |
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,21 @@ | ||
{ | ||
"name": "job-status-dashboard", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"@vitejs/plugin-react": "^3.1.0", | ||
"vite": "^4.2.0" | ||
} | ||
} |
Oops, something went wrong.