Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| tutorial:adm:czechidm_installation [2021/10/07 13:10] – [5. Create CzechIdM configuration] fiserp | tutorial:adm:czechidm_installation [2022/12/20 10:11] (current) – [9. Deploy the CzechIdM] kralikf | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| {{tag> | {{tag> | ||
| - | We expect that the server is prepared as described in [[tutorial: | + | We expect that the server is prepared as described in [[.: |
| This tutorial shows how to install full production-ready version of CzechIdM on standard software setup (Java, PostgreSQL, Tomcat, Apache HTTPd). If you are looking for a demo installation please see [[: | This tutorial shows how to install full production-ready version of CzechIdM on standard software setup (Java, PostgreSQL, Tomcat, Apache HTTPd). If you are looking for a demo installation please see [[: | ||
| - | <note tip>If you install CzechIdM on with Microsoft SQL Server database backend, please skip PostgreSQL-related sections and [[tutorial: | + | <note tip>If you install CzechIdM on with Microsoft SQL Server database backend, please skip PostgreSQL-related sections and [[.: |
| + | |||
| ==== 1. Create DB user and database in PostgreSQL ==== | ==== 1. Create DB user and database in PostgreSQL ==== | ||
| + | If czech database collation should be used, install the czech language packs. | ||
| + | <code bash> | ||
| + | dnf install langpacks-cs | ||
| + | </ | ||
| + | |||
| + | |||
| Switch the user from root to postgres and use **psql** to add the user and database into PostgreSQL: | Switch the user from root to postgres and use **psql** to add the user and database into PostgreSQL: | ||
| Line 52: | Line 60: | ||
| ==== 3. Configure environment properties. Select application profile ==== | ==== 3. Configure environment properties. Select application profile ==== | ||
| - | Edit the configuration file ''/ | + | Edit the configuration file ''/ |
| - | < | + | |
| Change the following line: | Change the following line: | ||
| + | |||
| <code bash> | <code bash> | ||
| Environment=' | Environment=' | ||
| + | |||
| </ | </ | ||
| + | |||
| into: | into: | ||
| + | |||
| <code bash> | <code bash> | ||
| - | Environment=' | + | Environment=' |
| </ | </ | ||
| Reload systemd after the changes: | Reload systemd after the changes: | ||
| + | |||
| <code bash> | <code bash> | ||
| systemctl daemon-reload | systemctl daemon-reload | ||
| + | |||
| </ | </ | ||
| + | |||
| + | |||
| ==== 4. Create CzechIdM configuration folders ==== | ==== 4. Create CzechIdM configuration folders ==== | ||
| In CzechIdM, you can store all deployment-specific configuration (i.e. database credentials) outside the war file. This is a configure-once approach which greatly simplifies future deployments. | In CzechIdM, you can store all deployment-specific configuration (i.e. database credentials) outside the war file. This is a configure-once approach which greatly simplifies future deployments. | ||
| Line 108: | Line 123: | ||
| org.quartz.jobStore.misfireThreshold=60000 | org.quartz.jobStore.misfireThreshold=60000 | ||
| org.quartz.jobStore.tablePrefix=qrtz_ | org.quartz.jobStore.tablePrefix=qrtz_ | ||
| + | |||
| </ | </ | ||
| Line 132: | Line 148: | ||
| <logger name=" | <logger name=" | ||
| <logger name=" | <logger name=" | ||
| - | <logger name=" | + | <logger name=" |
| </ | </ | ||
| Line 142: | Line 158: | ||
| < | < | ||
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| </ | </ | ||
| Line 162: | Line 173: | ||
| <logger name=" | <logger name=" | ||
| <logger name=" | <logger name=" | ||
| - | <logger name=" | + | <logger name=" |
| </ | </ | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
| Line 178: | Line 190: | ||
| idm.pub.app.stage=production | idm.pub.app.stage=production | ||
| - | spring.datasource.url=jdbc: | + | spring.datasource.jdbcUrl=jdbc: |
| spring.datasource.username=czechidm | spring.datasource.username=czechidm | ||
| spring.datasource.password=********** TODO ********* | spring.datasource.password=********** TODO ********* | ||
| Line 233: | Line 245: | ||
| spring.servlet.multipart.max-file-size=100MB | spring.servlet.multipart.max-file-size=100MB | ||
| spring.servlet.multipart.max-request-size=100MB | spring.servlet.multipart.max-request-size=100MB | ||
| + | |||
| </ | </ | ||
| Line 247: | Line 260: | ||
| spring.datasource.validationQuery=SELECT 1 | spring.datasource.validationQuery=SELECT 1 | ||
| spring.datasource.test-on-borrow=true | spring.datasource.test-on-borrow=true | ||
| + | |||
| </ | </ | ||
| Line 258: | Line 272: | ||
| # We recommend the VALUE to be at least 25. | # We recommend the VALUE to be at least 25. | ||
| idm.sec.security.jwt.secret.token=********** TODO ********* | idm.sec.security.jwt.secret.token=********** TODO ********* | ||
| + | |||
| </ | </ | ||
| Line 288: | Line 303: | ||
| # System.getProperty(" | # System.getProperty(" | ||
| idm.sec.core.attachment.storagePath=/ | idm.sec.core.attachment.storagePath=/ | ||
| + | |||
| </ | </ | ||
| Line 298: | Line 314: | ||
| # Application stage (development, | # Application stage (development, | ||
| idm.pub.app.stage=production | idm.pub.app.stage=production | ||
| + | |||
| </ | </ | ||
| Line 352: | Line 369: | ||
| </ | </ | ||
| ==== 9. Deploy the CzechIdM ==== | ==== 9. Deploy the CzechIdM ==== | ||
| - | Download the latest CzechIdM version. Currently it is idm-app-10.4.1.war. | + | |
| + | Download the latest CzechIdM version. Currently it is idm-app-12.2.3.war. | ||
| Ensure Tomcat is stopped: | Ensure Tomcat is stopped: | ||
| + | |||
| < | < | ||
| systemctl stop tomcat.service | systemctl stop tomcat.service | ||
| + | |||
| </ | </ | ||
| + | |||
| Copy the identity manager WAR into webapps folder in Tomcat and name it '' | Copy the identity manager WAR into webapps folder in Tomcat and name it '' | ||
| < | < | ||
| cp idm-app-10.4.1.war / | cp idm-app-10.4.1.war / | ||
| + | |||
| </ | </ | ||
| - | Start the Tomcat container:< | + | |
| + | Start the Tomcat container: | ||
| + | |||
| + | < | ||
| systemctl start tomcat.service | systemctl start tomcat.service | ||
| + | |||
| </ | </ | ||
| + | |||
| If everything is set up right, the CzechIdM will deploy. Default log is ''/ | If everything is set up right, the CzechIdM will deploy. Default log is ''/ | ||