mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 08:10:30 -04:00
Compare commits
18 Commits
1.5.0-beta
...
1.4.25
Author | SHA1 | Date | |
---|---|---|---|
|
4448e9b270 | ||
|
3b3613dd13 | ||
|
9a789a8032 | ||
|
d61ce704c2 | ||
|
048e003a43 | ||
|
3e3915cfc9 | ||
|
30efe577bb | ||
|
052557897e | ||
|
0e50f0bada | ||
|
d2faf23967 | ||
|
ba69402221 | ||
|
46039f99e9 | ||
|
f2a7c0ada6 | ||
|
890f0c4931 | ||
|
29ff9a39ab | ||
|
4a4a964975 | ||
|
65bb0d35ff | ||
|
7f0a677a09 |
30
Dockerfile
30
Dockerfile
@@ -2,7 +2,7 @@ FROM perl:5
|
|||||||
MAINTAINER Freelock john@freelock.com
|
MAINTAINER Freelock john@freelock.com
|
||||||
|
|
||||||
# Build time variables
|
# Build time variables
|
||||||
ENV LSMB_VERSION 1.5.0-beta3
|
ENV LSMB_VERSION 1.4.25
|
||||||
|
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
@@ -19,8 +19,11 @@ RUN DEBIAN_FRONTENT=noninteractive && \
|
|||||||
libconfig-inifiles-perl libnamespace-autoclean-perl \
|
libconfig-inifiles-perl libnamespace-autoclean-perl \
|
||||||
libcarp-always-perl libjson-perl \
|
libcarp-always-perl libjson-perl \
|
||||||
libtemplate-plugin-latex-perl texlive-latex-recommended \
|
libtemplate-plugin-latex-perl texlive-latex-recommended \
|
||||||
libnet-tclink-perl \
|
texlive-latex-base texlive-latex-extra \
|
||||||
|
texlive-xetex \
|
||||||
libxml-twig-perl \
|
libxml-twig-perl \
|
||||||
|
libtex-encode-perl \
|
||||||
|
libdevel-trace-perl \
|
||||||
starman \
|
starman \
|
||||||
postgresql-client-9.4 \
|
postgresql-client-9.4 \
|
||||||
ssmtp
|
ssmtp
|
||||||
@@ -57,28 +60,17 @@ ENV POSTGRES_HOST postgres
|
|||||||
COPY start.sh /usr/bin/start.sh
|
COPY start.sh /usr/bin/start.sh
|
||||||
COPY update_ssmtp.sh /usr/bin/update_ssmtp.sh
|
COPY update_ssmtp.sh /usr/bin/update_ssmtp.sh
|
||||||
|
|
||||||
|
#RUN cpanm \
|
||||||
|
# CGI::Compile
|
||||||
|
|
||||||
|
|
||||||
RUN chown www-data /etc/ssmtp /etc/ssmtp/ssmtp.conf && \
|
RUN chown www-data /etc/ssmtp /etc/ssmtp/ssmtp.conf && \
|
||||||
chmod +x /usr/bin/update_ssmtp.sh /usr/bin/start.sh && \
|
chmod +x /usr/bin/update_ssmtp.sh /usr/bin/start.sh && \
|
||||||
mkdir -p /var/www
|
mkdir -p /var/www
|
||||||
|
|
||||||
# 1.5 requirements
|
# Work around an aufs bug related to directory permissions:
|
||||||
RUN apt-get install -y \
|
RUN mkdir -p /tmp && \
|
||||||
libpgobject-perl \
|
chmod 1777 /tmp
|
||||||
libpgobject-simple-perl \
|
|
||||||
libpgobject-simple-role-perl \
|
|
||||||
libpgobject-util-dbmethod-perl
|
|
||||||
RUN cpanm -nq \
|
|
||||||
Carton PGObject::Type::BigFloat \
|
|
||||||
PGObject::Composite \
|
|
||||||
PGObject::Type::JSON \
|
|
||||||
PGObject::Type::Composite \
|
|
||||||
PGObject::Type::DateTime \
|
|
||||||
App::LedgerSMB::Admin
|
|
||||||
|
|
||||||
# Not sure why this is not set correctly, and also why
|
|
||||||
# it gets overridden here -- moved to start.sh.
|
|
||||||
# ENV PERL5LIB /usr/local/lib/perl5/site_perl/5.22.0
|
|
||||||
|
|
||||||
# Internal Port Expose
|
# Internal Port Expose
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
8
start.sh
8
start.sh
@@ -13,13 +13,11 @@ if [[ ! -f ledgersmb.conf ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z ${CREATE_DATABASE+x} ]; then
|
if [ ! -z ${CREATE_DATABASE+x} ]; then
|
||||||
perl tools/dbsetup.pl --company $CREATE_DATABASE \
|
perl tools/prepare-company-database.pl --company $CREATE_DATABASE \
|
||||||
--host $POSTGRES_HOST \
|
--host $POSTGRES_HOST \
|
||||||
--postgres_password "$POSTGRES_PASS"
|
--owner postgres \
|
||||||
|
--password "$POSTGRES_PASS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Needed for modules loaded by cpanm
|
|
||||||
export PERL5LIB=/usr/local/lib/perl5/site_perl/5.22.0
|
|
||||||
|
|
||||||
# start ledgersmb
|
# start ledgersmb
|
||||||
exec starman tools/starman.psgi
|
exec starman tools/starman.psgi
|
||||||
|
Reference in New Issue
Block a user