REPO-3264 Addition of communityDocker profile to build images (#23)

This commit is contained in:
alandavis
2018-03-15 23:24:27 +00:00
committed by GitHub
parent 5aa6bfa7c9
commit 3713a9a8cf
5 changed files with 76 additions and 2 deletions

View File

@@ -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>

View File

@@ -1,2 +1,4 @@
REPO=quay.io/
ALFRESCO_TAG=latest
SHARE_TAG=5.2.X

View File

@@ -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
View File

@@ -0,0 +1,4 @@
export REPO=
export ALFRESCO_TAG=local
export SHARE_TAG=local

View File

@@ -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>