|
|
@ -93,12 +93,7 @@ cat Dockerfile
|
|
|
|
# gather volumes to map into container
|
|
|
|
# gather volumes to map into container
|
|
|
|
volumes=()
|
|
|
|
volumes=()
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -n "${DEV_DB}" ]]; then
|
|
|
|
[[ -n "${DEV_DB}" ]] && volumes+=( --volume "${DEV_DB}:/data/main.db" )
|
|
|
|
volumes+=( --volume "${DEV_DB}:/data/main.db" )
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
mkdir -p "data"
|
|
|
|
|
|
|
|
volumes=( --volume "${tmp}/data/:/data/" )
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for vol in audit.py start.py mailu/ migrations/; do
|
|
|
|
for vol in audit.py start.py mailu/ migrations/; do
|
|
|
|
volumes+=( --volume "${admin}/${vol}:/app/${vol}" )
|
|
|
|
volumes+=( --volume "${admin}/${vol}:/app/${vol}" )
|
|
|
@ -113,6 +108,8 @@ done
|
|
|
|
cat <<EOF
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
|
|
|
|
=============================================================================
|
|
|
|
=============================================================================
|
|
|
|
|
|
|
|
The "${DEV_NAME}" container was built using this configuration:
|
|
|
|
|
|
|
|
|
|
|
|
DEV_NAME="${DEV_NAME}"
|
|
|
|
DEV_NAME="${DEV_NAME}"
|
|
|
|
DEV_DB="${DEV_DB}"
|
|
|
|
DEV_DB="${DEV_DB}"
|
|
|
|
DEV_PROFILER="${DEV_PROFILER}"
|
|
|
|
DEV_PROFILER="${DEV_PROFILER}"
|
|
|
@ -121,6 +118,12 @@ DEV_ADMIN="${DEV_ADMIN}"
|
|
|
|
DEV_PASSWORD="${DEV_PASSWORD}"
|
|
|
|
DEV_PASSWORD="${DEV_PASSWORD}"
|
|
|
|
=============================================================================
|
|
|
|
=============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=============================================================================
|
|
|
|
|
|
|
|
You can start the container later using this commandline:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${docker/*\/} run --rm -it --name "${DEV_NAME}" --publish ${DEV_LISTEN}:8080$(printf " %q" "${volumes[@]}") "${DEV_NAME}"
|
|
|
|
|
|
|
|
=============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
=============================================================================
|
|
|
|
=============================================================================
|
|
|
|
The Mailu UI can be found here: http://${DEV_LISTEN}/sso/login
|
|
|
|
The Mailu UI can be found here: http://${DEV_LISTEN}/sso/login
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|