mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-15 16:50:31 -04:00
Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
dbed029289 | ||
|
dfa82a63bf | ||
|
9353e8187f | ||
|
a1ea9d9895 | ||
|
0f8af754bd | ||
|
da48259b68 | ||
|
774e6ef6e2 | ||
|
0d8517ebc4 | ||
|
f7cfcc72ec | ||
|
847efed2d0 | ||
|
9d5b62b6bb | ||
|
e23e85fea8 | ||
|
c4a1a6f1cc | ||
|
90764650c5 | ||
|
795fdf3f95 | ||
|
6cceef46f6 |
28
Dockerfile
28
Dockerfile
@@ -1,15 +1,27 @@
|
|||||||
FROM debian:jessie
|
FROM debian:jessie-slim
|
||||||
MAINTAINER Freelock john@freelock.com
|
MAINTAINER Freelock john@freelock.com
|
||||||
|
|
||||||
# Build time variables
|
# Build time variables
|
||||||
ENV LSMB_VERSION 1.5.14
|
ENV LSMB_VERSION 1.5.17
|
||||||
|
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
# Without libclass-c3-xs-perl, performance is terribly slow...
|
# Without libclass-c3-xs-perl, performance is terribly slow...
|
||||||
|
|
||||||
|
# Installing psql client directly from instructions at https://wiki.postgresql.org/wiki/Apt
|
||||||
|
# That mitigates issues where the PG instance is running a newer version than this container
|
||||||
|
|
||||||
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf && \
|
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf && \
|
||||||
|
mkdir -p /usr/share/man/man1/ && \
|
||||||
|
mkdir -p /usr/share/man/man2/ && \
|
||||||
|
mkdir -p /usr/share/man/man3/ && \
|
||||||
|
mkdir -p /usr/share/man/man4/ && \
|
||||||
|
mkdir -p /usr/share/man/man5/ && \
|
||||||
|
mkdir -p /usr/share/man/man6/ && \
|
||||||
|
mkdir -p /usr/share/man/man7/ && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update && \
|
DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||||
apt-get dist-upgrade -y && apt-get -y install \
|
apt-get dist-upgrade -y && apt-get -y install \
|
||||||
|
curl wget ca-certificates \
|
||||||
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 \
|
||||||
@@ -23,14 +35,17 @@ RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >>
|
|||||||
libtemplate-plugin-latex-perl libtex-encode-perl \
|
libtemplate-plugin-latex-perl libtex-encode-perl \
|
||||||
libmoosex-nonmoose-perl libclass-c3-xs-perl \
|
libmoosex-nonmoose-perl libclass-c3-xs-perl \
|
||||||
texlive-latex-recommended \
|
texlive-latex-recommended \
|
||||||
texlive-xetex \
|
texlive-xetex fonts-liberation \
|
||||||
starman \
|
starman \
|
||||||
libopenoffice-oodoc-perl \
|
libopenoffice-oodoc-perl \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
ssmtp \
|
ssmtp \
|
||||||
lsb-release && \
|
lsb-release && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get update && \
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
||||||
apt-get -y install git cpanminus make gcc libperl-dev && \
|
(wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -) && \
|
||||||
|
DEBIAN_FRONTEND="noninteractive" apt-get -y update && \
|
||||||
|
DEBIAN_FRONTEND="noninteractive" apt-get -y install postgresql-client && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get -y install git cpanminus make gcc libperl-dev && \
|
||||||
curl -Lo /tmp/ledgersmb-$LSMB_VERSION.tar.gz "https://download.ledgersmb.org/f/Releases/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz" && \
|
curl -Lo /tmp/ledgersmb-$LSMB_VERSION.tar.gz "https://download.ledgersmb.org/f/Releases/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz" && \
|
||||||
tar -xvzf /tmp/ledgersmb-$LSMB_VERSION.tar.gz --directory /srv && \
|
tar -xvzf /tmp/ledgersmb-$LSMB_VERSION.tar.gz --directory /srv && \
|
||||||
rm -f /tmp/ledgersmb-$LSMB_VERSION.tar.gz && \
|
rm -f /tmp/ledgersmb-$LSMB_VERSION.tar.gz && \
|
||||||
@@ -43,7 +58,8 @@ RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >>
|
|||||||
apt-get autoremove -y && \
|
apt-get autoremove -y && \
|
||||||
apt-get autoclean && \
|
apt-get autoclean && \
|
||||||
rm -rf ~/.cpanm/ && \
|
rm -rf ~/.cpanm/ && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/* /usr/share/man/*
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /srv/ledgersmb
|
WORKDIR /srv/ledgersmb
|
||||||
|
|
||||||
|
21
README.md
21
README.md
@@ -118,14 +118,14 @@ without needing to enter the name of that database on the login.pl login screen.
|
|||||||
|
|
||||||
## Mail configuration
|
## Mail configuration
|
||||||
|
|
||||||
* `SSMTP_ROOT`
|
* `SSMTP_ROOT` (config: `Root`)
|
||||||
* `SSMTP_MAILHUB`
|
* `SSMTP_MAILHUB` (config: `Mailhub`)
|
||||||
* `SSMTP_HOSTNAME`
|
* `SSMTP_HOSTNAME` (config: `Hostname`)
|
||||||
* `SSMTP_USE_STARTTLS`
|
* `SSMTP_USE_STARTTLS` (config: `UseSTARTTLS`)
|
||||||
* `SSMTP_AUTH_USER`
|
* `SSMTP_AUTH_USER` (config: `AuthUser`)
|
||||||
* `SSMTP_AUTH_PASS`
|
* `SSMTP_AUTH_PASS` (config: `AuthPass`)
|
||||||
* `SSMTP_METHOD`
|
* `SSMTP_AUTH_METHOD` (config: `AuthMethod`)
|
||||||
* `SSMTP_FROMLINE_OVERRIDE`
|
* `SSMTP_FROMLINE_OVERRIDE` (config: `FromLineOverride`)
|
||||||
|
|
||||||
These variables are used to set outgoing SMTP defaults.
|
These variables are used to set outgoing SMTP defaults.
|
||||||
|
|
||||||
@@ -137,6 +137,9 @@ already configured to relay mail, this should relay successfully with only
|
|||||||
the root and hostname set.
|
the root and hostname set.
|
||||||
|
|
||||||
Use the other environment variables to relay mail through a different host.
|
Use the other environment variables to relay mail through a different host.
|
||||||
|
Use the [ssmtp.conf man
|
||||||
|
page](https://www.systutorials.com/docs/linux/man/5-ssmtp.conf/) to look up
|
||||||
|
the meaning and function of each of the mail configuration keys.
|
||||||
|
|
||||||
# Troubleshooting/Developing
|
# Troubleshooting/Developing
|
||||||
|
|
||||||
@@ -150,7 +153,7 @@ and the startup & config script is /usr/bin/start.sh.
|
|||||||
|
|
||||||
If you have any problems with or questions about this image or LedgerSMB, please contact us on the [mailing list](http://ledgersmb.org/topic/support/mailing-lists-rss-and-nntp-feeds) or through a [GitHub issue](https://github.com/ledgersmb/ledgersmb-docker/issues).
|
If you have any problems with or questions about this image or LedgerSMB, please contact us on the [mailing list](http://ledgersmb.org/topic/support/mailing-lists-rss-and-nntp-feeds) or through a [GitHub issue](https://github.com/ledgersmb/ledgersmb-docker/issues).
|
||||||
|
|
||||||
You can also reach some of the official LedgerSMB maintainers via the `#ledgersmb` IRC channel on [Freenode](https://freenode.net), or on the bridged [Matrix](https://matrix.org) room in [#ledgersmb:matrix.org](https://matrix.to/#/#ledgersmb:matrix.org). The [Vector.im](https://vector.im/beta/#/room/#ledgersmb:matrix.org) Matrix client is highly recommended.
|
You can also reach some of the official LedgerSMB maintainers via the `#ledgersmb` IRC channel on [Freenode](https://freenode.net), or on the bridged [Matrix](https://matrix.org) room in [#ledgersmb:matrix.org](https://matrix.to/#/#ledgersmb:matrix.org). The [Riot.im](https://riot.im/app/#/room/#ledgersmb:matrix.org) Matrix client is highly recommended.
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
Reference in New Issue
Block a user