Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2081

implement a nexus docker container for CI

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: build
    • Labels:
      None

      Description

      In order to cache all the maven dependencies we need a maven artifact proxy server.

      Lets create a docker OSS nexus server with some proxy repositories already preconfigured.

      Persistent data is handled by a data volume container see
      https://docs.docker.com/userguide/dockervolumes/

      The client config will be handled by something like, if client ip port 8081 is mapped to server ip port 8081

      cat >$HOME/.m2/settings.xml <<EOF
      <settings>
        <mirrors>
          <mirror>
            <id>conjars</id>
            <name>nexus conjars</name>
            <url>http://localhost:8081/nexus/content/repositories/conjars/</url>
            <mirrorOf>conjars</mirrorOf>
          </mirror>
          <mirror>
            <id>central</id>
            <name>nexus central</name>
            <url>http://localhost:8081/nexus/content/repositories/central/</url>
            <mirrorOf>central</mirrorOf>
          </mirror>
           <mirror>
            <id>repository.jboss.org</id>
            <name>nexus jboss</name>
          <url>http://localhost:8081/nexus/content/repositories/repository.jboss.org/</url>
            <mirrorOf>repository.jboss.org</mirrorOf>
          </mirror>
          <mirror>
            <id>apache snapshot</id>
            <name>apache snapshot</name>
            <url>http://localhost:8081/nexus/content/repositories/apache_snapshots/</url>
            <mirrorOf>apache snapshot</mirrorOf>
          </mirror>
          <mirror>
            <id>apache https snapshot</id>
            <url>http://localhost:8081/nexus/content/repositories/apache_snapshots.https/</url>
            <mirrorOf>apache.snapshots.https</mirrorOf>
          </mirror>
      	<mirror>
             <id>maven2-repository.atlassian</id>
             <url>http://localhost:8081/nexus/content/repositories/maven2-repository.atlassian/</url>
             <mirrorOf>maven2-repository.atlassian</mirrorOf>
          </mirror>
        </mirrors>
      </settings>
      EOF
      

        Attachments

        1. BIGTOP-2081.1.patch
          24 kB
          Olaf Flebbe
        2. BIGTOP-2081.2.patch
          3 kB
          Olaf Flebbe
        3. BIGTOP-2081.3.patch
          3 kB
          Olaf Flebbe
        4. BIGTOP-2081.4.patch
          3 kB
          Olaf Flebbe

          Activity

            People

            • Assignee:
              oflebbe Olaf Flebbe
              Reporter:
              oflebbe Olaf Flebbe
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: