Comments (7)
To create a new deployment follow these steps:
KBSS
Prepare deployment configuration in KBSS
Deployment configurations are located in - /opt/projects/19msmt/tool-deployment/deployments
copy one of the configurations folders (those that end with -config) and make the following changes in the :
- rename the copied config folder. The folder name should end with -config. The part of the name without -config is used in the Jenkins deployment.
- in ./.env.prod set BASE_API_URL to the URL where the new deployment will be accessible.
- in ./WEB-INF/classes/application.yml configure the triple store repository
Configure Apache 2
Check the apache2 configuration file /etc/apache2/sites-enabled/000-kbss.felk.cvut.cz.conf
Find the existing element of fta-fmea server
Copy the element and updated the properties:
- the new location accessible, e.g. /fta-fmea-server
- the ProxyPass properties. Change the name to the new context of the deployment. The host and port are the same (unless the local tomcat/appserver has changed)
Context of the deployment is constructed from the
Jenkins
Create deployment configurations in jenkins
Copy the configurations for the backend and the server. Name the new deployment scripts fta-fmea and fta-fmea-ui for the backend and ui respectively.
- https://kbss.felk.cvut.cz/jenkins/view/19MSMT/job/fta-fmea-avic/
- https://kbss.felk.cvut.cz/jenkins/view/19MSMT/job/fta-fmea-ui-avic/
To copy a configuration:
- go to https://kbss.felk.cvut.cz/jenkins/view/19MSMT/ and click New Item link in the menu on the left.
- specify the name of the new deployment
- scroll down to the Copy from field and type the name of the deployment to copy, e.g. fta-fmea-avic
To open the configuration of a particular project go to the project page and click on the configure link in the menu on the left.
Update Backend Deployment
In the copied backend deployment configuration update the following fields:
- change description to specify that this is a deployment for the faculty of transportation.
- in the Source Code Management section set branches to build to main
- in the Build section in the second Execute shell block in the Command field change the deployment name parameter (the second from the right)
Update Client Deployment
In the copied client deployment configuration update the following fields:
- change description to specify that this is a deployment for the faculty of transportation.
- in the Source Code Management section set branches to build to main
- in the Build section in the Command field change the profile command update the last parameter which refers to the deployment configuration without the trailing "-config".
NOTE
The deployment name parameter is used to
- construct the location of the deployment configuration on KBSS.
- construct the context of the client application
- construct the context of the server application
For example, if the deployment name is fta-fmea
- the deployment configuration should be located in the folder the fta-fmea-config
- the client will be deployed at /fta-fmea
- the server will be deployed at /fta-fmea-server
from fta-fmea.
Thanks for detailed instructions.
Unfortunately i don't have permissions to change default branch to main but everything else is done.
from fta-fmea.
@Matthew-Kulich you should have it now.
from fta-fmea.
@blcham Thanks, can you also give me acces to ui repository, please
from fta-fmea.
@Matthew-Kulich done
from fta-fmea.
Thanks, seems to work correctly, closing the issue.
from fta-fmea.
from fta-fmea.
Related Issues (20)
- Fix JOPA related issues in fta-fmea
- Extend Fault Event type model to contain additional attributes (quantity, ..) HOT 1
- Add Full Text Search API for Entities in backend of FTA FMEA Tool HOT 1
- FTA FMEA Backend Should Support Multilingual Data
- Cutsets API should return ordered list HOT 3
- FTA trees should be saved into separate graph context HOT 1
- Add Service API to Fetch FHA and SNS Fault Events for a Specific Aircraft Type
- Document one REST endpoint with springdoc
- Extend fault tree summary to support list view and global system selection
- Fix Issues with Fault Tree Summary Returned by FTA FMEA backend
- It is not possible to create new fault tree (internal server error) HOT 2
- Backend cannot persist fault tree with supertypes from a create fault tree request HOT 1
- Redesin and implement storing aircraft model into several contexts HOT 2
- Upgrade JOPA in dependencies in FTA-FMEA backend
- Fault Tree is broken and impossible to fetch
- Delete context when deleting fault tree or system
- It is not possible to create Fault Trees anymore HOT 3
- Update fault tree operational failure rates using analytics api
- Fault tree returned from server does not contain details
- Cannot call update operational data filter API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fta-fmea.