mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-10-14 08:10:30 -04:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2ed65fd331 | ||
|
8227099206 | ||
|
3a28ec4f27 | ||
|
ac608a9d7e | ||
|
f0f7676e30 | ||
|
85871e77fd | ||
|
4f9af73c13 | ||
|
87baa6c4b3 | ||
|
1ec5bf1ef4 | ||
|
987ff7e540 | ||
|
f311ceeb80 | ||
|
12e8cfa41b | ||
|
7c54656362 | ||
|
6dd3c079fe |
35
Dockerfile
35
Dockerfile
@@ -5,7 +5,7 @@ ARG SRCIMAGE=debian:bookworm-slim
|
|||||||
|
|
||||||
FROM $SRCIMAGE AS builder
|
FROM $SRCIMAGE AS builder
|
||||||
|
|
||||||
ARG LSMB_VERSION="1.12.5"
|
ARG LSMB_VERSION="1.12.13"
|
||||||
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"
|
||||||
|
|
||||||
@@ -51,17 +51,15 @@ 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.12.5"
|
ARG LSMB_VERSION="1.12.13"
|
||||||
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
|
### PACKAGE REQUIREMENTS RATIONALE
|
||||||
# Without libclass-c3-xs-perl, performance is terribly slow...
|
#
|
||||||
|
# postgresql-client(from apt.postgresql.org): reduces chances running a newer server than this client
|
||||||
# Installing psql client directly from instructions at https://wiki.postgresql.org/wiki/Apt
|
# fonts-liberation: installed for compatibility with templates from 1.8 and earlier
|
||||||
# That mitigates issues where the PG instance is running a newer version than this container
|
|
||||||
|
|
||||||
|
|
||||||
COPY --from=builder /srv/derived-deps /tmp/derived-deps
|
COPY --from=builder /srv/derived-deps /tmp/derived-deps
|
||||||
|
|
||||||
@@ -80,7 +78,6 @@ RUN set -x ; \
|
|||||||
DEBIAN_FRONTEND="noninteractive" apt-get -q -y install \
|
DEBIAN_FRONTEND="noninteractive" apt-get -q -y install \
|
||||||
wget ca-certificates gnupg iproute2 \
|
wget ca-certificates gnupg iproute2 \
|
||||||
$( cat /tmp/derived-deps ) \
|
$( cat /tmp/derived-deps ) \
|
||||||
libclass-c3-xs-perl \
|
|
||||||
texlive-plain-generic 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 postgresql-common && \
|
lsb-release postgresql-common && \
|
||||||
@@ -111,18 +108,18 @@ WORKDIR /srv/ledgersmb
|
|||||||
## MAIL
|
## MAIL
|
||||||
# '__CONTAINER_GATEWAY__' is a magic value which will be substituted
|
# '__CONTAINER_GATEWAY__' is a magic value which will be substituted
|
||||||
# with the actual gateway IP address
|
# with the actual gateway IP address
|
||||||
ENV LSMB_MAIL_SMTPHOST __CONTAINER_GATEWAY__
|
ENV LSMB_MAIL_SMTPHOST=__CONTAINER_GATEWAY__
|
||||||
#ENV LSMB_MAIL_SMTPPORT 25
|
#ENV LSMB_MAIL_SMTPPORT=25
|
||||||
#ENV LSMB_MAIL_SMTPSENDER_HOSTNAME (container hostname)
|
#ENV LSMB_MAIL_SMTPSENDER_HOSTNAME=(container hostname)
|
||||||
#ENV LSMB_MAIL_SMTPTLS
|
#ENV LSMB_MAIL_SMTPTLS=
|
||||||
#ENV LSMB_MAIL_SMTPUSER
|
#ENV LSMB_MAIL_SMTPUSER=
|
||||||
#ENV LSMB_MAIL_SMTPPASS
|
#ENV LSMB_MAIL_SMTPPASS=
|
||||||
#ENV LSMB_MAIL_SMTPAUTHMECH
|
#ENV LSMB_MAIL_SMTPAUTHMECH=
|
||||||
|
|
||||||
## DATABASE
|
## DATABASE
|
||||||
ENV POSTGRES_HOST postgres
|
ENV POSTGRES_HOST=postgres
|
||||||
ENV POSTGRES_PORT 5432
|
ENV POSTGRES_PORT=5432
|
||||||
ENV DEFAULT_DB lsmb
|
ENV DEFAULT_DB=lsmb
|
||||||
|
|
||||||
COPY start.sh /usr/local/bin/start.sh
|
COPY start.sh /usr/local/bin/start.sh
|
||||||
|
|
||||||
|
@@ -58,6 +58,8 @@ to add the TLS layer by applying Nginx or Apache as reverse proxy.
|
|||||||
Enabling optional functionalities such as outgoing e-mail and printing
|
Enabling optional functionalities such as outgoing e-mail and printing
|
||||||
could require additional setup of a mail service or CUPS printer service.
|
could require additional setup of a mail service or CUPS printer service.
|
||||||
|
|
||||||
|
❌ Do not use unofficial or AI-generated Docker Compose examples. These are often incomplete, break silently, or skip required services.
|
||||||
|
|
||||||
# How to use this image
|
# How to use this image
|
||||||
|
|
||||||
This image can be installed either automatically with the Docker compose file
|
This image can be installed either automatically with the Docker compose file
|
||||||
|
21
build
Executable file
21
build
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
if [[ -n "${SET_LATEST_TAG:-}" ]]
|
||||||
|
then
|
||||||
|
latest_tags="-t ledgersmb/ledgersmb:latest -t ghcr.io/ledgersmb/ledgersmb:latest"
|
||||||
|
else
|
||||||
|
latest_tags=
|
||||||
|
fi
|
||||||
|
|
||||||
|
${DOCKER:-docker} buildx build \
|
||||||
|
--progress plain \
|
||||||
|
--platform ${PLATFORM:-linux/amd64,linux/arm64,linux/arm/v7} \
|
||||||
|
--build-arg "ARTIFACT_LOCATION=$ARTIFACT_LOCATION" \
|
||||||
|
-t ledgersmb/ledgersmb:$BRANCH \
|
||||||
|
-t ledgersmb/ledgersmb:$VERSION \
|
||||||
|
-t ghcr.io/ledgersmb/ledgersmb:$BRANCH \
|
||||||
|
-t ghcr.io/ledgersmb/ledgersmb:$VERSION \
|
||||||
|
$latest_tags \
|
||||||
|
--push .
|
Reference in New Issue
Block a user