Skip to content

Commit

Permalink
Merge pull request #222 from telefonicaid/fgalan-patch-1
Browse files Browse the repository at this point in the history
REMOVE RPM stuff
  • Loading branch information
AlvaroVega committed Jul 7, 2022
2 parents 0ec75d8 + 1b1bb0c commit 30d9b34
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 290 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Remove: RPM package stuff
116 changes: 116 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
1.13.0 (July 7th, 2022)

- Add java.lang.* and java.util.* packages (all functions) into Esper (#217)
- Switch log level to PERSEO_LOG_LEVEL env var if was provided to docker (#178)

1.12.0 (May 11th, 2022)

- Provide JSONArray as ArrayList in an Esper event map
- Upgrade minor jetty dep 9.4.12.v20180830 to 9.4.46.v20220331
- Upgrade org.json dep from from version 20180813 to 20220320

1.11.0 (April 28th, 2022)

- Fix: allow null values in json object from event (#200, reopened)

1.10.0 (April 27th, 2022)

- Fix: allow null values in json object from event (#200)

1.9.0 (March 15th, 2022)

- Add: unhardwire default internal timer msec resolution (millisecond resolution of the internal timer thread) with a default of 10ms (#194)
- Add: INTERNAL_TIMER_MSEC_RESOLUTION env var for internal msec resolution (#194)
- Add: allow use WARN as WARNING log level
- Fix: ensure timerules are stored with unique name by using full name which includes service and subservice (#191)
- Fix: upgrade docker based image from Tomcat8 to Tomcat9
- Fix: migrate log4j v1 (1.7.25) to v2 (2.17.2) (#184)

1.8.0 (September 30th, 2021)

- Upgrade to use Esper 8.4 from Exper 7.X (#136)

1.7.0 (July 14th, 2021)

- Logging. Update for force to use only console instead of file
- Logging: Update entrypoint to create a symlink from the logfile to stdout, and remove tail execution to stream logfile.

1.6.0 (May 12th, 2020)

- Hardening: add json library as proper dependency in pom.xml (version 20180813) instead of third-party source code
- Hardening: software quality improvement based on ISO25010 recommendations
- Upgrade openjdk-8-jdk to openjdk-11-jdk in Dockerfile

1.5.0 (December 16th, 2019)

- Project detached into maven modules (Perseo-core used as parent module)
- Add: perseo-utils library (date time utility functions) into Esper
- Fix: refactorized perseo-core into perseo-main
- Fix: Removed SunriseSunset library from perseo-main. Now is attached to perseo-utils
- Fix: Disable cache from imported functions used as EPL
- Fix: Disable cache on EPServiceProvider setup

1.4.0 (October 29th, 2019)

- Add library (lib-sunrise-sunset 1.1.1) to retrieve sunset and sunrise (#130)
- Fix use openjdk8 oficial instead unofficial openjdk after bug in official openjdk-8-jdk was fixed
- Fix perseo-core log in docker container (#110)
- Upgrade Esper library from 6.1.0 to 7.1.0

1.3.0 (February 8th, 2019)

- Add: support for esper 6.1.0 timed rules("timer:XX" patterns and Match Recognize interval patterns) (#91)
- Add: environment variable based configuration (PERSEO_FE_URL and MAX_AGE)
- Add: travis.yml file for Travis CI. All branches with Java 8, 9, 10 and 11
- Fix: print perseo-core app logs instead of catalina in docker
- Upgrade org.slf4j (api & log4j) from 1.6.1 to 1.7.25
- Upgrade junit from 4.10 to 4.12
- Upgrade jetty-servlet from 9.2.0.M1 to 9.4.12.v20180830
- Upgrade javaee-web-api from 6.0 to 8.0
- Upgrade commons-logging from 1.1.3 to 1.2
- Upgrade maven-compiler-plugin from 2.3.2 to 3.8.0
- Upgrade maven-compiler source and target from 1.6 to 1.8
- Upgrade maven-war-plugin from 2.1.1 to 3.2.2
- Upgrade maven-dependency-plugin from 2.1 to 3.1.1
- Upgrade maven-site-plugin from 3.3 to 3.7.1
- Upgrade cobertura-maven-plugin from 2.6 to 2.7
- Upgrade maven-surefire-report-plugin from 2.16 to 2.22.0
- Upgrade maven-checkstyle-plugin from 2.12 to 3.0.0
- Upgrade maven-javadoc-plugin from 2.9 to 3.0.1

1.2.0 June (June 15th, 2018)

- Upgrade Esper library from 4.7.0 to 6.1.0
- Upgrade to CentOS 7, Java 1.8.0, Tomcat 8.5.27 and Maven 3.5.3 in Dockerfile

1.1.0 (September 28th, 2016)

- Fix: Dockerfile to build the right version corresponding to tag (#59)
- Add: Add 'from' field in logs (#69)
- Add: Add GET for log level (#68)

1.0.0 (June 3rd, 2016)

- Add: Change log level at runtime with PUT (#43)
- Add: Add srv and subsrv in log traces (#44)
- Add: Use fiware-correlator for correlator (#45)

0.3.0 (December 9th, 2015)

- Minor changes and fixes in RPM packaging

0.2.0 (May 22nd, 2015)

- Add /version.jsp path for checking version
- Decrease log level for rules
- Fix perseo-core.properties for reference missing from WAR file (#19)
- Fix Use service/subservice (#21)
- Fix Use UTF-8 in responses and default encoding for request (#3)

0.1.1 (January 19th, 2015)

- Fix: change log format. Add time level. Remove class and line number from message

0.1.0 (November 7th, 2014)

- Initial version
47 changes: 1 addition & 46 deletions documentation/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,51 +51,6 @@ you should change this value to something else, for example `-p 8081:8080`.
* If you have previously built your own image you can run the same command as above but substituting `telefonicaiot/perseo-core:master` by the
name given at image build time (`-t` option)

### Installation from RPM

This project provides the specs to create the RPM Package for the project, that may (in the future) be installed in a
package repository.

To generate the RPM, checkout the project to a machine with the RPM Build Tools installed, and, from the `rpm/` folder,
execute the following command:

```
./create-rpm.sh 1 0.1
```

The create-rpm.sh script uses the following parameters:

* Perseo-core release (1 in the example above), tipically set with the commit number corresponding to the RPM.
* Perseo-core version (0.1 in the example above), which is the base version of the software

This command will generate some folders, including one called RPMS, holding the RPM created for every architecture
(x86_64 is currently generated).

In order to install the generated RPM from the local file, use the following command:

```
yum --nogpgcheck localinstall perseo-core-0.1-1.x86_64.rpm
```

It should automatically download all the dependencies provided they are available (Node.js and NPM may require the
EPEL repositories to be added).

The RPM package can also be deployed in a artifact repository and the installed using:

```
yum install perseo-core
```

NOTE: Perseo (front-end) is not installed as part of the dependencies in the RPM, so the URL of an existing Perseo (front-end)
must be provided and configured for Perseo core to work properly.

#### Activate service

Perseo-core is a web application run in a Tomcat. The service will be active if the Tomcat is running.
```
service tomcat start
```

### Installation from Sources

Deployment requires a Tomcat 7 with Java 7. The basic steps for deploying it would be
Expand All @@ -118,7 +73,7 @@ In order to undeploy the proxy just remove the .war and the directoryin webapps/
### Log Rotation (not apply to Docker container)
Independently of how the service is installed, the log files will need an external rotation (e.g.: the logrotate command) to avoid disk full problems.

Logrotate is installed as RPM dependency along with perseo. The system is configured to rotate every day and whenever the log file size is greater than 100MB (checked very 30 minutes by default):
Logroate example file can be found in [`etc` directory in this repository](../etc). This example is configured to rotate every day and whenever the log file size is greater than 100MB (checked very 30 minutes by default):
* For daily rotation: /etc/logrotate.d/logrotate-perseo-daily: which enables daily log rotation
* For size-based rotation:
* /etc/sysconfig/logrotate-perseo-size: in addition to the previous rotation, this file ensures log rotation if the log file grows beyond a given threshold (100 MB by default)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
203 changes: 0 additions & 203 deletions rpm/SPECS/cep-core.spec

This file was deleted.

Loading

0 comments on commit 30d9b34

Please sign in to comment.