Add missing Devel::StackTrace and use minit as PID1
This commit is contained in:
parent
7feb6c5513
commit
8451fb2b2d
|
@ -1,4 +1,4 @@
|
|||
FROM danielberteaud/alma:9.24.1-5
|
||||
FROM danielberteaud/alma:9.24.1-6
|
||||
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
|
||||
|
||||
ARG LLNG_VERSION=2.18.1
|
||||
|
@ -29,6 +29,7 @@ RUN set -eux &&\
|
|||
uwsgi-plugin-psgi \
|
||||
lasso \
|
||||
lasso-perl \
|
||||
perl-Devel-StackTrace \
|
||||
perl-DBD-Pg \
|
||||
perl-Cache-Cache \
|
||||
perl-Apache-Session-Browseable \
|
||||
|
@ -50,4 +51,5 @@ RUN set -eux &&\
|
|||
COPY root/ /
|
||||
|
||||
USER apache
|
||||
CMD ["minit"]
|
||||
ENTRYPOINT ["minit"]
|
||||
CMD []
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
kind: once
|
||||
name: entrypoint
|
||||
command: ["/entrypoint.sh"]
|
||||
|
|
@ -82,12 +82,13 @@ job "lemonldap-ng" {
|
|||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "danielberteaud/lemonldap-ng:2.18.1-7"
|
||||
image = "danielberteaud/lemonldap-ng:2.18.1-8"
|
||||
readonly_rootfs = true
|
||||
pids_limit = 200
|
||||
volumes = [
|
||||
"secrets/lemonldap-ng.ini:/etc/lemonldap-ng/lemonldap-ng.ini:ro",
|
||||
"local/init-db.sh:/entrypoint.d/20-initdb.sh:ro",
|
||||
"local/minit.d/lemonldap-ng.yml:/etc/minit.d/lemonldap-ng.yml:ro"
|
||||
]
|
||||
mount {
|
||||
type = "tmpfs"
|
||||
|
@ -120,7 +121,6 @@ job "lemonldap-ng" {
|
|||
LLNG_MANAGER_VHOST = "manager.example.org"
|
||||
LLNG_PORTAL_VHOST = "sso.example.org"
|
||||
LLNG_CUSTOM_ASSETS_DIR = "/local/assets"
|
||||
MINIT_UNIT_DIR = "/local/minit.d"
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ RUN set -eux &&\
|
|||
uwsgi-plugin-psgi \
|
||||
lasso \
|
||||
lasso-perl \
|
||||
perl-Devel-StackTrace \
|
||||
perl-DBD-Pg \
|
||||
perl-Cache-Cache \
|
||||
perl-Apache-Session-Browseable \
|
||||
|
@ -50,4 +51,5 @@ RUN set -eux &&\
|
|||
COPY root/ /
|
||||
|
||||
USER apache
|
||||
CMD ["minit"]
|
||||
ENTRYPOINT ["minit"]
|
||||
CMD []
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
kind: once
|
||||
name: entrypoint
|
||||
command: ["/entrypoint.sh"]
|
||||
|
|
@ -65,6 +65,7 @@ job "[[ .instance ]]" {
|
|||
volumes = [
|
||||
"secrets/lemonldap-ng.ini:/etc/lemonldap-ng/lemonldap-ng.ini:ro",
|
||||
"local/init-db.sh:/entrypoint.d/20-initdb.sh:ro",
|
||||
"local/minit.d/lemonldap-ng.yml:/etc/minit.d/lemonldap-ng.yml:ro"
|
||||
]
|
||||
[[ template "common/tmpfs" dict "size" "5000000" "target" "/tmp" ]]
|
||||
}
|
||||
|
@ -79,7 +80,6 @@ job "[[ .instance ]]" {
|
|||
LLNG_MANAGER_VHOST = [[ (urlParse .llng.manager.public_url).Hostname | toJSON ]]
|
||||
LLNG_PORTAL_VHOST = [[ (urlParse .llng.portal.public_url).Hostname | toJSON ]]
|
||||
LLNG_CUSTOM_ASSETS_DIR = "/local/assets"
|
||||
MINIT_UNIT_DIR = "/local/minit.d"
|
||||
[[ template "common/proxy_env" $c ]]
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ llng:
|
|||
count: 1
|
||||
|
||||
# Docker image to use
|
||||
image: '[[ .docker.repo ]]lemonldap-ng:2.18.1-7'
|
||||
image: '[[ .docker.repo ]]lemonldap-ng:2.18.1-8'
|
||||
|
||||
# Resource allocation
|
||||
resources:
|
||||
|
|
Loading…
Reference in New Issue