Skip to content

Commit

Permalink
Update ldapproxy image name and container name
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Feb 27, 2024
1 parent a639772 commit 75d4c2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
images=()
repobase="${REPOBASE:-ghcr.io/nethserver}"

reponame="ldapproxy-binary"
reponame="ldapproxy-app"
container=$(buildah from docker.io/library/nginx:1.25.3-alpine)
buildah run "${container}" /bin/sh <<'EOF'
set -e
Expand All @@ -23,7 +23,7 @@ buildah add "${container}" ui /ui
buildah config \
--label='org.nethserver.tcp-ports-demand=8' \
--label='org.nethserver.flags=core_module no_data_backup' \
--label="org.nethserver.images=${repobase}/ldapproxy-binary:${IMAGETAG:-latest}" \
--label="org.nethserver.images=${repobase}/ldapproxy-app:${IMAGETAG:-latest}" \
--entrypoint=/ "${container}"
buildah commit "${container}" "${repobase}/${reponame}"
images+=("${repobase}/${reponame}")
Expand Down
2 changes: 1 addition & 1 deletion imageroot/bin/update-conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if ! diff -q nginx.conf ${tmpconf} ; then
--log-driver=none \
--env=NGINX_ENTRYPOINT_QUIET_LOGS=1 \
--volume=./:/srv:z \
--rm "${LDAPPROXY_BINARY_IMAGE}" \
--rm "${LDAPPROXY_APP_IMAGE}" \
nginx -t -c "/srv/${tmpconf}"
mv -v ${tmpconf} nginx.conf
fi
2 changes: 1 addition & 1 deletion imageroot/systemd/user/ldapproxy.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ExecStart=/usr/bin/podman run \
--network=host \
--replace --name=%N \
--volume=./nginx:/srv:z \
${LDAPPROXY_BINARY_IMAGE} nginx -g "daemon off;" -c /srv/nginx.conf
${LDAPPROXY_APP_IMAGE} nginx -g "daemon off;" -c /srv/nginx.conf
ExecReload=-/usr/local/bin/runagent update-conf
ExecReload=/usr/bin/podman exec %N nginx -s reload
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/ldapproxy.ctr-id -t 10
Expand Down

0 comments on commit 75d4c2c

Please sign in to comment.