mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
Keeping tzdata pkg
This commit is contained in:
@@ -37,7 +37,7 @@ COPY etc/docker/defaults/start-inbucket.sh /
|
|||||||
ENV INBUCKET_SMTP_DISCARDDOMAINS bitbucket.local
|
ENV INBUCKET_SMTP_DISCARDDOMAINS bitbucket.local
|
||||||
ENV INBUCKET_SMTP_TIMEOUT 30s
|
ENV INBUCKET_SMTP_TIMEOUT 30s
|
||||||
ENV INBUCKET_POP3_TIMEOUT 30s
|
ENV INBUCKET_POP3_TIMEOUT 30s
|
||||||
ENV INBUCKET_WEB_GREETINGFILE /opt/inbucket/defaults/greeting.html
|
ENV INBUCKET_WEB_GREETINGFILE /config/greeting.html
|
||||||
ENV INBUCKET_WEB_COOKIEAUTHKEY secret-inbucket-session-cookie-key
|
ENV INBUCKET_WEB_COOKIEAUTHKEY secret-inbucket-session-cookie-key
|
||||||
ENV INBUCKET_WEB_UIDIR=ui
|
ENV INBUCKET_WEB_UIDIR=ui
|
||||||
ENV INBUCKET_STORAGE_TYPE file
|
ENV INBUCKET_STORAGE_TYPE file
|
||||||
@@ -55,9 +55,5 @@ EXPOSE 2500 9000 1100
|
|||||||
VOLUME /config
|
VOLUME /config
|
||||||
VOLUME /storage
|
VOLUME /storage
|
||||||
|
|
||||||
RUN addgroup -g 1000 inbucket && adduser -G inbucket -u 1000 -D inbucket && chown -R inbucket:inbucket /opt/inbucket/ && chmod 774 /opt/inbucket/ -R && chown /start-inbucket.sh && chmod +x /start-inbucket.sh
|
|
||||||
|
|
||||||
USER inbucket
|
|
||||||
|
|
||||||
ENTRYPOINT ["/start-inbucket.sh"]
|
ENTRYPOINT ["/start-inbucket.sh"]
|
||||||
CMD ["-logjson"]
|
CMD ["-logjson"]
|
||||||
|
|||||||
@@ -1,35 +1,17 @@
|
|||||||
<h1>Welcome to Inbucket</h1>
|
<h1>Welcome to Inbucket</h1>
|
||||||
|
|
||||||
<p>Inbucket is an email testing service; it will accept email for any email
|
<p>Inbucket is an email testing service; it will accept email for any email
|
||||||
address and make it available to view without a password.
|
address and make it available to view without a password.</p>
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>To view messages for a particular address, enter the username portion
|
<p>To view messages for a particular address, enter the username portion
|
||||||
of the address into the box on the upper right and click <em>View</em>.
|
of the address into the box on the upper right and click <em>View</em>.</p>
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>This instance of Inbucket is running inside of a <a
|
<p>This instance of Inbucket is running inside of a <a
|
||||||
href="https://www.docker.com/" target="_blank">Docker</a> container. It is
|
href="https://www.docker.com/" target="_blank">Docker</a> container. It is
|
||||||
configured to retain messages for a maximum of 3 days, and </br>
|
configured to retain messages for a maximum of 3 days, and will enforce a limit
|
||||||
will enforce a limit of 300 messages per mailbox - the oldest messages will
|
of 300 messages per mailbox - the oldest messages will be deleted to stay under
|
||||||
be deleted to stay under that limit.
|
that limit.</p>
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
<p>Messages addressed to any recipient in the <code>@bitbucket.local</code>
|
||||||
Messages addressed to any recipient in the <code>@bitbucket.local</code>
|
domain will be accepted but not written to disk. Use this domain for load or
|
||||||
domain will be accepted but not written to disk. </br>Use this domain for load or
|
soak testing your application.</p>
|
||||||
soak testing your application.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p> You can modify this greetings page by changing the Docker environment variable
|
|
||||||
'INBUCKET_WEB_GREETINGFILE' </br>to point to a different greetings.html. If for
|
|
||||||
example you have a greetings file on your local machine and want to mount that
|
|
||||||
you could </br>that file using the docker '--volume' parameter to add your local
|
|
||||||
greetings.html file to the directory '/custom/greetings.html'. </br>You will then
|
|
||||||
set the environment variable INBUCKET_WEB_GREETINGFILE to
|
|
||||||
'/custom/greetings.html'. </br>Your customized file will then be loaded after you
|
|
||||||
start the Docker container.</p>
|
|
||||||
<p>
|
|
||||||
This exact greetings file can be found at:
|
|
||||||
https://github.com/inbucket/inbucket/blob/master/etc/docker/defaults/greeting.html.
|
|
||||||
</p>
|
|
||||||
|
|||||||
@@ -3,7 +3,22 @@
|
|||||||
# description: start inbucket (runs within a docker container)
|
# description: start inbucket (runs within a docker container)
|
||||||
|
|
||||||
INBUCKET_HOME="/opt/inbucket"
|
INBUCKET_HOME="/opt/inbucket"
|
||||||
|
CONF_SOURCE="$INBUCKET_HOME/defaults"
|
||||||
|
CONF_TARGET="/config"
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
|
install_default_config() {
|
||||||
|
local file="$1"
|
||||||
|
local source="$CONF_SOURCE/$file"
|
||||||
|
local target="$CONF_TARGET/$file"
|
||||||
|
|
||||||
|
if [ ! -e "$target" ]; then
|
||||||
|
echo "Installing default $file to $CONF_TARGET"
|
||||||
|
install "$source" "$target"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
install_default_config "greeting.html"
|
||||||
|
|
||||||
exec "$INBUCKET_HOME/bin/inbucket" $*
|
exec "$INBUCKET_HOME/bin/inbucket" $*
|
||||||
|
|||||||
Reference in New Issue
Block a user