mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 16:20:29 -04:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4448e9b270 | ||
|
3b3613dd13 | ||
|
9a789a8032 | ||
|
d61ce704c2 | ||
|
048e003a43 | ||
|
3e3915cfc9 | ||
|
30efe577bb | ||
|
052557897e | ||
|
0e50f0bada | ||
|
d2faf23967 | ||
|
ba69402221 | ||
|
46039f99e9 | ||
|
f2a7c0ada6 | ||
|
890f0c4931 |
16
Dockerfile
16
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.4
|
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,11 +60,18 @@ 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
|
||||||
|
|
||||||
|
# Work around an aufs bug related to directory permissions:
|
||||||
|
RUN mkdir -p /tmp && \
|
||||||
|
chmod 1777 /tmp
|
||||||
|
|
||||||
# Internal Port Expose
|
# Internal Port Expose
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
#USER www-data
|
#USER www-data
|
||||||
|
@@ -7,8 +7,7 @@ This is a work in progress to make a docker image for running LedgerSMB. It shou
|
|||||||
|
|
||||||
- `1.5`, `dev-master` - Master branch, unstable
|
- `1.5`, `dev-master` - Master branch, unstable
|
||||||
- `1.4`, `latest` - Tip of git 1.4 branch
|
- `1.4`, `latest` - Tip of git 1.4 branch
|
||||||
- `1.4.12` - Latest stable release (not yet built)
|
- `1.3` - Latest 1.3.x release
|
||||||
- `1.3.45` - Last 1.3.x release (not yet built)
|
|
||||||
|
|
||||||
|
|
||||||
# What is LedgerSMB?
|
# What is LedgerSMB?
|
||||||
|
7
start.sh
7
start.sh
@@ -1,11 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ -e /tmp/smtpconfig ]]; then
|
update_ssmtp.sh
|
||||||
echo "smtp configured."
|
|
||||||
else
|
|
||||||
update_ssmtp.sh
|
|
||||||
touch /tmp/smtpconfig
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [[ ! -f ledgersmb.conf ]]; then
|
if [[ ! -f ledgersmb.conf ]]; then
|
||||||
|
@@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
ConfiguredComment='# install script update_ssmtp.sh has configured ssmtp'
|
||||||
|
grep -qc "$ConfiguredComment" /etc/ssmtp.conf && {
|
||||||
|
echo "smtp configured."
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s/\(root=\).*\$/\1$SSMTP_ROOT/g" \
|
-e "s/\(root=\).*\$/\1$SSMTP_ROOT/g" \
|
||||||
@@ -10,3 +15,4 @@ sed -i \
|
|||||||
[ -z "$SSMTP_AUTH_PASS" ] || echo "AuthPass=$SSMTP_AUTH_PASS" >> /etc/ssmtp/ssmtp.conf
|
[ -z "$SSMTP_AUTH_PASS" ] || echo "AuthPass=$SSMTP_AUTH_PASS" >> /etc/ssmtp/ssmtp.conf
|
||||||
[ -z "$SSMTP_AUTH_METHOD" ] || echo "AuthMethod=$SSMTP_AUTH_METHOD" >> /etc/ssmtp/ssmtp.conf
|
[ -z "$SSMTP_AUTH_METHOD" ] || echo "AuthMethod=$SSMTP_AUTH_METHOD" >> /etc/ssmtp/ssmtp.conf
|
||||||
[ -z "$SSMTP_FROMLINE_OVERRIDE" ] || echo "FromLineOverride=$SSMTP_FROMLINE_OVERRIDE" >> /etc/ssmtp/ssmtp.conf
|
[ -z "$SSMTP_FROMLINE_OVERRIDE" ] || echo "FromLineOverride=$SSMTP_FROMLINE_OVERRIDE" >> /etc/ssmtp/ssmtp.conf
|
||||||
|
echo "$ConfiguredComment" >> /etc/ssmtp/ssmtp.conf
|
||||||
|
Reference in New Issue
Block a user