mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-19 02:30:33 -04:00
Compare commits
8 Commits
1.5.0-beta
...
1.3
Author | SHA1 | Date | |
---|---|---|---|
|
5cbc5e6f7f | ||
|
a3409267f4 | ||
|
b66d8bbfee | ||
|
503569f472 | ||
|
29ff9a39ab | ||
|
4a4a964975 | ||
|
65bb0d35ff | ||
|
7f0a677a09 |
22
Dockerfile
22
Dockerfile
@@ -1,8 +1,8 @@
|
|||||||
FROM perl:5
|
FROM debian:jessie
|
||||||
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.3
|
||||||
|
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
@@ -62,24 +62,6 @@ 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,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