<commit_before><!--

    Copyright (C) 2011 Red Hat, Inc. (<EMAIL>)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.commonjava.indy</groupId>
    <artifactId>indy-deployments</artifactId>
    <version>0.99.4-SNAPSHOT</version>
  </parent>
  
  <groupId>org.commonjava.indy.docker</groupId>
  <artifactId>indy-docker-images</artifactId>
  <packaging>pom</packaging>

  <name>Indy :: Docker Images :: Parent</name>
  
  <modules>
    <module>base</module>
    <module>gogs-testbase</module>
    <module>savant</module>
  </modules>

  <properties>
    <flavor>unknown</flavor>
    <tagVer>dev</tagVer>
    <dockerRegistry>docker.io</dockerRegistry>
    <dockerUser>commonjava</dockerUser>
    <imageName>indy-${flavor}</imageName>
  </properties>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.10</version>
          <executions>
            <execution>
              <id>unpack-base</id>
              <goals>
                <goal>unpack-dependencies</goal>
              </goals>
              <phase>prepare-package</phase>
              <configuration>
                <includeArtifactIds>indy-docker-base</includeArtifactIds>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>io.fabric8</groupId>
          <artifactId>docker-maven-plugin</artifactId>
          <version>0.15.9</version>
          <extensions>true</extensions>

          <dependencies>
            <dependency>
              <groupId>org.commonjava.indy.tools</groupId>
              <artifactId>indy-assemblies</artifactId>
              <version>${project.version}</version>
            </dependency>
          </dependencies>

          <configuration>
            <skip>${disableLauncher}</skip>
            <authConfig>
              <push>
                <username>${dockerUser}</username>
                <password><PASSWORD>>
              </push>
            </authConfig>
            <images>
              <image>
                <name>${dockerRegistry}/${dockerUser}/gogs-test-appliance</name>
                <alias>gogs-test-appliance</alias>
                <build>
                  <from>gogs/gogs</from>
                  <assembly>
                    <mode>dir</mode>
                    <basedir>/data</basedir>
                    <inline>
                      <dependencySets>
                        <dependencySet>
                          <scope>provided</scope>
                          <includes>
                            <include>org.commonjava.indy.docker:indy-docker-gogs-testbase*</include>
                          </includes>
                          <unpack>true</unpack>
                          <outputDirectory>/</outputDirectory>
                        </dependencySet>
                      </dependencySets>
                    </inline>
                  </assembly>
                </build>
                <run>
                  <ports>
                    <port>gogs.port:3000</port>
                  </ports>
                  <wait>
                    <tcp>
                      <ports>
                        <port>3000</port>
                      </ports>
                    </tcp>
                  </wait>
                  <log>
                    <file>${project.build.directory}/gogs.log</file>
                  </log>
                </run>
              </image>
<!--               <image>
                <name>git-clone-test</name>
                <build>
                  <from>centos</from>
                  <runCmds>
                    <run>yum -y install git</run>
                  </runCmds>
                  <cmd>git clone http://gogs-test-appliance:3000/commonjava/indy-config.git</cmd>
                </build>
                <run>
                  <links>
                    <link>gogs-test-appliance:gogs-test-appliance</link>
                  </links>
                  <log>
                    <file>${project.build.directory}/git-test.log</file>
                  </log>
                </run>
              </image> -->
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-vanilla</alias>
                <build>
                  <dockerFile>${project.build.directory}/dependency/image-base/Dockerfile</dockerFile>
                  <assembly>
                    <descriptorRef>docker-launcher</descriptorRef>
                  </assembly>
                  <tags>
                    <tag>${tagVer}</tag>
                  </tags>
                </build>
                <run>
                  <ports>
                    <port>indy-vanilla.port:8080</port>
                  </ports>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-vanilla.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-vanilla.log</file>
                  </log>
                </run>
              </image>
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-git-root</alias>
                <run>
                  <env>
                    <INDY_ETC_URL>http://gogs:3000/commonjava/indy-config.git</INDY_ETC_URL>
                  </env>
                  <ports>
                    <port>indy-git-root.port:8080</port>
                  </ports>
                  <links>
                    <link>gogs-test-appliance:gogs</link>
                  </links>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-git-root.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-git-root.log</file>
                  </log>
                </run>
              </image>
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-git-branch</alias>
                <run>
                  <env>
                    <INDY_ETC_URL>http://gogs:3000/commonjava/indy-config.git</INDY_ETC_URL>
                    <INDY_ETC_BRANCH>test-branch</INDY_ETC_BRANCH>
                  </env>
                  <ports>
                    <port>indy-git-branch.port:8080</port>
                  </ports>
                  <links>
                    <link>gogs-test-appliance:gogs</link>
                  </links>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-git-branch.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-git-branch.log</file>
                  </log>
                </run>
              </image>
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-git-subpath</alias>
                <run>
                  <env>
                    <INDY_ETC_URL>http://gogs:3000/commonjava/indy-config.git</INDY_ETC_URL>
                    <INDY_ETC_SUBPATH>subpath</INDY_ETC_SUBPATH>
                  </env>
                  <ports>
                    <port>indy-git-subpath.port:8080</port>
                  </ports>
                  <links>
                    <link>gogs-test-appliance:gogs</link>
                  </links>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-git-subpath.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-git-subpath.log</file>
                  </log>
                </run>
              </image>
            </images>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <profiles>
    <profile>
      <id>release</id>
      <properties>
        <tagVer>${project.version}</tagVer>
      </properties>
    </profile>
<!-- <profile>
      <id>run-its</id>
      
      <dependencies>
        <dependency>
          <groupId>org.commonjava.indy</groupId>
          <artifactId>indy-ftests-core</artifactId>
        </dependency>
      </dependencies>
      
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>
                <forkCount>${test-forkCount}</forkCount>
                <reuseForks>false</reuseForks>
                <redirectTestOutputToFile>${test-redirectOutput}</redirectTestOutputToFile>
                <dependenciesToScan>
                  <dependency>org.commonjava.indy:indy-ftests-core</dependency>
                </dependenciesToScan> 
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile> -->
  </profiles>
  
</project>
<commit_msg>Add dockerHost configuration, set to tcp://localhost:2375 for now<commit_after><!--

    Copyright (C) 2011 Red Hat, Inc. (<EMAIL>)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.commonjava.indy</groupId>
    <artifactId>indy-deployments</artifactId>
    <version>0.99.4-SNAPSHOT</version>
  </parent>
  
  <groupId>org.commonjava.indy.docker</groupId>
  <artifactId>indy-docker-images</artifactId>
  <packaging>pom</packaging>

  <name>Indy :: Docker Images :: Parent</name>
  
  <modules>
    <module>base</module>
    <module>gogs-testbase</module>
    <module>savant</module>
  </modules>

  <properties>
    <flavor>unknown</flavor>
    <tagVer>dev</tagVer>
    <dockerRegistry>docker.io</dockerRegistry>
    <dockerUser>commonjava</dockerUser>
    <imageName>indy-${flavor}</imageName>
    <dockerHost>tcp://localhost:2375</dockerHost>
  </properties>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.10</version>
          <executions>
            <execution>
              <id>unpack-base</id>
              <goals>
                <goal>unpack-dependencies</goal>
              </goals>
              <phase>prepare-package</phase>
              <configuration>
                <includeArtifactIds>indy-docker-base</includeArtifactIds>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>io.fabric8</groupId>
          <artifactId>docker-maven-plugin</artifactId>
          <version>0.15.9</version>
          <extensions>true</extensions>

          <dependencies>
            <dependency>
              <groupId>org.commonjava.indy.tools</groupId>
              <artifactId>indy-assemblies</artifactId>
              <version>${project.version}</version>
            </dependency>
          </dependencies>

          <configuration>
            <skip>${disableLauncher}</skip>
            <dockerHost>${dockerHost}</dockerHost>
            <authConfig>
              <push>
                <username>${dockerUser}</username>
                <password>${<PASSWORD>>
              </push>
            </authConfig>
            <images>
              <image>
                <name>${dockerRegistry}/${dockerUser}/gogs-test-appliance</name>
                <alias>gogs-test-appliance</alias>
                <build>
                  <from>gogs/gogs</from>
                  <assembly>
                    <mode>dir</mode>
                    <basedir>/data</basedir>
                    <inline>
                      <dependencySets>
                        <dependencySet>
                          <scope>provided</scope>
                          <includes>
                            <include>org.commonjava.indy.docker:indy-docker-gogs-testbase*</include>
                          </includes>
                          <unpack>true</unpack>
                          <outputDirectory>/</outputDirectory>
                        </dependencySet>
                      </dependencySets>
                    </inline>
                  </assembly>
                </build>
                <run>
                  <ports>
                    <port>gogs.port:3000</port>
                  </ports>
                  <wait>
                    <tcp>
                      <ports>
                        <port>3000</port>
                      </ports>
                    </tcp>
                  </wait>
                  <log>
                    <file>${project.build.directory}/gogs.log</file>
                  </log>
                </run>
              </image>
<!--               <image>
                <name>git-clone-test</name>
                <build>
                  <from>centos</from>
                  <runCmds>
                    <run>yum -y install git</run>
                  </runCmds>
                  <cmd>git clone http://gogs-test-appliance:3000/commonjava/indy-config.git</cmd>
                </build>
                <run>
                  <links>
                    <link>gogs-test-appliance:gogs-test-appliance</link>
                  </links>
                  <log>
                    <file>${project.build.directory}/git-test.log</file>
                  </log>
                </run>
              </image> -->
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-vanilla</alias>
                <build>
                  <dockerFile>${project.build.directory}/dependency/image-base/Dockerfile</dockerFile>
                  <assembly>
                    <descriptorRef>docker-launcher</descriptorRef>
                  </assembly>
                  <tags>
                    <tag>${tagVer}</tag>
                  </tags>
                </build>
                <run>
                  <ports>
                    <port>indy-vanilla.port:8080</port>
                  </ports>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-vanilla.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-vanilla.log</file>
                  </log>
                </run>
              </image>
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-git-root</alias>
                <run>
                  <env>
                    <INDY_ETC_URL>http://gogs:3000/commonjava/indy-config.git</INDY_ETC_URL>
                  </env>
                  <ports>
                    <port>indy-git-root.port:8080</port>
                  </ports>
                  <links>
                    <link>gogs-test-appliance:gogs</link>
                  </links>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-git-root.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-git-root.log</file>
                  </log>
                </run>
              </image>
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-git-branch</alias>
                <run>
                  <env>
                    <INDY_ETC_URL>http://gogs:3000/commonjava/indy-config.git</INDY_ETC_URL>
                    <INDY_ETC_BRANCH>test-branch</INDY_ETC_BRANCH>
                  </env>
                  <ports>
                    <port>indy-git-branch.port:8080</port>
                  </ports>
                  <links>
                    <link>gogs-test-appliance:gogs</link>
                  </links>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-git-branch.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-git-branch.log</file>
                  </log>
                </run>
              </image>
              <image>
                <name>${dockerRegistry}/${dockerUser}/${imageName}</name>
                <alias>indy-git-subpath</alias>
                <run>
                  <env>
                    <INDY_ETC_URL>http://gogs:3000/commonjava/indy-config.git</INDY_ETC_URL>
                    <INDY_ETC_SUBPATH>subpath</INDY_ETC_SUBPATH>
                  </env>
                  <ports>
                    <port>indy-git-subpath.port:8080</port>
                  </ports>
                  <links>
                    <link>gogs-test-appliance:gogs</link>
                  </links>
                  <wait>
                    <http>
                      <url>http://localhost:${indy-git-subpath.port}/</url>
                    </http>
                  </wait>
                  <log>
                    <file>${project.build.directory}/indy-git-subpath.log</file>
                  </log>
                </run>
              </image>
            </images>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <profiles>
    <profile>
      <id>release</id>
      <properties>
        <tagVer>${project.version}</tagVer>
      </properties>
    </profile>
<!-- <profile>
      <id>run-its</id>
      
      <dependencies>
        <dependency>
          <groupId>org.commonjava.indy</groupId>
          <artifactId>indy-ftests-core</artifactId>
        </dependency>
      </dependencies>
      
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>
                <forkCount>${test-forkCount}</forkCount>
                <reuseForks>false</reuseForks>
                <redirectTestOutputToFile>${test-redirectOutput}</redirectTestOutputToFile>
                <dependenciesToScan>
                  <dependency>org.commonjava.indy:indy-ftests-core</dependency>
                </dependenciesToScan> 
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile> -->
  </profiles>
  
</project>

{'fraction_non_alphanumeric': 0.1304629491204465, 'fraction_numerical': 0.008072955598744207, 'mean_word_length': 1.1893955924067205, 'pattern_counts': {'":': 0, '<': 711, '<?xml version=': 0, '>': 713, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6313342', 'n_tokens_mistral': 5894, 'n_tokens_neox': 5197, 'n_words': 719}