mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 08:10:30 -04:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
728840ce4c | ||
|
5f45abdf2d | ||
|
8afea54d65 | ||
|
326790de44 |
10
Dockerfile
10
Dockerfile
@@ -1,9 +1,13 @@
|
|||||||
FROM perl:5
|
FROM perl:5
|
||||||
MAINTAINER Freelock john@freelock.com
|
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
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
RUN DEBIAN_FRONTENT=noninteractive && \
|
RUN DEBIAN_FRONTENT=noninteractive && \
|
||||||
apt-get update && apt-get -y install \
|
apt-get update && apt-get dist-upgrade -y && apt-get -y install \
|
||||||
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
||||||
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
||||||
libdatetime-format-strptime-perl libdigest-md5-perl \
|
libdatetime-format-strptime-perl libdigest-md5-perl \
|
||||||
@@ -20,12 +24,12 @@ RUN DEBIAN_FRONTENT=noninteractive && \
|
|||||||
texlive-xetex \
|
texlive-xetex \
|
||||||
starman \
|
starman \
|
||||||
libopenoffice-oodoc-perl \
|
libopenoffice-oodoc-perl \
|
||||||
postgresql-client \
|
postgresql-client-9.6 \
|
||||||
lpr \
|
lpr \
|
||||||
ssmtp
|
ssmtp
|
||||||
|
|
||||||
# Build time variables
|
# Build time variables
|
||||||
ENV LSMB_VERSION 1.5.5
|
ENV LSMB_VERSION 1.5.6
|
||||||
|
|
||||||
# Install LedgerSMB
|
# Install LedgerSMB
|
||||||
RUN cd /srv && \
|
RUN cd /srv && \
|
||||||
|
3
start.sh
3
start.sh
@@ -14,6 +14,9 @@ if [[ ! -f ledgersmb.conf ]]; then
|
|||||||
/srv/ledgersmb/ledgersmb.conf
|
/srv/ledgersmb/ledgersmb.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "/tmp/ledgersmb" ]; then
|
||||||
|
mkdir /tmp/ledgersmb
|
||||||
|
fi
|
||||||
# Currently unmaintained/untested
|
# Currently unmaintained/untested
|
||||||
# if [ ! -z ${CREATE_DATABASE+x} ]; then
|
# if [ ! -z ${CREATE_DATABASE+x} ]; then
|
||||||
# perl tools/dbsetup.pl --company $CREATE_DATABASE \
|
# perl tools/dbsetup.pl --company $CREATE_DATABASE \
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ConfiguredComment='# install script update_ssmtp.sh has configured ssmtp'
|
ConfiguredComment='# install script update_ssmtp.sh has configured ssmtp'
|
||||||
grep -qc "$ConfiguredComment" /etc/ssmtp.conf && {
|
grep -qc "$ConfiguredComment" /etc/ssmtp/ssmtp.conf && {
|
||||||
echo "smtp configured."
|
echo "smtp configured."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user