Skip to content
Snippets Groups Projects
Commit 5818f9ff authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

public release

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 1680 additions and 0 deletions
/target/
\ No newline at end of file
stages:
- build_and_push
- redeploy
variables:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
build_and_push:
image: docker/compose:latest
stage: build_and_push
services:
- docker:dind
script:
- docker login docker.io -u "$DOCKER_REGISTRY_USER" -p "$DOCKER_REGISTRY_PASSWORD"
- echo We download previous build for using as cache from
- docker-compose pull
- docker-compose build
- docker-compose push
tags:
- docker
only:
- kubernetes
redeploy_at_k8s:
image: alpine/k8s:1.21.5
stage: redeploy
script:
- kubectl config set-cluster local --server="${K8S_SERVER}"
- kubectl config set clusters.local.certificate-authority-data "${K8S_CERTIFICATE_AUTHORITY_DATA}"
- kubectl config set-credentials local --token="${K8S_USER_TOKEN}"
- kubectl config set-context local --cluster=local --user=local
- kubectl config use-context local
- kubectl --insecure-skip-tls-verify version
- kubectl get deployments ujse -n ujse-dev --insecure-skip-tls-verify
- kubectl rollout restart deployment ujse -n ujse-dev --insecure-skip-tls-verify
tags:
- docker
only:
- kubernetes
when: manual
# the first stage of our build will use a maven 3.6.1 parent image
FROM maven:3.6.1-jdk-11 as builder
COPY bpmn_libs /bpmn_libs
RUN mvn install:install-file -Dfile=./bpmn_libs/org.eclipse.bpmn2-0.8.2-jboss.jar -DgroupId=org.eclipse -DartifactId=org.eclipse.bpmn2 -Dversion=0.8.2-jboss -Dpackaging=jar
COPY pom.xml .
RUN mvn dependency:go-offline && \
mvn de.qaware.maven:go-offline-maven-plugin:resolve-dependencies -B
COPY src /src
RUN mvn -o package -DskipTests
# the second stage of our build
FROM openjdk:11-jdk-slim
EXPOSE 8080
# copy only the artifacts we need from the first stage and discard the rest
COPY --from=builder /target/ujseEngine-1.0.0.jar /ujse.jar
COPY ./docker_info/ujse/etc/keycloak/keystore.jks /etc/keycloak/keystore.jks
ENTRYPOINT ["java","-jar","ujse.jar"]
LICENSE 0 → 100644
EUROPEAN UNION PUBLIC LICENCE v. 1.2
EUPL © the European Union 2007, 2016
This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined
below) which is provided under the terms of this Licence. Any use of the Work,
other than as authorised under this Licence is prohibited (to the extent such
use is covered by a right of the copyright holder of the Work).
The Work is provided under the terms of this Licence when the Licensor (as
defined below) has placed the following notice immediately following the
copyright notice for the Work:
Licensed under the EUPL
or has expressed by any other means his willingness to license under the EUPL.
1. Definitions
In this Licence, the following terms have the following meaning:
- ‘The Licence’: this Licence.
- ‘The Original Work’: the work or software distributed or communicated by the
Licensor under this Licence, available as Source Code and also as Executable
Code as the case may be.
- ‘Derivative Works’: the works or software that could be created by the
Licensee, based upon the Original Work or modifications thereof. This Licence
does not define the extent of modification or dependence on the Original Work
required in order to classify a work as a Derivative Work; this extent is
determined by copyright law applicable in the country mentioned in Article 15.
- ‘The Work’: the Original Work or its Derivative Works.
- ‘The Source Code’: the human-readable form of the Work which is the most
convenient for people to study and modify.
- ‘The Executable Code’: any code which has generally been compiled and which is
meant to be interpreted by a computer as a program.
- ‘The Licensor’: the natural or legal person that distributes or communicates
the Work under the Licence.
- ‘Contributor(s)’: any natural or legal person who modifies the Work under the
Licence, or otherwise contributes to the creation of a Derivative Work.
- ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
the Work under the terms of the Licence.
- ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
renting, distributing, communicating, transmitting, or otherwise making
available, online or offline, copies of the Work or providing access to its
essential functionalities at the disposal of any other natural or legal
person.
2. Scope of the rights granted by the Licence
The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
sublicensable licence to do the following, for the duration of copyright vested
in the Original Work:
- use the Work in any circumstance and for all usage,
- reproduce the Work,
- modify the Work, and make Derivative Works based upon the Work,
- communicate to the public, including the right to make available or display
the Work or copies thereof to the public and perform publicly, as the case may
be, the Work,
- distribute the Work or copies thereof,
- lend and rent the Work or copies thereof,
- sublicense rights in the Work or copies thereof.
Those rights can be exercised on any media, supports and formats, whether now
known or later invented, as far as the applicable law permits so.
In the countries where moral rights apply, the Licensor waives his right to
exercise his moral right to the extent allowed by law in order to make effective
the licence of the economic rights here above listed.
The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to
any patents held by the Licensor, to the extent necessary to make use of the
rights granted on the Work under this Licence.
3. Communication of the Source Code
The Licensor may provide the Work either in its Source Code form, or as
Executable Code. If the Work is provided as Executable Code, the Licensor
provides in addition a machine-readable copy of the Source Code of the Work
along with each copy of the Work that the Licensor distributes or indicates, in
a notice following the copyright notice attached to the Work, a repository where
the Source Code is easily and freely accessible for as long as the Licensor
continues to distribute or communicate the Work.
4. Limitations on copyright
Nothing in this Licence is intended to deprive the Licensee of the benefits from
any exception or limitation to the exclusive rights of the rights owners in the
Work, of the exhaustion of those rights or of other applicable limitations
thereto.
5. Obligations of the Licensee
The grant of the rights mentioned above is subject to some restrictions and
obligations imposed on the Licensee. Those obligations are the following:
Attribution right: The Licensee shall keep intact all copyright, patent or
trademarks notices and all notices that refer to the Licence and to the
disclaimer of warranties. The Licensee must include a copy of such notices and a
copy of the Licence with every copy of the Work he/she distributes or
communicates. The Licensee must cause any Derivative Work to carry prominent
notices stating that the Work has been modified and the date of modification.
Copyleft clause: If the Licensee distributes or communicates copies of the
Original Works or Derivative Works, this Distribution or Communication will be
done under the terms of this Licence or of a later version of this Licence
unless the Original Work is expressly distributed only under this version of the
Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
(becoming Licensor) cannot offer or impose any additional terms or conditions on
the Work or Derivative Work that alter or restrict the terms of the Licence.
Compatibility clause: If the Licensee Distributes or Communicates Derivative
Works or copies thereof based upon both the Work and another work licensed under
a Compatible Licence, this Distribution or Communication can be done under the
terms of this Compatible Licence. For the sake of this clause, ‘Compatible
Licence’ refers to the licences listed in the appendix attached to this Licence.
Should the Licensee's obligations under the Compatible Licence conflict with
his/her obligations under this Licence, the obligations of the Compatible
Licence shall prevail.
Provision of Source Code: When distributing or communicating copies of the Work,
the Licensee will provide a machine-readable copy of the Source Code or indicate
a repository where this Source will be easily and freely available for as long
as the Licensee continues to distribute or communicate the Work.
Legal Protection: This Licence does not grant permission to use the trade names,
trademarks, service marks, or names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and
reproducing the content of the copyright notice.
6. Chain of Authorship
The original Licensor warrants that the copyright in the Original Work granted
hereunder is owned by him/her or licensed to him/her and that he/she has the
power and authority to grant the Licence.
Each Contributor warrants that the copyright in the modifications he/she brings
to the Work are owned by him/her or licensed to him/her and that he/she has the
power and authority to grant the Licence.
Each time You accept the Licence, the original Licensor and subsequent
Contributors grant You a licence to their contributions to the Work, under the
terms of this Licence.
7. Disclaimer of Warranty
The Work is a work in progress, which is continuously improved by numerous
Contributors. It is not a finished work and may therefore contain defects or
‘bugs’ inherent to this type of development.
For the above reason, the Work is provided under the Licence on an ‘as is’ basis
and without warranties of any kind concerning the Work, including without
limitation merchantability, fitness for a particular purpose, absence of defects
or errors, accuracy, non-infringement of intellectual property rights other than
copyright as stated in Article 6 of this Licence.
This disclaimer of warranty is an essential part of the Licence and a condition
for the grant of any rights to the Work.
8. Disclaimer of Liability
Except in the cases of wilful misconduct or damages directly caused to natural
persons, the Licensor will in no event be liable for any direct or indirect,
material or moral, damages of any kind, arising out of the Licence or of the use
of the Work, including without limitation, damages for loss of goodwill, work
stoppage, computer failure or malfunction, loss of data or any commercial
damage, even if the Licensor has been advised of the possibility of such damage.
However, the Licensor will be liable under statutory product liability laws as
far such laws apply to the Work.
9. Additional agreements
While distributing the Work, You may choose to conclude an additional agreement,
defining obligations or services consistent with this Licence. However, if
accepting obligations, You may act only on your own behalf and on your sole
responsibility, not on behalf of the original Licensor or any other Contributor,
and only if You agree to indemnify, defend, and hold each Contributor harmless
for any liability incurred by, or claims asserted against such Contributor by
the fact You have accepted any warranty or additional liability.
10. Acceptance of the Licence
The provisions of this Licence can be accepted by clicking on an icon ‘I agree’
placed under the bottom of a window displaying the text of this Licence or by
affirming consent in any other similar way, in accordance with the rules of
applicable law. Clicking on that icon indicates your clear and irrevocable
acceptance of this Licence and all of its terms and conditions.
Similarly, you irrevocably accept this Licence and all of its terms and
conditions by exercising any rights granted to You by Article 2 of this Licence,
such as the use of the Work, the creation by You of a Derivative Work or the
Distribution or Communication by You of the Work or copies thereof.
11. Information to the public
In case of any Distribution or Communication of the Work by means of electronic
communication by You (for example, by offering to download the Work from a
remote location) the distribution channel or media (for example, a website) must
at least provide to the public the information requested by the applicable law
regarding the Licensor, the Licence and the way it may be accessible, concluded,
stored and reproduced by the Licensee.
12. Termination of the Licence
The Licence and the rights granted hereunder will terminate automatically upon
any breach by the Licensee of the terms of the Licence.
Such a termination will not terminate the licences of any person who has
received the Work from the Licensee under the Licence, provided such persons
remain in full compliance with the Licence.
13. Miscellaneous
Without prejudice of Article 9 above, the Licence represents the complete
agreement between the Parties as to the Work.
If any provision of the Licence is invalid or unenforceable under applicable
law, this will not affect the validity or enforceability of the Licence as a
whole. Such provision will be construed or reformed so as necessary to make it
valid and enforceable.
The European Commission may publish other linguistic versions or new versions of
this Licence or updated versions of the Appendix, so far this is required and
reasonable, without reducing the scope of the rights granted by the Licence. New
versions of the Licence will be published with a unique version number.
All linguistic versions of this Licence, approved by the European Commission,
have identical value. Parties can take advantage of the linguistic version of
their choice.
14. Jurisdiction
Without prejudice to specific agreement between parties,
- any litigation resulting from the interpretation of this License, arising
between the European Union institutions, bodies, offices or agencies, as a
Licensor, and any Licensee, will be subject to the jurisdiction of the Court
of Justice of the European Union, as laid down in article 272 of the Treaty on
the Functioning of the European Union,
- any litigation arising between other parties and resulting from the
interpretation of this License, will be subject to the exclusive jurisdiction
of the competent court where the Licensor resides or conducts its primary
business.
15. Applicable Law
Without prejudice to specific agreement between parties,
- this Licence shall be governed by the law of the European Union Member State
where the Licensor has his seat, resides or has his registered office,
- this licence shall be governed by Belgian law if the Licensor has no seat,
residence or registered office inside a European Union Member State.
Appendix
‘Compatible Licences’ according to Article 5 EUPL are:
- GNU General Public License (GPL) v. 2, v. 3
- GNU Affero General Public License (AGPL) v. 3
- Open Software License (OSL) v. 2.1, v. 3.0
- Eclipse Public License (EPL) v. 1.0
- CeCILL v. 2.0, v. 2.1
- Mozilla Public Licence (MPL) v. 2
- GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
- Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
works other than software
- European Union Public Licence (EUPL) v. 1.1, v. 1.2
- Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
Reciprocity (LiLiQ-R+).
The European Commission may update this Appendix to later versions of the above
licences without producing a new version of the EUPL, as long as they provide
the rights granted in Article 2 of this Licence and protect the covered Source
Code from exclusive appropriation.
All other changes or additions to this Appendix require the production of a new
EUPL version.
# User Journey Services Engine
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://git.code.tecnalia.com/across/private/user-journey-service-delivery/userjourneyservicesengine.git
git branch -M main
git push -uf origin main
```
## Integrate with your tools
- [ ] [Set up project integrations](https://git.code.tecnalia.com/across/private/user-journey-service-delivery/userjourneyservicesengine/-/settings/integrations)
## Collaborate with your team
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
## Test and Deploy
Use the built-in continuous integration in GitLab.
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
<?xml version="1.0" encoding="UTF-8"?>
<!-- origin at X=0.0 Y=0.0 -->
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:ext="http://org.eclipse.bpmn2/ext" xmlns:xs="http://www.w3.org/2001/XMLSchema" id="Definitions_1" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1" targetNamespace="http://org.eclipse.bpmn2/default/process">
<bpmn2:process id="process_1" name="Default Process" isExecutable="false">
<bpmn2:startEvent id="StartEvent_1" name="Start Event 1">
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:endEvent id="EndEvent_1" name="End Event 1">
<bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:scriptTask id="ScriptTask_1" name="Script Task 1">
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_2" sourceRef="StartEvent_1" targetRef="ScriptTask_1"/>
<bpmn2:sequenceFlow id="SequenceFlow_3" sourceRef="ScriptTask_1" targetRef="EndEvent_1"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Default Process Diagram">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="process_1">
<bpmndi:BPMNShape id="BPMNShape_1" bpmnElement="StartEvent_1">
<dc:Bounds height="36.0" width="36.0" x="100.0" y="100.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_1" labelStyle="BPMNLabelStyle_1">
<dc:Bounds height="34.0" width="80.0" x="78.0" y="136.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_2" bpmnElement="EndEvent_1">
<dc:Bounds height="36.0" width="36.0" x="500.0" y="100.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_2" labelStyle="BPMNLabelStyle_1">
<dc:Bounds height="17.0" width="79.0" x="479.0" y="136.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1" isExpanded="true">
<dc:Bounds height="61.0" width="139.0" x="211.0" y="160.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_3" labelStyle="BPMNLabelStyle_1">
<dc:Bounds height="17.0" width="86.0" x="237.0" y="182.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_1" targetElement="BPMNShape_ScriptTask_1">
<di:waypoint xsi:type="dc:Point" x="118.0" y="136.0"/>
<di:waypoint xsi:type="dc:Point" x="118.0" y="190.0"/>
<di:waypoint xsi:type="dc:Point" x="211.0" y="190.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_4"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_2">
<di:waypoint xsi:type="dc:Point" x="350.0" y="190.0"/>
<di:waypoint xsi:type="dc:Point" x="518.0" y="190.0"/>
<di:waypoint xsi:type="dc:Point" x="518.0" y="136.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_5"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
<bpmndi:BPMNLabelStyle id="BPMNLabelStyle_1">
<dc:Font name="arial" size="9.0"/>
</bpmndi:BPMNLabelStyle>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1">
<process id="def_process" name="Default Process" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private">
<startEvent id="def_start_event" name="Default Start Event">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>Default Start Event</tns:metaValue>
</tns:metaData>
</extensionElements>
</startEvent>
<endEvent id="def_end_event" name="Default End Event">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>Default End Event</tns:metaValue>
</tns:metaData>
</extensionElements>
</endEvent>
<serviceTask id="service_task_search_1" name="Search for universities">
<documentation>serviceId:search_1</documentation>
</serviceTask>
<serviceTask id="service_task_funding_1" name="Apply for funding">
<documentation>serviceId:funding_1</documentation>
</serviceTask>
<serviceTask id="service_task_application_1" name="Apply at university">
<documentation>serviceId:application_1</documentation>
</serviceTask>
<sequenceFlow id="sequence_flow_search_1" sourceRef="def_start_event" targetRef="service_task_search_1"></sequenceFlow>
<sequenceFlow id="sequence_flow_funding_1" sourceRef="service_task_search_1" targetRef="service_task_funding_1"></sequenceFlow>
<sequenceFlow id="sequence_flow_application_1" sourceRef="service_task_funding_1" targetRef="service_task_application_1"></sequenceFlow>
<sequenceFlow id="sequence_flow_def_end_event" sourceRef="service_task_application_1" targetRef="def_end_event"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_def_process">
<bpmndi:BPMNPlane bpmnElement="def_process" id="BPMNPlane_def_process">
<bpmndi:BPMNShape bpmnElement="def_start_event" id="BPMNShape_def_start_event">
<omgdc:Bounds height="36.0" width="36.0" x="0.0" y="15.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="def_end_event" id="BPMNShape_def_end_event">
<omgdc:Bounds height="36.0" width="36.0" x="645.0" y="15.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="service_task_search_1" id="BPMNShape_service_task_search_1">
<omgdc:Bounds height="65.0" width="127.0" x="93.0" y="1.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="service_task_funding_1" id="BPMNShape_service_task_funding_1">
<omgdc:Bounds height="65.0" width="127.0" x="277.0" y="1.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="service_task_application_1" id="BPMNShape_service_task_application_1">
<omgdc:Bounds height="65.0" width="127.0" x="461.0" y="1.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequence_flow_search_1" id="BPMNEdge_sequence_flow_search_1">
<omgdi:waypoint x="36.0" y="33.0"></omgdi:waypoint>
<omgdi:waypoint x="93.0" y="33.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequence_flow_funding_1" id="BPMNEdge_sequence_flow_funding_1">
<omgdi:waypoint x="220.0" y="33.0"></omgdi:waypoint>
<omgdi:waypoint x="277.0" y="33.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequence_flow_application_1" id="BPMNEdge_sequence_flow_application_1">
<omgdi:waypoint x="404.0" y="33.0"></omgdi:waypoint>
<omgdi:waypoint x="461.0" y="33.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequence_flow_def_end_event" id="BPMNEdge_sequence_flow_def_end_event">
<omgdi:waypoint x="588.0" y="33.0"></omgdi:waypoint>
<omgdi:waypoint x="645.0" y="33.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1">
<process id="example" name="Example" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private">
<startEvent id="_1" name="Start Event">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>Start Event</tns:metaValue>
</tns:metaData>
</extensionElements>
</startEvent>
<endEvent id="EndEvent_1" name="End Event ">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>End Event 1</tns:metaValue>
</tns:metaData>
</extensionElements>
</endEvent>
<scriptTask id="stepId2" name="Fill out application &amp; submit it" scriptFormat="http://www.java.com/java" activiti:autoStoreVariables="false">
<documentation>serviceId:992c3775-c79d-4d9d-9219-3b4166de34f5</documentation>
<script>System.out.println("Welcome to license check");</script>
</scriptTask>
<sequenceFlow id="flow2" sourceRef="stepId2" targetRef="EndEvent_1"></sequenceFlow>
<scriptTask id="stepId1" name="Search &amp; select university" scriptFormat="javascript" activiti:autoStoreVariables="false">
<documentation>serviceId:efab4474-9112-45e6-be69-a864df9d247c</documentation>
<script>System.out.println("Welcome to license check");</script>
</scriptTask>
<sequenceFlow id="flow3" sourceRef="stepId1" targetRef="stepId2"></sequenceFlow>
<sequenceFlow id="flow4" sourceRef="_1" targetRef="stepId1"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_example">
<bpmndi:BPMNPlane bpmnElement="example" id="BPMNPlane_example">
<bpmndi:BPMNShape bpmnElement="_1" id="BPMNShape__1">
<omgdc:Bounds height="36.0" width="36.0" x="70.0" y="77.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1">
<omgdc:Bounds height="36.0" width="36.0" x="720.0" y="77.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="stepId2" id="BPMNShape_stepId2">
<omgdc:Bounds height="65.0" width="127.0" x="460.0" y="61.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="stepId1" id="BPMNShape_stepId1">
<omgdc:Bounds height="65.0" width="127.0" x="221.0" y="61.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="587.0" y="93.0"></omgdi:waypoint>
<omgdi:waypoint x="720.0" y="95.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
<omgdi:waypoint x="348.0" y="93.0"></omgdi:waypoint>
<omgdi:waypoint x="460.0" y="93.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
<omgdi:waypoint x="106.0" y="95.0"></omgdi:waypoint>
<omgdi:waypoint x="221.0" y="93.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1">
<process id="example" name="Example" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private">
<startEvent id="_1" name="Start Event">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>Start Event</tns:metaValue>
</tns:metaData>
</extensionElements>
</startEvent>
<endEvent id="EndEvent_1" name="End Event ">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>End Event 1</tns:metaValue>
</tns:metaData>
</extensionElements>
</endEvent>
<scriptTask id="stepId1" name="Create an application" scriptFormat="javascript" activiti:autoStoreVariables="false">
<documentation>serviceId:992c3775-c79d-4d9d-9219-3b4166de34f7</documentation>
<script>System.out.println("Welcome to license check");</script>
</scriptTask>
<sequenceFlow id="flow4" sourceRef="_1" targetRef="stepId1"></sequenceFlow>
<sequenceFlow id="flow5" sourceRef="stepId1" targetRef="EndEvent_1"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_example">
<bpmndi:BPMNPlane bpmnElement="example" id="BPMNPlane_example">
<bpmndi:BPMNShape bpmnElement="_1" id="BPMNShape__1">
<omgdc:Bounds height="36.0" width="36.0" x="70.0" y="77.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1">
<omgdc:Bounds height="36.0" width="36.0" x="530.0" y="77.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="stepId1" id="BPMNShape_stepId1">
<omgdc:Bounds height="65.0" width="127.0" x="221.0" y="61.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
<omgdi:waypoint x="106.0" y="95.0"></omgdi:waypoint>
<omgdi:waypoint x="221.0" y="93.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
<omgdi:waypoint x="348.0" y="93.0"></omgdi:waypoint>
<omgdi:waypoint x="530.0" y="95.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1">
<process id="example" name="Example" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private">
<startEvent id="_1" name="Start Event">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>Start Event</tns:metaValue>
</tns:metaData>
</extensionElements>
</startEvent>
<endEvent id="EndEvent_1" name="End Event ">
<extensionElements>
<tns:metaData name="elementname">
<tns:metaValue>End Event 1</tns:metaValue>
</tns:metaData>
</extensionElements>
</endEvent>
<scriptTask id="stepId2" name="Fill out application &amp; submit it" scriptFormat="http://www.java.com/java" activiti:autoStoreVariables="false">
<documentation>serviceId:992c3775-c79d-4d9d-9219-3b4166de34f5</documentation>
<script>System.out.println("Welcome to license check");</script>
</scriptTask>
<sequenceFlow id="flow2" sourceRef="stepId2" targetRef="EndEvent_1"></sequenceFlow>
<scriptTask id="stepId1" name="Search &amp; select university" scriptFormat="javascript" activiti:autoStoreVariables="false">
<documentation>serviceId:efab4474-9112-45e6-be69-a864df9d247cnoexiste</documentation>
<script>System.out.println("Welcome to license check");</script>
</scriptTask>
<sequenceFlow id="flow3" sourceRef="stepId1" targetRef="stepId2"></sequenceFlow>
<sequenceFlow id="flow4" sourceRef="_1" targetRef="stepId1"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_example">
<bpmndi:BPMNPlane bpmnElement="example" id="BPMNPlane_example">
<bpmndi:BPMNShape bpmnElement="_1" id="BPMNShape__1">
<omgdc:Bounds height="36.0" width="36.0" x="70.0" y="77.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1">
<omgdc:Bounds height="36.0" width="36.0" x="720.0" y="77.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="stepId2" id="BPMNShape_stepId2">
<omgdc:Bounds height="65.0" width="127.0" x="460.0" y="61.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="stepId1" id="BPMNShape_stepId1">
<omgdc:Bounds height="65.0" width="127.0" x="221.0" y="61.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="587.0" y="93.0"></omgdi:waypoint>
<omgdi:waypoint x="720.0" y="95.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
<omgdi:waypoint x="348.0" y="93.0"></omgdi:waypoint>
<omgdi:waypoint x="460.0" y="93.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
<omgdi:waypoint x="106.0" y="95.0"></omgdi:waypoint>
<omgdi:waypoint x="221.0" y="93.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
File added
version: '3.5'
services:
postgres:
image: postgres
ports:
- 5434:5432
env_file:
- ./postgres.env
networks:
- ujse
volumes:
- app:/var/lib/postgresql/data
extra_hosts:
- "across.digital.tecnalia.dev:172.26.41.211"
ujse:
image: 094360380/wp4-user-journey-service-delivery:latest
build:
context: .
args:
BUILDKIT_INLINE_CACHE: 1 # For multistage docker
cache_from:
- 094360380/wp4-user-journey-service-delivery:latest
container_name: 'ujse-container'
ports:
- 8089:8080
- 443:443
env_file:
- ./ujse.env
networks:
- ujse
depends_on:
- postgres
extra_hosts:
- "across.digital.tecnalia.dev:172.26.41.211"
networks:
ujse:
volumes:
app: {}
File added
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "2"
field.cattle.io/description: postgreql for ujse component
field.cattle.io/publicEndpoints: '[{"port":31907,"protocol":"TCP","serviceName":"ujse-dev:ujse-postgresql-nodeport","allNodes":true}]'
creationTimestamp: "2022-03-24T15:23:59Z"
generation: 3
labels:
workload.user.cattle.io/workloadselector: apps.deployment-ujse-dev-ujse-postgresql
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:field.cattle.io/description: {}
f:field.cattle.io/publicEndpoints: {}
f:labels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:spec:
f:progressDeadlineSeconds: {}
f:replicas: {}
f:revisionHistoryLimit: {}
f:selector: {}
f:strategy:
f:rollingUpdate:
.: {}
f:maxSurge: {}
f:maxUnavailable: {}
f:type: {}
f:template:
f:metadata:
f:annotations:
.: {}
f:cattle.io/timestamp: {}
f:labels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:spec:
f:affinity: {}
f:containers:
k:{"name":"container-0"}:
.: {}
f:env:
.: {}
k:{"name":"POSTGRES_DB"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"POSTGRES_PASSWORD"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"POSTGRES_USER"}:
.: {}
f:name: {}
f:value: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":5432,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:volumeMounts:
.: {}
k:{"mountPath":"/var/lib/postgresql/data"}:
.: {}
f:mountPath: {}
f:name: {}
f:subPath: {}
f:dnsConfig: {}
f:dnsPolicy: {}
f:hostAliases:
.: {}
k:{"ip":"172.26.41.211"}:
.: {}
f:hostnames: {}
f:ip: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
f:volumes:
.: {}
k:{"name":"ujse-postgresql"}:
.: {}
f:name: {}
f:persistentVolumeClaim:
.: {}
f:claimName: {}
manager: rancher
operation: Update
time: "2022-07-13T06:03:16Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:deployment.kubernetes.io/revision: {}
f:status:
f:conditions:
.: {}
k:{"type":"Available"}:
.: {}
f:type: {}
k:{"type":"Progressing"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
f:observedGeneration: {}
manager: kube-controller-manager
operation: Update
time: "2022-10-06T14:29:10Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:status:
f:availableReplicas: {}
f:conditions:
k:{"type":"Available"}:
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:readyReplicas: {}
f:replicas: {}
f:updatedReplicas: {}
manager: kube-controller-manager
operation: Update
subresource: status
time: "2022-10-06T14:38:59Z"
name: ujse-postgresql
namespace: ujse-dev
resourceVersion: "160830546"
uid: 74f46a80-88bc-4e5c-aadf-eb64a8beb09b
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: apps.deployment-ujse-dev-ujse-postgresql
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
cattle.io/timestamp: "2022-07-13T06:03:16Z"
creationTimestamp: null
labels:
workload.user.cattle.io/workloadselector: apps.deployment-ujse-dev-ujse-postgresql
spec:
affinity: {}
containers:
- env:
- name: POSTGRES_DB
value: ujse
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: "12345"
image: postgres:14.2
imagePullPolicy: IfNotPresent
name: container-0
ports:
- containerPort: 5432
name: ujse-postgresql
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: ujse-postgresql
subPath: ujse-postgresql-volume
dnsConfig: {}
dnsPolicy: ClusterFirst
hostAliases:
- hostnames:
- across.digital.tecnalia.dev
ip: 172.26.41.211
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: ujse-postgresql
persistentVolumeClaim:
claimName: ujse-postgresql-pv-claim
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2022-03-24T15:23:59Z"
lastUpdateTime: "2022-07-13T06:03:40Z"
message: ReplicaSet "ujse-postgresql-9858794fc" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
- lastTransitionTime: "2022-10-06T14:38:59Z"
lastUpdateTime: "2022-10-06T14:38:59Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 3
readyReplicas: 1
replicas: 1
updatedReplicas: 1
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "28"
field.cattle.io/description: ujse component
field.cattle.io/publicEndpoints: '[{"addresses":["206.189.242.59"],"port":443,"protocol":"HTTPS","serviceName":"ujse-dev:ujse","ingressName":"ujse-dev:ujse-ingress","hostname":"ujse-ujse-dev.k8s.across-h2020.eu","allNodes":false}]'
creationTimestamp: "2022-03-24T15:29:18Z"
generation: 28
labels:
workload.user.cattle.io/workloadselector: apps.deployment-ujse-dev-ujse
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:spec:
f:template:
f:metadata:
f:annotations:
f:kubectl.kubernetes.io/restartedAt: {}
manager: kubectl-rollout
operation: Update
time: "2022-03-29T08:52:21Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:field.cattle.io/description: {}
f:field.cattle.io/publicEndpoints: {}
f:labels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:spec:
f:progressDeadlineSeconds: {}
f:replicas: {}
f:revisionHistoryLimit: {}
f:selector: {}
f:strategy:
f:rollingUpdate:
.: {}
f:maxSurge: {}
f:maxUnavailable: {}
f:type: {}
f:template:
f:metadata:
f:annotations:
.: {}
f:cattle.io/timestamp: {}
f:labels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:spec:
f:affinity: {}
f:containers:
k:{"name":"container-0"}:
.: {}
f:env:
.: {}
k:{"name":"KEYCLOAK_AUTH_SERVER_URL"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_BEARER_ONLY"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_CONFIDENTIAL_PORT"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_ENABLED"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_PUBLIC_CLIENT"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_REALM"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_RESOURCE"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_SSL_REQUIRED"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_USE_RESOURCE_ROLE_MAPPINGS"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"KEYCLOAK_VERIFY_TOKEN_AUDIENCE"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_DATASOURCE_DRIVER-CLASS-NAME"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_DATASOURCE_PASSWORD"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_DATASOURCE_PLATFORM"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_DATASOURCE_URL"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_DATASOURCE_USERNAME"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_JPA_DATABASE-PLATFORM"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_JPA_HIBERNATE_DDL-AUTO"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"TRANSPARENCY_DASHBOARD_MAIN_URI"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SERVICE_CATALOG_URI_GETSERVICEINFOENG"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SERVICE_CATALOG_URI_GETSERVICESINFOENG"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"SERVICE_CATALOG_URI_GETPERSONALDATASERVICESENG"}:
.: {}
f:name: {}
f:value: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":8080,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:dnsConfig: {}
f:dnsPolicy: {}
f:hostAliases:
.: {}
k:{"ip":"172.26.41.211"}:
.: {}
f:hostnames: {}
f:ip: {}
f:imagePullSecrets:
.: {}
k:{"name":"across-registry"}: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
manager: rancher
operation: Update
time: "2022-05-06T16:24:45Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:deployment.kubernetes.io/revision: {}
f:status:
f:collisionCount: {}
f:conditions:
.: {}
k:{"type":"Available"}:
.: {}
f:type: {}
k:{"type":"Progressing"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
f:observedGeneration: {}
manager: kube-controller-manager
operation: Update
time: "2022-10-06T14:30:04Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:status:
f:availableReplicas: {}
f:conditions:
k:{"type":"Available"}:
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:readyReplicas: {}
f:replicas: {}
f:updatedReplicas: {}
manager: kube-controller-manager
operation: Update
subresource: status
time: "2022-10-06T14:39:09Z"
name: ujse
namespace: ujse-dev
resourceVersion: "160830703"
uid: 26a7bf0b-b75f-4d8f-8b73-47fad01fbb5b
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: apps.deployment-ujse-dev-ujse
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
cattle.io/timestamp: "2022-07-13T06:03:13Z"
kubectl.kubernetes.io/restartedAt: "2022-05-10T14:55:14Z"
creationTimestamp: null
labels:
workload.user.cattle.io/workloadselector: apps.deployment-ujse-dev-ujse
spec:
affinity: {}
containers:
- env:
- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://ujse-postgresql/ujse
- name: SPRING_DATASOURCE_USERNAME
value: postgres
- name: SPRING_DATASOURCE_PASSWORD
value: "12345"
- name: SPRING_DATASOURCE_PLATFORM
value: postgres
- name: SPRING_DATASOURCE_DRIVER-CLASS-NAME
value: org.postgresql.Driver
- name: SPRING_JPA_DATABASE-PLATFORM
value: org.hibernate.dialect.PostgreSQLDialect
- name: SPRING_JPA_HIBERNATE_DDL-AUTO
value: none
- name: SERVICE_CATALOG_URI_GETSERVICEINFOENG
value: https://service-catalogue-server-dev.k8s.across-h2020.eu/service-catalogue/api/v2/services/json/**
- name: SERVICE_CATALOG_URI_GETSERVICESINFOENG
value: https://service-catalogue-server-dev.k8s.across-h2020.eu/service-catalogue/api/v2/services/specified/**?
- name: SERVICE_CATALOG_URI_GETPERSONALDATASERVICESENG
value: https://service-catalogue-server-dev.k8s.across-h2020.eu/service-catalogue/api/v2/services/isPersonalDataHandling
- name: TRANSPARENCY_DASHBOARD_MAIN_URI
value: https://transparency-dashboard-be-td-dev.k8s.across-h2020.eu/api/rest/v1
- name: SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI
value: https://keycloak-security-dev.k8s.across-h2020.eu/realms/across-dev
- name: KEYCLOAK_AUTH_SERVER_URL
value: https://keycloak-security-dev.k8s.across-h2020.eu
- name: KEYCLOAK_REALM
value: across-dev
- name: KEYCLOAK_RESOURCE
value: ujse
- name: KEYCLOAK_PUBLIC_CLIENT
value: "true"
- name: KEYCLOAK_ENABLED
value: "true"
- name: KEYCLOAK_BEARER_ONLY
value: "TRUE"
- name: KEYCLOAK_SSL_REQUIRED
value: NONE
- name: KEYCLOAK_VERIFY_TOKEN_AUDIENCE
value: "TRUE"
- name: KEYCLOAK_USE_RESOURCE_ROLE_MAPPINGS
value: "TRUE"
- name: KEYCLOAK_CONFIDENTIAL_PORT
value: "0"
image: 094360380/wp4-user-journey-service-delivery:latest
imagePullPolicy: Always
name: container-0
ports:
- containerPort: 8080
name: ujse
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsConfig: {}
dnsPolicy: ClusterFirst
hostAliases:
- hostnames:
- across.digital.tecnalia.dev
ip: 172.26.41.211
imagePullSecrets:
- name: across-registry
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
collisionCount: 1
conditions:
- lastTransitionTime: "2022-03-24T15:29:18Z"
lastUpdateTime: "2022-07-13T06:03:27Z"
message: ReplicaSet "ujse-d8d84f775" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
- lastTransitionTime: "2022-10-06T14:39:09Z"
lastUpdateTime: "2022-10-06T14:39:09Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 28
readyReplicas: 1
replicas: 1
updatedReplicas: 1
pom.xml 0 → 100644
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId>
<artifactId>ujseEngine</artifactId>
<packaging>jar</packaging>
<name>User Journey Services Engine</name>
<version>1.0.0</version>
<properties>
<java.version>11</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<maven.minimum.version>3.3.9</maven.minimum.version>
<!-- <java.version>1.7</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>-->
<springfox-version>3.0.0</springfox-version>
<okhttp.version>4.2.2</okhttp.version>
<swagger-annotations.version>1.5.20</swagger-annotations.version>
<de.fraunhofer.iais.eis.ids.infomodel.validator.version>4.0.6</de.fraunhofer.iais.eis.ids.infomodel.validator.version>
<de.fraunhofer.iais.eis.ids.infomodel.version>4.0.6</de.fraunhofer.iais.eis.ids.infomodel.version>
<de.fraunhofer.iais.eis.ids.infomodel.serializer.version>4.0.6</de.fraunhofer.iais.eis.ids.infomodel.serializer.version>
<runtime.version>7.0.0.Final</runtime.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<!-- <version>2.1.16.RELEASE</version>-->
<version>2.4.3</version>
</parent>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
<dependency>
<groupId>com.github.joschi.jackson</groupId>
<artifactId>jackson-datatype-threetenbp</artifactId>
<version>2.6.4</version>
</dependency> <!-- Bean Validation API support -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.plugin</groupId>
<artifactId>spring-plugin-core</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20190722</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>${swagger-annotations.version}</version>
</dependency>
<!-- swagger_ui -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.5.9</version>
</dependency>
<!-- oauth -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-client</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
<version>2.5.0</version>
</dependency>
<!-- Keycloak -->
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-spring-boot-starter</artifactId>
<version>18.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- Posgres Database -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>2.4.3</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>5.4.5</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>io.swagger.parser.v3</groupId>
<artifactId>swagger-parser-v3</artifactId>
<version>2.0.17</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.3.16</version>
<type>jar</type>
</dependency>
<!-- https://mvnrepository.com/artifact/com.auth0/java-jwt -->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>4.3.0</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.keycloak.bom</groupId>
<artifactId>keycloak-adapter-bom</artifactId>
<version>18.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
POSTGRES_USER=postgres
POSTGRES_PASSWORD=12345
POSTGRES_DB=ujse
package com.tecnalia.across;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import com.fasterxml.jackson.databind.util.ISO8601Utils;
import java.text.FieldPosition;
import java.util.Date;
public class RFC3339DateFormat extends ISO8601DateFormat {
private static final long serialVersionUID = 1L;
// Same as ISO8601DateFormat but serializing milliseconds.
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
String value = ISO8601Utils.format(date, true);
toAppendTo.append(value);
return toAppendTo;
}
}
\ No newline at end of file
package com.tecnalia.across;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.servers.Server;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Properties;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.ExitCodeGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = { "com.tecnalia.across", "com.tecnalia.across.ujse.api" , "com.tecnalia.across.ujse.configuration" })
public class Swagger2SpringBoot {
public static void main(String[] args) throws Exception {
new SpringApplication(Swagger2SpringBoot.class).run(args);
}
@Bean
public OpenAPI openApi(@Value("${server.servlet.context-path}") String contextPath,
@Value("${spring.security.oauth2.resourceserver.jwt.issuer-uri}") String issuerUri) {
return new OpenAPI()
.info(new Info()
.title("Across UJSE")
.description("Api Documentation")
.termsOfService("")
.version("1.0")
.license(new License()
.name("Apache 2.0")
.url("http://www.apache.org/licenses/LICENSE-2.0"))
.contact(new io.swagger.v3.oas.models.info.Contact()
.email("")))
.addServersItem(new Server().url(contextPath))
.components(new Components()
.addSecuritySchemes("openid-connect",
new SecurityScheme().type(SecurityScheme.Type.OPENIDCONNECT)
.openIdConnectUrl(issuerUri + "/.well-known/openid-configuration"))
.addSecuritySchemes("bearer-jwt",
new SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("bearer")
.bearerFormat("JWT")))
.addSecurityItem(new SecurityRequirement().addList("bearer-jwt", Arrays.asList("read", "write")))
.addSecurityItem(new SecurityRequirement().addList("openid-connect", Arrays.asList("read", "write")));
}
}
package com.tecnalia.across.ujse.api;
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2022-01-24T07:45:21.053Z[GMT]")
public class ApiException extends Exception {
private int code;
public ApiException (int code, String msg) {
super(msg);
this.code = code;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment