mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
REPO-3264 Addition of communityDocker profile to build images (#23)
This commit is contained in:
@@ -197,6 +197,40 @@
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>communityDocker</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>fabric8-maven-plugin</artifactId>
|
||||
<version>${dependency.fabric8.version}</version>
|
||||
<configuration>
|
||||
<images>
|
||||
<image>
|
||||
<name>alfresco/alfresco-content-services-community</name>
|
||||
<build>
|
||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||
<tags>
|
||||
<tag>local</tag>
|
||||
</tags>
|
||||
</build>
|
||||
</image>
|
||||
</images>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>install</phase>
|
||||
<id>build</id>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>dockerImages</id>
|
||||
<build>
|
||||
|
@@ -1,2 +1,4 @@
|
||||
REPO=quay.io/
|
||||
ALFRESCO_TAG=latest
|
||||
SHARE_TAG=5.2.X
|
||||
|
||||
|
@@ -2,7 +2,7 @@ version: "3"
|
||||
|
||||
services:
|
||||
alfresco:
|
||||
image: quay.io/alfresco/alfresco-content-services-community:${ALFRESCO_TAG}
|
||||
image: ${REPO}alfresco/alfresco-content-services-community:${ALFRESCO_TAG}
|
||||
environment:
|
||||
JAVA_OPTS : "
|
||||
-Ddb.driver=org.postgresql.Driver
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
- 8082:8080 #Browser port
|
||||
|
||||
share:
|
||||
image: quay.io/alfresco/alfresco-full-share:${SHARE_TAG}
|
||||
image: ${REPO}alfresco/alfresco-full-share:${SHARE_TAG}
|
||||
environment:
|
||||
- REPO_HOST=alfresco
|
||||
- REPO_PORT=8080
|
||||
|
4
docker-compose/test.env
Normal file
4
docker-compose/test.env
Normal file
@@ -0,0 +1,4 @@
|
||||
export REPO=
|
||||
export ALFRESCO_TAG=local
|
||||
export SHARE_TAG=local
|
||||
|
@@ -67,6 +67,40 @@
|
||||
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>communityDocker</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>fabric8-maven-plugin</artifactId>
|
||||
<version>${dependency.fabric8.version}</version>
|
||||
<configuration>
|
||||
<images>
|
||||
<image>
|
||||
<name>alfresco/alfresco-full-share</name>
|
||||
<build>
|
||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||
<tags>
|
||||
<tag>local</tag>
|
||||
</tags>
|
||||
</build>
|
||||
</image>
|
||||
</images>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>install</phase>
|
||||
<id>build</id>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>dockerImages</id>
|
||||
<build>
|
||||
|
Reference in New Issue
Block a user