Olaf Flebbe created BIGTOP-2081:
-----------------------------------

             Summary: implement a nexus docker container for CI
                 Key: BIGTOP-2081
                 URL: https://issues.apache.org/jira/browse/BIGTOP-2081
             Project: Bigtop
          Issue Type: Improvement
          Components: build
            Reporter: Olaf Flebbe
            Assignee: Olaf Flebbe
             Fix For: 1.1.0


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
{code}
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
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to