Giter VIP home page Giter VIP logo

archiva-docker's Introduction

archiva-docker

Vanilla installation of Archiva 2.2 (see official stand-alone installation instructions).

The environment variable ARCHIVA_BASE is set to /var/archiva. Config and data directories within are created if missing, or an existing ARCHIVA_BASE may be mounted in from the Docker host.

The environment variable ARCHIVA_CONTEXT_PATH is set to /. If you would like to use this container behind a reverse proxy (e.g. example.org/archiva), you should set ARCHIVA_CONTEXT_PATH to /archiva.

Server listens on 8080, map to whatever you want on the Docker host.

See DockerHub automated build of this Docker image at ninjaben/archiva-docker.

Example usage:

sudo docker run -v ~/existing-archiva-base:/var/archiva -p 8080:8080 -d ninjaben/archiva-docker

email and other server config

You may wish to set up email or do other server config. These things don't live in this Docker image because they might use your own infrastructure and credentials. But you can mount them in when launching a container (it's all under /var/archiva).

For example, this config makes an email resource available in the Jetty container (using gmail's free smpt service). Archiva knows how to find it from there:

/var/archiva/conf/jetty.xml

  <New id="validation_mail" class="org.eclipse.jetty.plus.jndi.Resource">
    <Arg>mail/Session</Arg>
    <Arg>
      <New class="org.eclipse.jetty.jndi.factories.MailSessionReference">
        <Set name="user">***</Set>
        <Set name="password">***</Set>
        <Set name="properties">
          <New class="java.util.Properties">
            <Put name="mail.user">***</Put>
            <Put name="mail.password">***</Put>
            <Put name="mail.smtp.host">smtp.gmail.com</Put>
            <Put name="mail.transport.protocol">smtp</Put>
            <Put name="mail.smtp.port">587</Put>
            <Put name="mail.smtp.auth">true</Put>
            <Put name="mail.smtp.starttls.enable">true</Put>
            <Put name="mail.debug">true</Put>
          </New>
        </Set>
      </New>
    </Arg>
  </New>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.