Giter VIP home page Giter VIP logo

Comments (3)

benjamin-heasly avatar benjamin-heasly commented on August 28, 2024

Thanks!

Agree email is important for passwords and stuff.

I don't think we can configure email once and for all inside this docker image, since it requires server config and credentials. The mail server should probably live out on the Internet somewhere, or at least in a different Docker image.

But I think you can mount in the necessary config when running this image. I'm using gmail's free smpt service for one project, and the config looks like this:

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

This makes an email resource available in the Jetty container. Archiva knows how to find it from there.

from archiva-docker.

mfaure avatar mfaure commented on August 28, 2024

Great, thanks !

Your excerpt would be a great help in the README for other users

from archiva-docker.

benjamin-heasly avatar benjamin-heasly commented on August 28, 2024

Agree again. Already put it there! Thanks.

from archiva-docker.

Related Issues (4)

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.