Skip to content

Commit

Permalink
Added support for APS 24.3.1 (#95), solved error for running tests (#96
Browse files Browse the repository at this point in the history
…), updated Maven plugins and deps (#97)
  • Loading branch information
OpenPj committed Jan 21, 2025
1 parent 603d177 commit b24d0b5
Show file tree
Hide file tree
Showing 11 changed files with 173 additions and 13 deletions.
2 changes: 1 addition & 1 deletion activiti-app-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco.activiti</groupId>
<artifactId>aps-project</artifactId>
<version>3.0.5</version>
<version>3.0.6</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class FourEyesAppIT {
protected static final String BASE_PATH_HOSTNAME = "localhost";
protected static final int BASE_PATH_PORT = 8080;

protected static final String appZipFile = "aps-extensions-jar-3.0.5-App.zip";
protected static final String appZipFile = "aps-extensions-jar-3.0.6-App.zip";

protected static final String ACTIVITI_APP_BASE_PATH = BASE_PATH_PROTOCOL + "://" + BASE_PATH_HOSTNAME + ":"
+ BASE_PATH_PORT;
Expand Down
2 changes: 1 addition & 1 deletion activiti-app-overlay-docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco.activiti</groupId>
<artifactId>aps-project</artifactId>
<version>3.0.5</version>
<version>3.0.6</version>
</parent>

<properties>
Expand Down
37 changes: 37 additions & 0 deletions activiti-app-overlay-docker/src/main/docker/Dockerfile-24.3.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM alfresco/process-services:${aps.docker.version}

ENV ACTIVITI_DATASOURCE_USERNAME ${docker.aps.database.username}
ENV ACTIVITI_DATASOURCE_PASSWORD ${docker.aps.database.password}
ENV ACTIVITI_DATASOURCE_DRIVER ${docker.aps.database.driver}
ENV ACTIVITI_HIBERNATE_DIALECT ${docker.aps.database.dialect}
ENV ACTIVITI_DATASOURCE_URL ${docker.aps.database.url}
ENV ACTIVITI_CSRF_DISABLED ${docker.aps.database.csrf.disabled}
ENV ACTIVITI_CORS_ENABLED ${docker.aps.database.cors.enabled}
ENV ACTIVITI_ES_SERVER_TYPE ${docker.aps.es.server.type}
ENV ACTIVITI_ES_DISCOVERY_HOSTS ${docker.aps.es.discovery.host}
ENV ACTIVITI_ES_CLUSTER_NAME ${docker.aps.es.cluster.name}

ENV LC_ALL C

ARG TOMCAT_DIR=/usr/local/tomcat
ARG USERNAME=alfresco
ARG CONTENT_STORAGE_DIR=/act_data

USER root

RUN rm -rf $TOMCAT_DIR/webapps/activiti-app

#COPY --chown=${USERNAME} extensions/aps-extensions-jar-${project.version}.jar $TOMCAT_DIR/lib

COPY --chown=${USERNAME} properties/activiti-app.properties $TOMCAT_DIR/lib

COPY --chown=${USERNAME} extensions/activiti-app.war $TOMCAT_DIR/webapps

COPY --chown=${USERNAME} license/*.* $TOMCAT_DIR/lib/

RUN chown ${USERNAME}:${USERNAME} -R /usr/local/tomcat

RUN mkdir -p ${CONTENT_STORAGE_DIR}
RUN chown ${USERNAME}:${USERNAME} ${CONTENT_STORAGE_DIR}

USER ${USERNAME}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM tomcat:10-jdk17-openjdk

ENV ACTIVITI_DATASOURCE_USERNAME: ${docker.aps.database.username}
ENV ACTIVITI_DATASOURCE_PASSWORD: ${docker.aps.database.password}
ENV ACTIVITI_DATASOURCE_DRIVER: ${docker.aps.database.driver}
ENV ACTIVITI_HIBERNATE_DIALECT: ${docker.aps.database.dialect}
ENV ACTIVITI_DATASOURCE_URL: ${docker.aps.database.url}
ENV ACTIVITI_CSRF_DISABLED: ${docker.aps.database.csrf.disabled}
ENV ACTIVITI_CORS_ENABLED: ${docker.aps.database.cors.enabled}
ENV ACTIVITI_ES_SERVER_TYPE: ${docker.aps.es.server.type}
ENV ACTIVITI_ES_DISCOVERY_HOSTS: ${docker.aps.es.discovery.host}
ENV ACTIVITI_ES_CLUSTER_NAME: ${docker.aps.es.cluster.name}

ENV LC_ALL=C

ARG TOMCAT_DIR=/usr/local/tomcat
ARG USERNAME=alfresco
ARG USERID=33007
ARG CONTENT_STORAGE_DIR=/act_data

USER root

RUN useradd -c "Alfresco APS" -M -s "/bin/bash" -u "${USERID}" -o "${USERNAME}"

RUN rm -rf $TOMCAT_DIR/webapps/activiti-app

#COPY --chown=${USERNAME} extensions/aps-extensions-jar-${project.version}.jar $TOMCAT_DIR/lib

COPY --chown=${USERNAME} properties/activiti-app.properties $TOMCAT_DIR/lib

COPY --chown=${USERNAME} extensions/activiti-app.war $TOMCAT_DIR/webapps

COPY --chown=${USERNAME} license/activiti.lic $TOMCAT_DIR/lib

COPY --chown=${USERNAME} license/transform.lic $TOMCAT_DIR/lib

RUN chown ${USERNAME}:${USERNAME} -R /usr/local/tomcat

RUN mkdir -p ${CONTENT_STORAGE_DIR}
RUN chown ${USERNAME}:${USERNAME} ${CONTENT_STORAGE_DIR}

USER ${USERNAME}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM alfresco/process-services-admin:${aps.docker.version}

ARG TOMCAT_DIR=/usr/local/tomcat
ARG USERNAME=alfresco

USER root

ADD --chown=${USERNAME} jdbc $TOMCAT_DIR/lib
COPY --chown=${USERNAME} properties/activiti-admin.properties $TOMCAT_DIR/lib
COPY --chown=${USERNAME} tomcat/conf/server.xml $TOMCAT_DIR/conf

RUN chown ${USERNAME}:${USERNAME} -R /usr/local/tomcat

USER ${USERNAME}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM tomcat:10-jdk17-openjdk-slim

ARG TOMCAT_DIR=/usr/local/tomcat
ARG USERNAME=alfresco
ARG USERID=33007

USER root

RUN useradd -c "Alfresco APS" -M -s "/bin/bash" -u "${USERID}" -o "${USERNAME}"

ADD --chown=${USERNAME} jdbc $TOMCAT_DIR/lib
COPY --chown=${USERNAME} extensions/activiti-admin.war $TOMCAT_DIR/webapps
COPY --chown=${USERNAME} properties/activiti-admin.properties $TOMCAT_DIR/lib
COPY --chown=${USERNAME} tomcat/conf/server.xml $TOMCAT_DIR/conf

RUN chown ${USERNAME}:${USERNAME} -R /usr/local/tomcat

USER ${USERNAME}
2 changes: 1 addition & 1 deletion activiti-app-overlay-war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco.activiti</groupId>
<artifactId>aps-project</artifactId>
<version>3.0.5</version>
<version>3.0.6</version>
</parent>

<dependencies>
Expand Down
7 changes: 6 additions & 1 deletion aps-extensions-jar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco.activiti</groupId>
<artifactId>aps-project</artifactId>
<version>3.0.5</version>
<version>3.0.6</version>
</parent>

<dependencyManagement>
Expand Down Expand Up @@ -103,6 +103,11 @@
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>${micrometer-registry-prometheus.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type=bpmSuite
version.major=24
version.minor=3
version.revision=1
version.edition=Alfresco Process Services (powered by Activiti)
55 changes: 47 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.alfresco.activiti</groupId>
<artifactId>aps-project</artifactId>
<version>3.0.5</version>
<version>3.0.6</version>
<packaging>pom</packaging>
<name>APS - SDK Project - 3.x</name>

Expand All @@ -26,21 +26,21 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-war-plugin.version>3.4.0</maven-war-plugin.version>
<docker-maven-plugin.version>0.44.0</docker-maven-plugin.version>
<maven-dependency-plugin.version>3.6.1</maven-dependency-plugin.version>
<docker-maven-plugin.version>0.45.1</docker-maven-plugin.version>
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.2.5</maven-failsafe-plugin.version>
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.5.2</maven-failsafe-plugin.version>
<maven-antrun-plugin.version>3.1.0</maven-antrun-plugin.version>
<maven-eclipse-lifecycle-mapping.version>1.0.0</maven-eclipse-lifecycle-mapping.version>
<maven.enforcer.plugin.version>3.4.1</maven.enforcer.plugin.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<maven.enforcer.plugin.version>3.5.0</maven.enforcer.plugin.version>
<junit-jupiter.version>5.11.4</junit-jupiter.version>
<skip.integration.test>false</skip.integration.test>
<exec-maven-plugin.version>3.2.0</exec-maven-plugin.version>
<maven-build-helper.plugin.version>3.5.0</maven-build-helper.plugin.version>
<gmaven-plugin.version>2.1.1</gmaven-plugin.version>
<integration.test.httpclient5.version>5.3.1</integration.test.httpclient5.version>
<integration.test.httpclient5.version>5.4.1</integration.test.httpclient5.version>
<docker-maven-plugin.skip.save>false</docker-maven-plugin.skip.save>
<skip.admin>false</skip.admin>
</properties>
Expand Down Expand Up @@ -202,6 +202,45 @@
</properties>
</profile>

<profile>
<id>aps24.3.1</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>

<properties>
<!-- APS 24.3.1 -->
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<aps.version>24.3.1</aps.version>
<aps.docker.version>24.3.1</aps.docker.version>
<aps.version.major>24</aps.version.major>
<aps.version.minor>3</aps.version.minor>
<aps.version.revision>1</aps.version.revision>
<aps.2x.client.version>v2.3.7</aps.2x.client.version>
<opencsv.version>5.9</opencsv.version>
<jackson.version>2.17.1</jackson.version>
<bcprov.version>1.78</bcprov.version>
<activiti.version>8.1.2</activiti.version>
<spring.version>6.1.10.RELEASE</spring.version>
<spring-boot.version>3.3.1</spring-boot.version>
<spring-security.version>6.3.2</spring-security.version>
<elasticsearch.version>8.14.1</elasticsearch.version>
<elasticsearch-rest-client.artifactId>elasticsearch-rest-client</elasticsearch-rest-client.artifactId>
<elasticsearch-rest-client.version>8.13.4</elasticsearch-rest-client.version>
<hibernate.version>6.5.2.Final</hibernate.version>
<h2.version>2.2.224</h2.version>
<postgresql.version>13.12</postgresql.version>
<slf4j.version>2.0.13</slf4j.version>
<micrometer-registry-prometheus.version>1.12.5</micrometer-registry-prometheus.version>
<skipITs>false</skipITs>
<skip.integration.test>false</skip.integration.test>
<skip.swagger.client.generation>false</skip.swagger.client.generation>
<docker-maven-plugin.skip.save>false</docker-maven-plugin.skip.save>
<docker-maven-plugin.build.save>false</docker-maven-plugin.build.save>
</properties>
</profile>

<profile>
<id>aps24.4.0</id>
<activation>
Expand Down

0 comments on commit b24d0b5

Please sign in to comment.