mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 16:20:29 -04:00
Compare commits
11 Commits
1.11.0-rc1
...
1.11.1
Author | SHA1 | Date | |
---|---|---|---|
|
413a63161c | ||
|
7f7aa41a27 | ||
|
6f4d5cba73 | ||
|
3f3ca9dd7f | ||
|
5d1823f88a | ||
|
81a38b3040 | ||
|
93c7b4c77e | ||
|
096350ad7b | ||
|
9cc752a0ff | ||
|
7a17a8630f | ||
|
ee863b6f3d |
12
Dockerfile
12
Dockerfile
@@ -5,8 +5,8 @@ ARG SRCIMAGE=debian:bookworm-slim
|
|||||||
|
|
||||||
FROM $SRCIMAGE AS builder
|
FROM $SRCIMAGE AS builder
|
||||||
|
|
||||||
ARG LSMB_VERSION="1.11.0-rc1"
|
ARG LSMB_VERSION="1.11.1"
|
||||||
ARG LSMB_DL_DIR="Beta 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"
|
||||||
|
|
||||||
|
|
||||||
@@ -51,8 +51,8 @@ LABEL org.opencontainers.image.description="LedgerSMB is a full featured double-
|
|||||||
the LedgerSMB project is to bring high quality ERP and accounting capabilities\
|
the LedgerSMB project is to bring high quality ERP and accounting capabilities\
|
||||||
to Small and Midsize Businesses."
|
to Small and Midsize Businesses."
|
||||||
|
|
||||||
ARG LSMB_VERSION="1.11.0-rc1"
|
ARG LSMB_VERSION="1.11.1"
|
||||||
ARG LSMB_DL_DIR="Beta 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"
|
||||||
|
|
||||||
|
|
||||||
@@ -126,7 +126,9 @@ ENV DEFAULT_DB lsmb
|
|||||||
COPY start.sh /usr/local/bin/start.sh
|
COPY start.sh /usr/local/bin/start.sh
|
||||||
|
|
||||||
RUN chmod +x /usr/local/bin/start.sh && \
|
RUN chmod +x /usr/local/bin/start.sh && \
|
||||||
mkdir -p /var/www
|
mkdir -p /var/www && \
|
||||||
|
mkdir -p /srv/ledgersmb/local/conf && \
|
||||||
|
chown -R www-data /srv/ledgersmb/local
|
||||||
|
|
||||||
# Work around an aufs bug related to directory permissions:
|
# Work around an aufs bug related to directory permissions:
|
||||||
RUN mkdir -p /tmp && chmod 1777 /tmp
|
RUN mkdir -p /tmp && chmod 1777 /tmp
|
||||||
|
@@ -4,8 +4,9 @@ Dockerfile for LedgerSMB Docker image
|
|||||||
|
|
||||||
# Supported tags
|
# Supported tags
|
||||||
|
|
||||||
- `1.10`, `1.10.x`, `latest` - Latest official release from the 1.10 branch
|
- `1.11`, `1.11.x`, `latest` - Latest official release from the 1.11 branch
|
||||||
- `1.9`, `1.9.x` - Latest official release from the 1.9 branch
|
- `1.10`, `1.10.x` - Latest official release from the 1.10 branch
|
||||||
|
- `1.9`, `1.9.30` - Last official release from the 1.9 branch (End-of-Life)
|
||||||
- `1.8`, `1.8.31` - Last official release from the 1.8 branch (End-of-Life)
|
- `1.8`, `1.8.31` - Last official release from the 1.8 branch (End-of-Life)
|
||||||
- `1.7`, `1.7.41` - Last official release from the 1.7 branch (End-of-Life)
|
- `1.7`, `1.7.41` - Last official release from the 1.7 branch (End-of-Life)
|
||||||
- `1.6`, `1.6.33` - Last official release from the 1.6 branch (End-of-Life)
|
- `1.6`, `1.6.33` - Last official release from the 1.6 branch (End-of-Life)
|
||||||
|
@@ -31,15 +31,15 @@ services:
|
|||||||
lsmb:
|
lsmb:
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
image: ghcr.io/ledgersmb/ledgersmb:1.10
|
image: ghcr.io/ledgersmb/ledgersmb:1.11
|
||||||
volumes:
|
|
||||||
# In order to store the configuration outside the image, allowing it to
|
# In order to store the configuration outside the image, allowing it to
|
||||||
# be edited between container restarts, uncomment the section below and
|
# be edited between container restarts, uncomment the section below and
|
||||||
# change the 'source' to the directory where you want the configuration
|
# change the 'source' to the directory where you want the configuration
|
||||||
# to be stored.
|
# to be stored.
|
||||||
# - type: bind
|
# volumes:
|
||||||
# - source: /home/ledgersmb/conf
|
# - type: bind
|
||||||
# - target: /srv/ledgersmb/local/conf
|
# source: /home/ledgersmb/conf
|
||||||
|
# target: /srv/ledgersmb/local/conf
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- default
|
- default
|
||||||
|
24
start.sh
24
start.sh
@@ -71,27 +71,27 @@ fi
|
|||||||
if [[ ! -f ./local/conf/ledgersmb.yaml ]]; then
|
if [[ ! -f ./local/conf/ledgersmb.yaml ]]; then
|
||||||
cat <<EOF >./local/conf/ledgersmb.yaml
|
cat <<EOF >./local/conf/ledgersmb.yaml
|
||||||
paths:
|
paths:
|
||||||
$class: Beam::Wire
|
\$class: Beam::Wire
|
||||||
config:
|
config:
|
||||||
UI: ./UI/
|
UI: ./UI/
|
||||||
UI_cache: lsmb_templates/
|
UI_cache: lsmb_templates/
|
||||||
|
|
||||||
db:
|
db:
|
||||||
$class: LedgerSMB::Database::Factory
|
\$class: LedgerSMB::Database::Factory
|
||||||
connect_data:
|
connect_data:
|
||||||
host: $POSTGRES_HOST
|
host: ${POSTGRES_HOST:-postgres}
|
||||||
port: $POSTGRES_PORT
|
port: ${POSTGRES_PORT:-5432}
|
||||||
|
|
||||||
mail:
|
mail:
|
||||||
transport:
|
transport:
|
||||||
$class: LedgerSMB::Mailer::TransportSMTP
|
\$class: LedgerSMB::Mailer::TransportSMTP
|
||||||
host: $LSMB_MAIL_SMTPHOST
|
host: $LSMB_MAIL_SMTPHOST
|
||||||
port: $LSMB_MAIL_SMTPPORT
|
port: $LSMB_MAIL_SMTPPORT
|
||||||
helo: $LSMB_MAIL_SMTPSENDER_HOSTNAME
|
helo: $LSMB_MAIL_SMTPSENDER_HOSTNAME
|
||||||
tls: $LSMB_MAIL_SMTPTLS
|
tls: $LSMB_MAIL_SMTPTLS
|
||||||
|
|
||||||
miscellaneous:
|
miscellaneous:
|
||||||
$class: Beam::Wire
|
\$class: Beam::Wire
|
||||||
config:
|
config:
|
||||||
proxy_ip: ${PROXY_IP:-172.17.0.1/12}
|
proxy_ip: ${PROXY_IP:-172.17.0.1/12}
|
||||||
|
|
||||||
@@ -101,9 +101,9 @@ ui:
|
|||||||
lifecycle: eager
|
lifecycle: eager
|
||||||
args:
|
args:
|
||||||
cache:
|
cache:
|
||||||
$ref: paths/UI_cache
|
\$ref: paths/UI_cache
|
||||||
root:
|
root:
|
||||||
$ref: paths/UI
|
\$ref: paths/UI
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [[ -n "" ]]
|
if [[ -n "" ]]
|
||||||
@@ -113,7 +113,7 @@ mail:
|
|||||||
transport:
|
transport:
|
||||||
sasl_password: ''
|
sasl_password: ''
|
||||||
sasl_username:
|
sasl_username:
|
||||||
$class: Authen::SASL
|
\$class: Authen::SASL
|
||||||
mechanism: $LSMB_MAIL_SMTPAUTHMECH
|
mechanism: $LSMB_MAIL_SMTPAUTHMECH
|
||||||
callback:
|
callback:
|
||||||
user: $LSMB_MAIL_SMTPUSER
|
user: $LSMB_MAIL_SMTPUSER
|
||||||
@@ -127,12 +127,14 @@ fi
|
|||||||
# starman instance (instead of just the worker, which will immediately
|
# starman instance (instead of just the worker, which will immediately
|
||||||
# get restarted) on error; it also has a positive effect on memory use
|
# get restarted) on error; it also has a positive effect on memory use
|
||||||
|
|
||||||
|
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-./local/conf/ledgersmb.yaml}
|
||||||
|
export LSMB_CONFIG_FILE
|
||||||
echo '--------- LEDGERSMB CONFIGURATION: ledgersmb.conf'
|
echo '--------- LEDGERSMB CONFIGURATION: ledgersmb.conf'
|
||||||
cat ${LSMB_CONFIG_FILE:-ledgersmb.conf}
|
cat ${LSMB_CONFIG_FILE}
|
||||||
echo '--------- LEDGERSMB CONFIGURATION --- END'
|
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: --workers ${LSMB_WORKERS:-5} \
|
exec starman --listen 0.0.0.0: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