Merge pull request #1167 from Alfresco/feature-2.7/APPS-235_SetupEnv_no

Apps 235 Setup environment

(cherry picked from commit 23cddd2753)
This commit is contained in:
Claudia Agache
2020-07-08 14:10:04 +03:00
committed by rodicasutu
parent 7b448be646
commit c62f64c704
4 changed files with 122 additions and 1 deletions

View File

@@ -90,6 +90,7 @@
</build>
<profiles>
<!-- Profile used to install alfresco on bamboo. It can be removed after travis migration is finished -->
<profile>
<id>install-alfresco</id>
<build>
@@ -130,6 +131,83 @@
</plugins>
</build>
</profile>
<!-- Profile used to install alfresco on travis -->
<profile>
<id>installAlfresco</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.31.0</version>
<executions>
<execution>
<id>start-postgresql</id>
<phase>generate-test-resources</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<images>
<image>
<alias>test-database</alias>
<name>postgres:9.1</name>
<run>
<ports>
<port>5432:5432</port>
</ports>
<env>
<POSTGRES_PASSWORD>alfresco</POSTGRES_PASSWORD>
<POSTGRES_USER>alfresco</POSTGRES_USER>
<POSTGRES_DB>alfresco</POSTGRES_DB>
</env>
<cmd>
<shell>-c max_connections=300</shell>
</cmd>
<wait>
<log>database system is ready to accept connections</log>
<time>20000</time>
</wait>
</run>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>fetch-installer</id>
<phase>generate-test-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
<echo>Installing Alfresco...</echo>
<exec executable="${basedir}/target/alf-installer.bin" dir="target" failonerror="true">
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
</exec>
<delete file="target/alf-installer.bin" verbose="true" />
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901-1.jdbc4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>apply-rm-community</id>
<build>