mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-19 02:30:33 -04:00
Compare commits
9 Commits
1.3
...
1.5.0-beta
Author | SHA1 | Date | |
---|---|---|---|
|
d1ce52d26f | ||
|
2679a71a79 | ||
|
11b9c43044 | ||
|
aa6a9d5b12 | ||
|
30a4f5ea91 | ||
|
2235f035a0 | ||
|
e20f3a1899 | ||
|
07db28af99 | ||
|
2f7155e599 |
22
Dockerfile
22
Dockerfile
@@ -1,8 +1,8 @@
|
|||||||
FROM debian:jessie
|
FROM perl:5
|
||||||
MAINTAINER Freelock john@freelock.com
|
MAINTAINER Freelock john@freelock.com
|
||||||
|
|
||||||
# Build time variables
|
# Build time variables
|
||||||
ENV LSMB_VERSION 1.3
|
ENV LSMB_VERSION 1.5.0-beta3
|
||||||
|
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
@@ -62,6 +62,24 @@ 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
|
||||||
|
RUN apt-get install -y \
|
||||||
|
libpgobject-perl \
|
||||||
|
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
|
||||||
#USER www-data
|
#USER www-data
|
||||||
|
8
start.sh
8
start.sh
@@ -13,11 +13,13 @@ if [[ ! -f ledgersmb.conf ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z ${CREATE_DATABASE+x} ]; then
|
if [ ! -z ${CREATE_DATABASE+x} ]; then
|
||||||
perl tools/prepare-company-database.pl --company $CREATE_DATABASE \
|
perl tools/dbsetup.pl --company $CREATE_DATABASE \
|
||||||
--host $POSTGRES_HOST \
|
--host $POSTGRES_HOST \
|
||||||
--owner postgres \
|
--postgres_password "$POSTGRES_PASS"
|
||||||
--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