mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
docker: Give example of non-discard domain in greeting (#453)
Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
@@ -13,5 +13,7 @@ of 300 messages per mailbox - the oldest messages will be deleted to stay under
|
|||||||
that limit.</p>
|
that limit.</p>
|
||||||
|
|
||||||
<p>Messages addressed to any recipient in the <code>@bitbucket.local</code>
|
<p>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 immediately <b>discarded</b> without being written
|
||||||
soak testing your application.</p>
|
to disk. Use this domain for load or soak testing your application. Inbucket
|
||||||
|
will retain mail for any other domain by default, i.e.
|
||||||
|
<code>@inbucket.local</code>.</p>
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ main() {
|
|||||||
usage
|
usage
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
-b)
|
||||||
|
build
|
||||||
|
;;
|
||||||
-r)
|
-r)
|
||||||
reset
|
reset
|
||||||
;;
|
;;
|
||||||
@@ -38,6 +41,8 @@ main() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
docker run $run_opts \
|
docker run $run_opts \
|
||||||
-p $PORT_HTTP:9000 \
|
-p $PORT_HTTP:9000 \
|
||||||
-p $PORT_SMTP:2500 \
|
-p $PORT_SMTP:2500 \
|
||||||
@@ -49,14 +54,21 @@ main() {
|
|||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "$0 [options]" 2>&1
|
echo "$0 [options]" 2>&1
|
||||||
|
echo " -b build - build image before starting" 2>&1
|
||||||
echo " -d detach - detach and print container ID" 2>&1
|
echo " -d detach - detach and print container ID" 2>&1
|
||||||
echo " -r reset - purge config and data before startup" 2>&1
|
echo " -r reset - purge config and data before startup" 2>&1
|
||||||
echo " -h help - print this message" 2>&1
|
echo " -h help - print this message" 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
echo "Building $IMAGE"
|
||||||
|
docker build . -t "$IMAGE"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
/bin/rm -rf "$VOL_CONFIG"
|
rm -rf "$VOL_CONFIG"
|
||||||
/bin/rm -rf "$VOL_DATA"
|
rm -rf "$VOL_DATA"
|
||||||
}
|
}
|
||||||
|
|
||||||
main $*
|
main $*
|
||||||
|
|||||||
Reference in New Issue
Block a user