-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature dockerize & deployment plugin & attachment button (#69)
* Refactor deployment processing in own plugin refs: #2 refs: #14 * feat(ci): dockerize Refs: #6 * docs: serve from docker container * docs(ci): extend documentation of docker build * Add feature issue template (#15) * Add Issue Templates for Features Add feature issue templates similar to the ones of the qunicorn repository but adjusted to the style of the workflow modeler. * Implement attachment of deployment artifacts Ref: #1 * Add xml viewer (#70) * add xml viewer * remove ace * add border to resize editor * enable live update on diagram change * fix tests * increase initial size of xml viewer & limit max height * change size of modeler when xml viewer is enabled * remove jump after first resize * remove button from bottom left, add button to toolbar * add icon * Feature/9 visualize deployment model (#17) * Add deployment model visualization Ref: #9 * Add deployment model visualization Ref: #9 * Orientate at top-node * refactor stroke style * add test * add test * add test * fix top level node detection behavior and error handling * Fix crash on hide --------- Co-authored-by: Maximilian Kuhn <maximilian.kuhn@ymail.com> * Feature/11 deployment model show all button (#18) * Fix/upstream pr comments (#21) * Fix/upstream pr comments ref: #20 * Rename ArtifactWizardModal Also fixed some typos in the code comments * Feature/10 deployment model prevent overlap (#19) refs: #10 * Feature/3 preparation of attached deployment artifacts (#23) * Implement ArtifactType Dropdown * Implement artifact upload * Add Creation of Service Template Add functionality which creates the service template, which includes a node of a fitting node type for the selected artifact. * Auto Update SCAR * Add loading notification and change CSAR naming * fix artifact upload --------- Co-authored-by: Maximilian Kuhn <maximilian.kuhn@ymail.com> Co-authored-by: Christoph Walcher <christoph-wa@gmx.de> * nit picking Signed-off-by: Christoph Walcher <st180462@stud.uni-stuttgart.de> Signed-off-by: Maximilian Kuhn <maximilian.kuhn@ymail.com> Signed-off-by: Furkan Lokman <furkan.lokman@hotmail.com> * Add On-Demand Deployment Pop-Up * Fix button integration * implement on demand transformation * Move connectorUrl to opentosca plugin * fix merge of upstream * upload transformed xml * fix review comments Signed-off-by: Maximilian Kuhn <maximilian.kuhn@ymail.com> * Prototyp script task * fixup! Prototyp script task * fix input parameter supplier * fix tests * implement push on-demand deployements * improve retry mechanism * Implement changes suggested in review * change organization in docker-push.yaml to planqk * name tasks in subprocess & extend timeout * Implement PR comments * Rename BPMNConfigTab --------- Signed-off-by: Christoph Walcher <st180462@stud.uni-stuttgart.de> Signed-off-by: Maximilian Kuhn <maximilian.kuhn@ymail.com> Signed-off-by: Furkan Lokman <furkan.lokman@hotmail.com> Co-authored-by: Christoph Walcher <st180462@stud.uni-stuttgart.de> Co-authored-by: Christoph Walcher <christoph-wa@gmx.de> Co-authored-by: LaviniaStiliadou <livia_16@live.de> Co-authored-by: lokmanfl <furkan.lokman@hotmail.com> Co-authored-by: lokmanfl <44772645+lokmanfl@users.noreply.github.com>
- Loading branch information
1 parent
77f804f
commit 28dedbc
Showing
78 changed files
with
2,533 additions
and
722 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,3 @@ | ||
components/bpmn-q/node_modules/ | ||
npm-debug.log | ||
yarn-error.log |
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,23 @@ | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
docker-publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
tags: planqk/workflow-modeler:latest |
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,11 +1,45 @@ | ||
FROM node:18-alpine | ||
|
||
FROM node:18-alpine as builder | ||
LABEL maintainer = "Martin Beisel <martin.beisel@iaas.uni-stuttgart.de>" | ||
COPY "components/bpmn-q" /tmp | ||
WORKDIR /tmp | ||
COPY "components/bpmn-q" /app | ||
WORKDIR /app | ||
RUN npm ci | ||
|
||
ARG DATA_CONFIG | ||
ARG OPENTOSCA_ENDPOINT | ||
ARG WINERY_ENDPOINT | ||
ARG NISQ_ANALYZER_ENDPOINT | ||
ARG TRANSFORMATION_FRAMEWORK_ENDPOINT | ||
ARG QISKIT_RUNTIME_HANDLER_ENDPOINT | ||
ARG AWS_RUNTIME_HANDLER_ENDPOINT | ||
ARG SCRIPT_SPLITTER_ENDPOINT | ||
ARG SCRIPT_SPLITTER_THRESHOLD | ||
ARG QRM_REPONAME | ||
ARG QRM_USERNAME | ||
ARG QRM_REPOPATH | ||
ARG PROVENANCE_COLLECTION | ||
ARG ENABLE_DATA_FLOW_PLUGIN | ||
ARG ENABLE_PLANQK_PLUGIN | ||
ARG ENABLE_QHANA_PLUGIN | ||
ARG ENABLE_QUANTME_PLUGIN | ||
ARG ENABLE_OPENTOSCA_PLUGIN | ||
ARG AUTOSAVE_INTERVAL | ||
ARG CAMUNDA_ENDPOINT | ||
ARG DOWNLOAD_FILE_NAME | ||
ARG GITHUB_TOKEN | ||
ARG QHANA_GET_PLUGIN_URL | ||
ARG QHANA_LIST_PLUGINS_URL | ||
ARG SERVICE_DATA_CONFIG | ||
ARG UPLOAD_BRANCH_NAME | ||
ARG UPLOAD_FILE_NAME | ||
ARG UPLOAD_GITHUB_REPO | ||
ARG UPLOAD_GITHUB_USER | ||
|
||
RUN npm install | ||
RUN env | ||
RUN npm run build -- --mode=production | ||
|
||
EXPOSE 8080 | ||
|
||
CMD npm run dev | ||
FROM nginxinc/nginx-unprivileged:alpine | ||
USER root | ||
RUN rm -rf /usr/share/nginx/html | ||
COPY --from=builder /app/public /usr/share/nginx/html | ||
USER 101 |
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
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
44 changes: 44 additions & 0 deletions
44
components/bpmn-q/modeler-component/editor/ui/OnDemandDeploymentModal.js
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,44 @@ | ||
/** | ||
* Copyright (c) 2023 Institute of Architecture of Application Systems - | ||
* University of Stuttgart | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms the Apache Software License 2.0 | ||
* which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* eslint-disable no-unused-vars */ | ||
import React from 'react'; | ||
|
||
// polyfill upcoming structural components | ||
import Modal from './modal/Modal'; | ||
|
||
const Title = Modal.Title || (({children}) => <h2>{children}</h2>); | ||
const Body = Modal.Body || (({children}) => <div>{children}</div>); | ||
const Footer = Modal.Footer || (({children}) => <div>{children}</div>); | ||
|
||
export default function OnDemandDeploymentModal({onClose}) { | ||
|
||
const onOnDemand = (value) => onClose({ | ||
onDemand: value, | ||
}); | ||
|
||
return <Modal onClose={onClose}> | ||
|
||
<Title> | ||
Workflow Deployment | ||
</Title> | ||
<Body> | ||
The current workflow contains service task with attached deployment models which support on-demand service deployment. | ||
Would you like to use on-demand service deployment? | ||
</Body> | ||
<Footer> | ||
<div id="deploymentButtons"> | ||
<button type="button" className="qwm-btn qwm-btn-primary" onClick={() => onOnDemand(true)}>Yes</button> | ||
<button type="button" className="qwm-btn qwm-btn-secondary" onClick={() => onOnDemand(false)}>No</button> | ||
</div> | ||
</Footer> | ||
</Modal>; | ||
} |
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
Oops, something went wrong.