mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 16:20:29 -04:00
Compare commits
11 Commits
1.5.0-beta
...
1.5.0
Author | SHA1 | Date | |
---|---|---|---|
|
2bf51fb145 | ||
|
6e41334061 | ||
|
f3f924eab9 | ||
|
e456434514 | ||
|
71de84bd9e | ||
|
262bf6e1f4 | ||
|
fdd2eed8a6 | ||
|
76c35fa0d5 | ||
|
dc0770e367 | ||
|
3839f3b105 | ||
|
9839ceaa2b |
11
Dockerfile
11
Dockerfile
@@ -15,6 +15,7 @@ RUN DEBIAN_FRONTENT=noninteractive && \
|
|||||||
libpgobject-util-dbmethod-perl libplack-perl libtemplate-perl \
|
libpgobject-util-dbmethod-perl libplack-perl libtemplate-perl \
|
||||||
libnamespace-autoclean-perl \
|
libnamespace-autoclean-perl \
|
||||||
libtemplate-plugin-latex-perl libtex-encode-perl \
|
libtemplate-plugin-latex-perl libtex-encode-perl \
|
||||||
|
libmoosex-nonmoose-perl \
|
||||||
texlive-latex-recommended \
|
texlive-latex-recommended \
|
||||||
texlive-xetex \
|
texlive-xetex \
|
||||||
starman \
|
starman \
|
||||||
@@ -23,12 +24,13 @@ RUN DEBIAN_FRONTENT=noninteractive && \
|
|||||||
ssmtp
|
ssmtp
|
||||||
|
|
||||||
# Build time variables
|
# Build time variables
|
||||||
ENV LSMB_VERSION 1.5.0-beta6
|
ENV LSMB_VERSION 1.5.0
|
||||||
|
|
||||||
# Install LedgerSMB
|
# Install LedgerSMB
|
||||||
RUN cd /srv && \
|
RUN cd /srv && \
|
||||||
curl -Lo ledgersmb-$LSMB_VERSION.tar.gz https://sourceforge.net/projects/ledger-smb/files/Releases/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz/download && \
|
curl -Lo ledgersmb-$LSMB_VERSION.tar.gz "http://downloads.sourceforge.net/project/ledger-smb/Releases/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fledger-smb%2Ffiles%2FReleases%2F$LSMB_VERSION%2F&ts=1483124209&use_mirror=superb-sea2" && \
|
||||||
tar -xvzf ledgersmb-$LSMB_VERSION.tar.gz
|
tar -xvzf ledgersmb-$LSMB_VERSION.tar.gz
|
||||||
|
# https://sourceforge.net/projects/ledger-smb/files/Releases/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz/download && \
|
||||||
|
|
||||||
WORKDIR /srv/ledgersmb
|
WORKDIR /srv/ledgersmb
|
||||||
|
|
||||||
@@ -52,6 +54,8 @@ ENV SSMTP_FROMLINE_OVERRIDE YES
|
|||||||
#ENV SSMTP_AUTH_METHOD
|
#ENV SSMTP_AUTH_METHOD
|
||||||
|
|
||||||
ENV POSTGRES_HOST postgres
|
ENV POSTGRES_HOST postgres
|
||||||
|
ENV POSTGRES_PORT 5432
|
||||||
|
ENV DEFAULT_DB lsmb
|
||||||
|
|
||||||
COPY start.sh /usr/local/bin/start.sh
|
COPY start.sh /usr/local/bin/start.sh
|
||||||
COPY update_ssmtp.sh /usr/local/bin/update_ssmtp.sh
|
COPY update_ssmtp.sh /usr/local/bin/update_ssmtp.sh
|
||||||
@@ -60,6 +64,9 @@ RUN chown www-data /etc/ssmtp /etc/ssmtp/ssmtp.conf && \
|
|||||||
chmod +x /usr/local/bin/update_ssmtp.sh /usr/local/bin/start.sh && \
|
chmod +x /usr/local/bin/update_ssmtp.sh /usr/local/bin/start.sh && \
|
||||||
mkdir -p /var/www
|
mkdir -p /var/www
|
||||||
|
|
||||||
|
# Work around an aufs bug related to directory permissions:
|
||||||
|
RUN mkdir -p /tmp && \
|
||||||
|
chmod 1777 /tmp
|
||||||
|
|
||||||
# Internal Port Expose
|
# Internal Port Expose
|
||||||
EXPOSE 5762
|
EXPOSE 5762
|
||||||
|
@@ -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.
|
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`
|
### `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.
|
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.
|
||||||
|
4
start.sh
4
start.sh
@@ -8,7 +8,9 @@ if [[ ! -f ledgersmb.conf ]]; then
|
|||||||
sed -i \
|
sed -i \
|
||||||
-e "s/\(cache_templates = \).*\$/cache_templates = 1/g" \
|
-e "s/\(cache_templates = \).*\$/cache_templates = 1/g" \
|
||||||
-e "s/\(host = \).*\$/\1$POSTGRES_HOST/g" \
|
-e "s/\(host = \).*\$/\1$POSTGRES_HOST/g" \
|
||||||
-e "s%\(sendmail = \).*%\1/usr/bin/ssmtp%g" \
|
-e "s/\(port = \).*\$/\1$POSTGRES_PORT/g" \
|
||||||
|
-e "s/\(default_db = \).*\$/\1$DEFAULT_DB/g" \
|
||||||
|
-e "s%\(sendmail = \).*%\1/usr/sbin/ssmtp%g" \
|
||||||
/srv/ledgersmb/ledgersmb.conf
|
/srv/ledgersmb/ledgersmb.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user