Giter VIP home page Giter VIP logo

Comments (7)

kostobog avatar kostobog commented on July 1, 2024

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.

To copy a configuration:

  1. go to https://kbss.felk.cvut.cz/jenkins/view/19MSMT/ and click New Item link in the menu on the left.
  2. specify the name of the new deployment
  3. 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.

Matthew-Kulich avatar Matthew-Kulich commented on July 1, 2024

Thanks for detailed instructions.
Unfortunately i don't have permissions to change default branch to main but everything else is done.

from fta-fmea.

blcham avatar blcham commented on July 1, 2024

@Matthew-Kulich you should have it now.

from fta-fmea.

Matthew-Kulich avatar Matthew-Kulich commented on July 1, 2024

@blcham Thanks, can you also give me acces to ui repository, please

from fta-fmea.

blcham avatar blcham commented on July 1, 2024

@Matthew-Kulich done

from fta-fmea.

blcham avatar blcham commented on July 1, 2024

Thanks, seems to work correctly, closing the issue.

from fta-fmea.

blcham avatar blcham commented on July 1, 2024

@kostobog

from fta-fmea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.