mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 16:20:29 -04:00
Compare commits
27 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
ae0cea34b3 | ||
|
f37678c275 | ||
|
b28f5b693b | ||
|
1f20ab08f1 | ||
|
34937fbd4f | ||
|
c6968b5397 | ||
|
5168936493 | ||
|
49a448c732 | ||
|
27b3e40e72 | ||
|
6593d58698 | ||
|
5a7ec0a2ed | ||
|
236a25b767 | ||
|
943fa166e8 | ||
|
a678ae39a0 | ||
|
3d12e4351d | ||
|
ccd90f04a4 | ||
|
4d316f9019 | ||
|
71f876a253 | ||
|
ab00872e02 | ||
|
483a1110ff | ||
|
a2a625d193 | ||
|
f10924cae9 | ||
|
c13d20651c | ||
|
7771b8c03b | ||
|
1ba89cef50 | ||
|
d7ad535199 | ||
|
ac2553ea17 |
9
.github/no-response.yml
vendored
9
.github/no-response.yml
vendored
@@ -1,9 +0,0 @@
|
|||||||
# Configuration for probot-no-response - https://github.com/probot/no-response
|
|
||||||
|
|
||||||
# Number of days of inactivity before an Issue is closed for lack of response
|
|
||||||
daysUntilClose: 90
|
|
||||||
# Label requiring a response
|
|
||||||
responseRequiredLabel: waiting-for-user
|
|
||||||
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
|
|
||||||
closeComment: >
|
|
||||||
Closing: more than 90 days without user response. Feel free to reopen with your comments.
|
|
15
Dockerfile
15
Dockerfile
@@ -1,11 +1,11 @@
|
|||||||
# Build time variables
|
# Build time variables
|
||||||
|
|
||||||
ARG SRCIMAGE=debian:buster-slim
|
ARG SRCIMAGE=debian:bullseye-slim
|
||||||
|
|
||||||
|
|
||||||
FROM $SRCIMAGE AS builder
|
FROM $SRCIMAGE AS builder
|
||||||
|
|
||||||
ARG LSMB_VERSION="1.8.31"
|
ARG LSMB_VERSION="1.9.5"
|
||||||
ARG LSMB_DL_DIR="Releases"
|
ARG LSMB_DL_DIR="Releases"
|
||||||
ARG ARTIFACT_LOCATION="https://download.ledgersmb.org/f/$LSMB_DL_DIR/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz"
|
ARG ARTIFACT_LOCATION="https://download.ledgersmb.org/f/$LSMB_DL_DIR/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz"
|
||||||
|
|
||||||
@@ -41,13 +41,13 @@ RUN set -x ; \
|
|||||||
|
|
||||||
|
|
||||||
FROM $SRCIMAGE
|
FROM $SRCIMAGE
|
||||||
MAINTAINER Freelock john@freelock.com
|
LABEL org.opencontainers.image.authors="LedgerSMB project <devel@lists.ledgersmb.org>"
|
||||||
|
|
||||||
# Build time variables
|
ARG LSMB_VERSION="1.9.5"
|
||||||
ARG LSMB_VERSION="1.8.31"
|
|
||||||
ARG LSMB_DL_DIR="Releases"
|
ARG LSMB_DL_DIR="Releases"
|
||||||
ARG ARTIFACT_LOCATION="https://download.ledgersmb.org/f/$LSMB_DL_DIR/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz"
|
ARG ARTIFACT_LOCATION="https://download.ledgersmb.org/f/$LSMB_DL_DIR/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz"
|
||||||
|
|
||||||
|
|
||||||
# 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...
|
||||||
|
|
||||||
@@ -56,6 +56,7 @@ ARG ARTIFACT_LOCATION="https://download.ledgersmb.org/f/$LSMB_DL_DIR/$LSMB_VERSI
|
|||||||
# Install Locale::Codes Locale::Country Locale::Language from CPAN to suppress
|
# Install Locale::Codes Locale::Country Locale::Language from CPAN to suppress
|
||||||
# deprecation-as-core-module warning
|
# deprecation-as-core-module warning
|
||||||
|
|
||||||
|
|
||||||
COPY --from=builder /srv/derived-deps /tmp/derived-deps
|
COPY --from=builder /srv/derived-deps /tmp/derived-deps
|
||||||
|
|
||||||
RUN set -x ; \
|
RUN set -x ; \
|
||||||
@@ -67,13 +68,14 @@ RUN set -x ; \
|
|||||||
mkdir -p /usr/share/man/man5/ && \
|
mkdir -p /usr/share/man/man5/ && \
|
||||||
mkdir -p /usr/share/man/man6/ && \
|
mkdir -p /usr/share/man/man6/ && \
|
||||||
mkdir -p /usr/share/man/man7/ && \
|
mkdir -p /usr/share/man/man7/ && \
|
||||||
|
mkdir -p /usr/share/man/man8/ && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y update && \
|
DEBIAN_FRONTEND="noninteractive" apt-get -y update && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y upgrade && \
|
DEBIAN_FRONTEND="noninteractive" apt-get -y upgrade && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y install \
|
DEBIAN_FRONTEND="noninteractive" apt-get -y install \
|
||||||
wget ca-certificates gnupg \
|
wget ca-certificates gnupg \
|
||||||
$( cat /tmp/derived-deps ) \
|
$( cat /tmp/derived-deps ) \
|
||||||
libclass-c3-xs-perl \
|
libclass-c3-xs-perl \
|
||||||
texlive-latex-recommended texlive-fonts-recommended \
|
texlive-plain-generic texlive-latex-recommended texlive-fonts-recommended \
|
||||||
texlive-xetex fonts-liberation \
|
texlive-xetex fonts-liberation \
|
||||||
lsb-release && \
|
lsb-release && \
|
||||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
||||||
@@ -84,7 +86,6 @@ RUN set -x ; \
|
|||||||
wget --quiet -O /tmp/ledgersmb-$LSMB_VERSION.tar.gz "$ARTIFACT_LOCATION" && \
|
wget --quiet -O /tmp/ledgersmb-$LSMB_VERSION.tar.gz "$ARTIFACT_LOCATION" && \
|
||||||
tar -xzf /tmp/ledgersmb-$LSMB_VERSION.tar.gz --directory /srv && \
|
tar -xzf /tmp/ledgersmb-$LSMB_VERSION.tar.gz --directory /srv && \
|
||||||
rm -f /tmp/ledgersmb-$LSMB_VERSION.tar.gz && \
|
rm -f /tmp/ledgersmb-$LSMB_VERSION.tar.gz && \
|
||||||
cpanm --reinstall --notest Locale::Country Locale::Codes Locale::Language && \
|
|
||||||
cpanm --notest \
|
cpanm --notest \
|
||||||
--with-feature=starman \
|
--with-feature=starman \
|
||||||
--with-feature=latex-pdf-ps \
|
--with-feature=latex-pdf-ps \
|
||||||
|
51
README.md
51
README.md
@@ -4,7 +4,8 @@ Dockerfile for LedgerSMB Docker image
|
|||||||
|
|
||||||
# Supported tags
|
# Supported tags
|
||||||
|
|
||||||
- `1.8`, `1.8.x`, `latest` - Latest official release from the 1.8 branch
|
- `1.9`, `1.9.x`, `latest` - Latest official release from the 1.9 branch
|
||||||
|
- `1.8`, `1.8.x` - Latest official release from the 1.8 branch
|
||||||
- `1.7`, `1.7.x` - Latest official release from 1.7 branch
|
- `1.7`, `1.7.x` - Latest official release from 1.7 branch
|
||||||
- `1.6`, `1.6.33` - Last official release from 1.6 branch
|
- `1.6`, `1.6.33` - Last official release from 1.6 branch
|
||||||
- `1.5`, `1.5.30` - Last official release from 1.5 branch
|
- `1.5`, `1.5.30` - Last official release from 1.5 branch
|
||||||
@@ -12,7 +13,7 @@ Dockerfile for LedgerSMB Docker image
|
|||||||
- `master` - Master branch from git, unstable
|
- `master` - Master branch from git, unstable
|
||||||
|
|
||||||
Containers supporting the development process are provided
|
Containers supporting the development process are provided
|
||||||
through the [ledgersmb-dev-docker project](https://github.com/ledgersmb/ledgersmb-dev-docker/blob/master/README.md#getting-started).
|
through the ledgersmb-dev-docker project. See https://github.com/ledgersmb/ledgersmb-dev-docker/blob/master/README.md#getting-started.
|
||||||
|
|
||||||
# What is LedgerSMB?
|
# What is LedgerSMB?
|
||||||
|
|
||||||
@@ -55,25 +56,13 @@ variables, are:
|
|||||||
|
|
||||||
```plain
|
```plain
|
||||||
$ docker-compose pull
|
$ docker-compose pull
|
||||||
$ docker-compose up -d
|
$ docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
This will set up two containers: (1) a PostgreSQL container with persistent
|
This will set up two containers: (1) a PostgreSQL container with persistent
|
||||||
storage which is retained between container updates and (2) a LedgerSMB
|
storage which is retained between container updates and (2) a LedgerSMB
|
||||||
container configured to connect to the PostgreSQL container as its database
|
container configured to connect to the PostgreSQL container as its database
|
||||||
server. The containers will be running in the background and can be stopped
|
server.
|
||||||
and started by running:
|
|
||||||
|
|
||||||
```plain
|
|
||||||
# Stopping the containers
|
|
||||||
$ docker-compose stop
|
|
||||||
|
|
||||||
# Starting the containers
|
|
||||||
$ docker-compose start
|
|
||||||
```
|
|
||||||
|
|
||||||
(Check the status of the containers using `docker-compose ps`; when the
|
|
||||||
containers are running, the `State` column shows `Up`.)
|
|
||||||
|
|
||||||
The database username and password are:
|
The database username and password are:
|
||||||
|
|
||||||
@@ -83,7 +72,7 @@ The database username and password are:
|
|||||||
```
|
```
|
||||||
|
|
||||||
From here, follow the steps as detailed in the instructions for
|
From here, follow the steps as detailed in the instructions for
|
||||||
[preparing for first use](https://ledgersmb.org/content/preparing-ledgersmb-17-first-use).
|
[preparing for first use](https://ledgersmb.org/content/preparing-ledgersmb-19-first-use).
|
||||||
|
|
||||||
## Manual installation
|
## Manual installation
|
||||||
|
|
||||||
@@ -160,8 +149,6 @@ affect the performance experience of users.
|
|||||||
|
|
||||||
## Mail configuration
|
## Mail configuration
|
||||||
|
|
||||||
### 1.8.0 and higher
|
|
||||||
|
|
||||||
As of 1.8.0, the image is based on Debian Buster instead of Debian Stretch;
|
As of 1.8.0, the image is based on Debian Buster instead of Debian Stretch;
|
||||||
with Buster, the `ssmtp` program has been removed from Debian, this image
|
with Buster, the `ssmtp` program has been removed from Debian, this image
|
||||||
had to change strategy. The main application always came with built-in e-mail
|
had to change strategy. The main application always came with built-in e-mail
|
||||||
@@ -178,27 +165,6 @@ The following parameters are now supported to set mail preferences:
|
|||||||
* `LSMB_MAIL_SMTPAUTHMECH`
|
* `LSMB_MAIL_SMTPAUTHMECH`
|
||||||
|
|
||||||
|
|
||||||
### Before 1.8.0
|
|
||||||
|
|
||||||
These variables are used to set outgoing SMTP defaults.
|
|
||||||
|
|
||||||
* `SSMTP_ROOT` (config: `Root` -- DEPRECATED)
|
|
||||||
* `SSMTP_MAILHUB` (config: `Mailhub`)
|
|
||||||
* `SSMTP_HOSTNAME` (config: `Hostname`)
|
|
||||||
* `SSMTP_USE_STARTTLS` (config: `UseSTARTTLS`)
|
|
||||||
* `SSMTP_AUTH_USER` (config: `AuthUser`)
|
|
||||||
* `SSMTP_AUTH_PASS` (config: `AuthPass`)
|
|
||||||
* `SSMTP_AUTH_METHOD` (config: `AuthMethod` -- DEPRECATED)
|
|
||||||
* `SSMTP_FROMLINE_OVERRIDE` (config: `FromLineOverride` -- DEPRECATED)
|
|
||||||
|
|
||||||
`SSMTP_MAILHUB` defaults to the default docker0 interface, so if your host is
|
|
||||||
already configured to relay mail, this should relay successfully with only
|
|
||||||
the root and hostname set.
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
@@ -215,9 +181,8 @@ please contact us on the [mailing list](http://ledgersmb.org/topic/support/maili
|
|||||||
or through a [GitHub issue](https://github.com/ledgersmb/ledgersmb-docker/issues).
|
or through a [GitHub issue](https://github.com/ledgersmb/ledgersmb-docker/issues).
|
||||||
|
|
||||||
You can also reach some of the official LedgerSMB maintainers via the
|
You can also reach some of the official LedgerSMB maintainers via the
|
||||||
`#ledgersmb` IRC channel on [Freenode](https://freenode.net), or on the
|
[Matrix](https://matrix.org) room in [#ledgersmb:matrix.org](https://matrix.to/#/#ledgersmb:matrix.org).
|
||||||
bridged [Matrix](https://matrix.org) room in [#ledgersmb:matrix.org](https://matrix.to/#/#ledgersmb:matrix.org).
|
The [Element](https://app.element.io/#/room/#ledgersmb:matrix.org) Matrix client is highly recommended.
|
||||||
The [Riot.im](https://riot.im/app/#/room/#ledgersmb:matrix.org) Matrix client is highly recommended.
|
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@@ -16,7 +16,7 @@ services:
|
|||||||
# because that allows us to use the default hostname ("postgres")
|
# because that allows us to use the default hostname ("postgres")
|
||||||
# from the LedgerSMB configuration
|
# from the LedgerSMB configuration
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:9.6-alpine
|
image: postgres:12-alpine
|
||||||
environment:
|
environment:
|
||||||
# Replace the password below for a secure setup
|
# Replace the password below for a secure setup
|
||||||
POSTGRES_PASSWORD: abc
|
POSTGRES_PASSWORD: abc
|
||||||
@@ -28,7 +28,7 @@ services:
|
|||||||
lsmb:
|
lsmb:
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
image: ghcr.io/ledgersmb/ledgersmb:1.8
|
image: ledgersmb/ledgersmb:1.9
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- default
|
- default
|
||||||
@@ -50,13 +50,14 @@ services:
|
|||||||
LSMB_WORKERS: 2
|
LSMB_WORKERS: 2
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# LSMB_MAIL_SMTPHOST:
|
# SSMTP_ROOT:
|
||||||
# LSMB_MAIL_SMTPPORT:
|
# SSMTP_HOSTNAME:
|
||||||
# LSMB_MAIL_SMTPTLS:
|
# SSMTP_MAILHUB:
|
||||||
# LSMB_MAIL_SMTPSENDER_HOSTNAME:
|
# SSMTP_AUTH_USER:
|
||||||
# LSMB_MAIL_SMTPUSER:
|
# SSMTP_AUTH_PASS:
|
||||||
# LSMB_MAIL_SMTPPASS:
|
# SSMTP_AUTH_METHOD:
|
||||||
# LSMB_MAIL_SMTPAUTHMECH:
|
# SSMTP_USE_STARTTLS:
|
||||||
|
# SSMTP_FROMLINE_OVERRIDE:
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# The PROXY_IP environment variable lets you set the IP address
|
# The PROXY_IP environment variable lets you set the IP address
|
||||||
|
2
start.sh
2
start.sh
@@ -102,6 +102,6 @@ echo '--------- LEDGERSMB CONFIGURATION --- END'
|
|||||||
|
|
||||||
# ':5762:' suppresses an uninitialized variable warning in starman
|
# ':5762:' suppresses an uninitialized variable warning in starman
|
||||||
# the last colon means "don't connect using tls"; without it, there's a warning
|
# the last colon means "don't connect using tls"; without it, there's a warning
|
||||||
exec starman --listen :5762: --max-workers ${LSMB_WORKERS:-5} \
|
exec starman --listen :5762: --workers ${LSMB_WORKERS:-5} \
|
||||||
-I lib -I old/lib \
|
-I lib -I old/lib \
|
||||||
--preload-app bin/ledgersmb-server.psgi
|
--preload-app bin/ledgersmb-server.psgi
|
||||||
|
Reference in New Issue
Block a user