Compare commits

...

9 Commits

Author SHA1 Message Date
John Locke
3bfa2a5ae3 1.4.33 2016-08-20 09:01:16 -07:00
John Locke
51f3dc8ab8 Add support for #4 - Make Postgres port configurable at run time 2016-08-20 08:58:19 -07:00
John Locke
2629d4052f r1.4.1 2016-07-31 08:28:38 -07:00
John Locke
c022a84d14 1.4.30 2016-07-24 08:07:26 -07:00
John Locke
2add82e070 Update for 1.4.29, streamlined install process 2016-05-30 08:52:19 -07:00
John Locke
beab963859 Add LaTeX::Driver to image. 2016-05-03 10:17:26 -07:00
John Locke
6772ccbe4d Update version to 1.4.28 2016-05-03 08:22:58 -07:00
John Locke
b7ac6ef4cb Update version to 1.4.27 2016-04-10 06:23:53 -07:00
John Locke
ddd44782c7 v1.4.26 2016-03-12 11:30:34 -08:00
3 changed files with 23 additions and 5 deletions

View File

@@ -1,9 +1,6 @@
FROM perl:5
MAINTAINER Freelock john@freelock.com
# Build time variables
ENV LSMB_VERSION 1.4.25
# Install Perl, Tex, Starman, psql client, and all dependencies
RUN DEBIAN_FRONTENT=noninteractive && \
@@ -28,14 +25,23 @@ RUN DEBIAN_FRONTENT=noninteractive && \
postgresql-client-9.4 \
ssmtp
# Build time variables
ENV LSMB_VERSION 1.4.33
# Install LedgerSMB
RUN cd /srv && \
git clone https://github.com/ledgersmb/LedgerSMB.git ledgersmb
git clone -b $LSMB_VERSION https://github.com/ledgersmb/LedgerSMB.git ledgersmb
WORKDIR /srv/ledgersmb
RUN git checkout $LSMB_VERSION
# 1.4.29+ requirements
RUN cpanm --quiet --notest \
--with-feature=starman \
--with-feature=latex-pdf-ps \
--with-feature=openoffice \
--installdeps .
#RUN sed -i \
# -e "s/short_open_tag = Off/short_open_tag = On/g" \
@@ -56,6 +62,8 @@ ENV SSMTP_FROMLINE_OVERRIDE YES
#ENV SSMTP_AUTH_METHOD
ENV POSTGRES_HOST postgres
ENV POSTGRES_PORT 5432
ENV DEFAULT_DB lsmb
COPY start.sh /usr/bin/start.sh
COPY update_ssmtp.sh /usr/bin/update_ssmtp.sh

View File

@@ -62,6 +62,14 @@ This environment variable is used to specify the hostname of the Postgres server
If you set this to another hostname, LedgerSMB will attempt to connect to that hostname instead.
## `POSTGRES_PORT` = 5432
Port to connect to Postgres on. Use to connect to a Postgres server running on an alternate port.
## `DEFAULT_DB` = lsmb
Set this if you want to automatically log in to a particular LSMB database.
### `SSMTP_ROOT` `SSMTP_MAILHUB` `SSMTP_HOSTNAME` `SSMTP_USE_STARTTLS` `SSMTP_AUTH_USER` `SSMTP_AUTH_PASS` `SSMTP_METHOD` `SSMTP_FROMLINE_OVERRIDE`
These variables are used to set outgoing SMTP defaults. To set the outgoing email address, set SSMTP_ROOT, and SSMTP_HOSTNAME at a minimum -- SSMTP_MAILHUB defaults to the default docker0 interface, so if your host is already configured to relay mail, this should relay successfully with only those two set.

View File

@@ -8,6 +8,8 @@ if [[ ! -f ledgersmb.conf ]]; then
sed -i \
-e "s/\(cache_templates = \).*\$/cache_templates = 1/g" \
-e "s/\(host = \).*\$/\1$POSTGRES_HOST/g" \
-e "s/\(port = \).*\$/\1$POSTGRES_PORT/g" \
-e "s/\(default_db = \).*\$/\1$DEFAULT_DB/g" \
-e "s%\(sendmail = \).*%\1/usr/bin/ssmtp%g" \
/srv/ledgersmb/ledgersmb.conf
fi