mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 08:10:30 -04:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
09cf2e16b7 | ||
|
2a5dff2dd7 | ||
|
e2bf781058 | ||
|
1148c219ec | ||
|
e5c6072505 |
19
Dockerfile
19
Dockerfile
@@ -1,9 +1,7 @@
|
||||
FROM perl:5
|
||||
FROM debian:jessie
|
||||
MAINTAINER Freelock john@freelock.com
|
||||
|
||||
# Use postgres repository to get newer pg_dump and postgres client
|
||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main 9.6" |tee /etc/apt/sources.list.d/postgres.list
|
||||
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf
|
||||
|
||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||
RUN DEBIAN_FRONTENT=noninteractive && \
|
||||
@@ -24,22 +22,21 @@ RUN DEBIAN_FRONTENT=noninteractive && \
|
||||
texlive-xetex \
|
||||
starman \
|
||||
libopenoffice-oodoc-perl \
|
||||
postgresql-client-9.6 \
|
||||
lpr \
|
||||
ssmtp
|
||||
postgresql-client \
|
||||
ssmtp \
|
||||
git cpanminus make gcc libperl-dev lsb-release
|
||||
|
||||
# Build time variables
|
||||
ENV LSMB_VERSION 1.5.6
|
||||
ENV LSMB_VERSION 1.5.7
|
||||
|
||||
# Install LedgerSMB
|
||||
RUN cd /srv && \
|
||||
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" && \
|
||||
curl -Lo ledgersmb-$LSMB_VERSION.tar.gz "https://github.com/ledgersmb/LedgerSMB/releases/download/$LSMB_VERSION/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
|
||||
|
||||
# 1.5 requirements
|
||||
# master requirements
|
||||
RUN cpanm --quiet --notest \
|
||||
--with-feature=starman \
|
||||
--with-feature=latex-pdf-ps \
|
||||
|
5
start.sh
5
start.sh
@@ -35,4 +35,7 @@ done ;
|
||||
echo "Selected PERL5LIB=$PERL5LIB";
|
||||
|
||||
# start ledgersmb
|
||||
exec starman --port 5762 tools/starman.psgi
|
||||
# --preload-app allows application initialization to kill the entire
|
||||
# starman instance (instead of just the worker, which will immediately
|
||||
# get restarted); it also has a positive effect on memory use
|
||||
exec starman --port 5762 --preload-app tools/starman.psgi
|
||||
|
Reference in New Issue
Block a user