Comments (3)
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.
Great, thanks !
Your excerpt would be a great help in the README for other users
from archiva-docker.
Agree again. Already put it there! Thanks.
from archiva-docker.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archiva-docker.