Compare commits

...

29 Commits

Author SHA1 Message Date
Erik Huelsmann
2056ad56cb * Automatic Dockerfile update by release process 2021-08-25 16:50:01 -04:00
Erik Huelsmann
3658a14ccd * Automatic Dockerfile update by release process 2021-08-23 07:27:15 -04:00
Erik Huelsmann
f114db8fcb Print commands as they are executed (debugging purposes) 2021-08-13 23:57:07 +02:00
Erik Huelsmann
2849671500 Make the artifact location into a build ARG 2021-08-13 23:43:51 +02:00
Erik Huelsmann
bdebd44ae0 Update README.md 2021-07-10 23:54:48 +02:00
Erik Huelsmann
c95e4b4b9d Update README.md 2021-07-10 23:50:06 +02:00
Erik Huelsmann
7c89b26987 * Automatic Dockerfile update by release process 2021-07-08 18:07:40 -04:00
Erik Huelsmann
cd7f62abc6 * Automatic Dockerfile update by release process 2021-06-14 14:42:45 -04:00
Erik Huelsmann
d518733d23 * Automatic Dockerfile update by release process 2021-06-03 14:41:51 -04:00
Erik Huelsmann
53c4e6ac92 * Automatic Dockerfile update by release process 2021-05-29 15:02:16 -04:00
Erik Huelsmann
78b902ddc9 * Automatic Dockerfile update by release process 2021-05-02 12:54:03 -04:00
Erik Huelsmann
c1fee69d52 * Automatic Dockerfile update by release process 2021-03-21 08:26:45 -04:00
Erik Huelsmann
33d4019521 * Automatic Dockerfile update by release process 2021-01-31 18:28:17 +00:00
Erik Huelsmann
2a138c50f2 * Automatic Dockerfile update by release process 2020-12-14 22:00:15 +00:00
Erik Huelsmann
11baa4c0a0 * Automatic Dockerfile update by release process 2020-11-18 20:39:19 +00:00
Erik Huelsmann
7e914dbfd1 * Automatic Dockerfile update by release process 2020-09-27 18:57:27 +00:00
Erik Huelsmann
1a1d294e31 * Automatic Dockerfile update by release process 2020-09-18 07:49:04 +00:00
Erik Huelsmann
44b544c8ba * Automatic Dockerfile update by release process 2020-09-13 19:20:04 +00:00
Erik Huelsmann
5dc7176b3f * Automatic Dockerfile update by release process 2020-09-04 19:18:29 +00:00
Erik Huelsmann
f25dee9473 * Automatic Dockerfile update by release process 2020-08-28 21:35:51 +00:00
Erik Huelsmann
0332a27535 Re #23: Add dependency on texlive-fonts-recommended 2020-08-24 22:46:32 +02:00
Erik Huelsmann
19c6b2d6df * Automatic Dockerfile update by release process 2020-07-25 09:08:22 +00:00
Erik Huelsmann
6ff37dc952 * Automatic Dockerfile update by release process 2020-06-29 09:25:07 +00:00
Erik Huelsmann
da234d021d * Automatic Dockerfile update by release process 2020-06-21 21:05:58 +00:00
Erik Huelsmann
ffb7ff1a09 Map the LedgerSMB port (5762) explicitly to local loopback (only) 2020-06-17 21:44:13 +02:00
Erik Huelsmann
966c1fd043 * Automatic Dockerfile update by release process 2020-05-31 12:42:56 +00:00
Erik Huelsmann
ba98f4c5c0 Update README to include 1.8 tag 2020-05-31 11:22:32 +02:00
Erik Huelsmann
20bd26798a * Automatic Dockerfile update by release process 2020-05-23 21:50:43 +00:00
Erik Huelsmann
f4bc2c874f * Automatic Dockerfile update by release process 2020-05-06 19:12:40 +00:00
3 changed files with 16 additions and 16 deletions

View File

@@ -2,8 +2,9 @@ FROM debian:stretch-slim
MAINTAINER Freelock john@freelock.com MAINTAINER Freelock john@freelock.com
# Build time variables # Build time variables
ARG LSMB_VERSION="1.7.12" ARG LSMB_VERSION="1.7.34"
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"
# 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...
@@ -21,7 +22,8 @@ ARG LSMB_DL_DIR="Releases"
# libplack-middleware-builder-conditionals-perl \ # libplack-middleware-builder-conditionals-perl \
# libplack-request-withencoding-perl \ # libplack-request-withencoding-perl \
#libversion-compare-perl #libversion-compare-perl
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf && \ RUN set -x ; \
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/man1/ && \
mkdir -p /usr/share/man/man2/ && \ mkdir -p /usr/share/man/man2/ && \
mkdir -p /usr/share/man/man3/ && \ mkdir -p /usr/share/man/man3/ && \
@@ -54,7 +56,7 @@ 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 \
libclass-c3-xs-perl libclass-accessor-lite-perl \ libclass-c3-xs-perl libclass-accessor-lite-perl \
libnet-cidr-lite-perl \ libnet-cidr-lite-perl \
texlive-latex-recommended \ texlive-latex-recommended texlive-fonts-recommended \
texlive-xetex fonts-liberation \ texlive-xetex fonts-liberation \
starman \ starman \
libopenoffice-oodoc-perl \ libopenoffice-oodoc-perl \
@@ -65,7 +67,7 @@ RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >>
DEBIAN_FRONTEND="noninteractive" apt-get -q -y update && \ DEBIAN_FRONTEND="noninteractive" apt-get -q -y update && \
DEBIAN_FRONTEND="noninteractive" apt-get -q -y install postgresql-client && \ DEBIAN_FRONTEND="noninteractive" apt-get -q -y install postgresql-client && \
DEBIAN_FRONTEND="noninteractive" apt-get -q -y install git cpanminus make gcc libperl-dev && \ DEBIAN_FRONTEND="noninteractive" apt-get -q -y install git cpanminus make gcc libperl-dev && \
wget --quiet -O /tmp/ledgersmb-$LSMB_VERSION.tar.gz "https://download.ledgersmb.org/f/$LSMB_DL_DIR/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz" && \ 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 --notest \ cpanm --notest \

View File

@@ -4,8 +4,9 @@ Dockerfile for LedgerSMB Docker image
# Supported tags # Supported tags
- `1.8` - Preview version for the 1.8 branch
- `1.7`, `1.7.x`, `latest` - Latest official release from 1.7 branch - `1.7`, `1.7.x`, `latest` - Latest official release from 1.7 branch
- `1.6`, `1.6.x` - Latest 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
- `1.4`, `1.4.42` - Last official release from 1.4 branch - `1.4`, `1.4.42` - Last official release from 1.4 branch
- `master` - Master branch from git, unstable - `master` - Master branch from git, unstable
@@ -28,9 +29,9 @@ This image is designed to be used in conjunction with a running PostgreSQL
instance (such as may be provided through a separate image). instance (such as may be provided through a separate image).
This image exposes port 5762 running a Starman HTTP application server. We This image exposes port 5762 running a Starman HTTP application server. We
do not recommend exposing this port publicly, because do recommend not exposing this port publicly, because
1. The Starman author recommends it 1. The Starman author recommends not exposing it
2. We strongly recommend TLS encryption of all application traffic 2. We strongly recommend TLS encryption of all application traffic
While the exposed port can be used for quick evaluation, it's recommended While the exposed port can be used for quick evaluation, it's recommended
@@ -42,7 +43,7 @@ could require additional setup of a mail service or CUPS printer service.
# 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
manually with docker only. or manually with docker only.
## Docker-Compose installation and start ## Docker-Compose installation and start
@@ -69,6 +70,9 @@ The database username and password are:
password: abc password: abc
``` ```
From here, follow the steps as detailed in the instructions for
[preparing for first use](https://ledgersmb.org/content/preparing-ledgersmb-17-first-use).
## Manual installation ## Manual installation
This section assumes availability of a PostgreSQL server to attach to the This section assumes availability of a PostgreSQL server to attach to the

View File

@@ -32,14 +32,8 @@ services:
networks: networks:
- internal - internal
- default - default
# Uncomment the 'ports' section to map the LedgerSMB container port (5762) ports:
# to the host's port of the same number, thus making LedgerSMB - "127.0.0.1:5762:5762"
# available on http://<host-dns-or-ip>:5762/
# SECURITY NOTE: Do this for evaluation purposes only!
# In production, be sure to use SSL/TLS to protect user's passwords
# and other sensitive data
# ports:
# - "5762:5762"
environment: environment:
# The LSMB_WORKERS environment variable lets you select the number # The LSMB_WORKERS environment variable lets you select the number
# of processes serving HTTP requests. The default number of 2 workers # of processes serving HTTP requests. The default number of 2 workers