Skip to content

Commit

Permalink
Added custom ns8-postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Nardecchia authored and Alessandro Nardecchia committed Apr 8, 2024
1 parent 4834a62 commit 2fd66a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Terminate on error
set -e

POSTGRES_VERSION="15.2-alpine"
ODOO_VERSION="16.20240403"
POSTGRES_VERSION="16.20240405"
ODOO_VERSION="16.20240405"

# Prepare variables for later use
images=()
Expand Down Expand Up @@ -33,7 +33,7 @@ buildah config --entrypoint=/ \
--label="org.nethserver.authorizations=node:fwadm traefik@node:routeadm" \
--label="org.nethserver.tcp-ports-demand=3" \
--label="org.nethserver.rootfull=0" \
--label="org.nethserver.images=docker.io/postgres:$POSTGRES_VERSION docker.io/innovyou/ns8-odoo:$ODOO_VERSION" \
--label="org.nethserver.images=docker.io/innovyou/ns8-postgres:$POSTGRES_VERSION docker.io/innovyou/ns8-odoo:$ODOO_VERSION" \
"${container}"
# Commit the image
buildah commit "${container}" "${repobase}/${reponame}"
Expand Down
2 changes: 1 addition & 1 deletion imageroot/systemd/user/postgres.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/postgres.pid \
--env POSTGRES_PASSWORD=ZhuMeYvgByyf \
--env POSTGRES_DB=postgres \
--env TZ=UTC \
${POSTGRES_IMAGE}
${NS8_POSTGRES_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/postgres.ctr-id -t 10
ExecReload=/usr/bin/podman kill -s HUP postgres
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/postgres.ctr-id
Expand Down

0 comments on commit 2fd66a8

Please sign in to comment.