From db6b329a9b66e263665286133fc7bb593e051139 Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Tue, 23 Jan 2024 16:24:27 +0100 Subject: [PATCH] ONESHOT --- amf/Dockerfile | 1 + amf/entrypoint.sh | 2 +- ausf/Dockerfile | 1 + ausf/entrypoint.sh | 2 +- nrf/Dockerfile | 1 + nrf/entrypoint.sh | 2 +- nssf/Dockerfile | 1 + nssf/entrypoint.sh | 2 +- pcf/Dockerfile | 1 + pcf/entrypoint.sh | 2 +- smf/Dockerfile | 1 + smf/entrypoint.sh | 2 +- udm/Dockerfile | 1 + udm/entrypoint.sh | 2 +- udr/Dockerfile | 1 + udr/entrypoint.sh | 2 +- 16 files changed, 16 insertions(+), 8 deletions(-) diff --git a/amf/Dockerfile b/amf/Dockerfile index 8b1df54..39f03ba 100644 --- a/amf/Dockerfile +++ b/amf/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/amf COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/amf/entrypoint.sh b/amf/entrypoint.sh index 1c207ac..a2aa9ea 100755 --- a/amf/entrypoint.sh +++ b/amf/entrypoint.sh @@ -25,7 +25,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]]; then diff --git a/ausf/Dockerfile b/ausf/Dockerfile index b05d974..c9fc836 100644 --- a/ausf/Dockerfile +++ b/ausf/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/ausf COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/ausf/entrypoint.sh b/ausf/entrypoint.sh index 6c9b0fb..2279fe1 100755 --- a/ausf/entrypoint.sh +++ b/ausf/entrypoint.sh @@ -25,7 +25,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]]; then diff --git a/nrf/Dockerfile b/nrf/Dockerfile index cabdaca..d62ccec 100644 --- a/nrf/Dockerfile +++ b/nrf/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/nrf COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/nrf/entrypoint.sh b/nrf/entrypoint.sh index a14fc9a..a70777f 100755 --- a/nrf/entrypoint.sh +++ b/nrf/entrypoint.sh @@ -25,7 +25,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]]; then diff --git a/nssf/Dockerfile b/nssf/Dockerfile index 1093eae..ac6ff89 100644 --- a/nssf/Dockerfile +++ b/nssf/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/nssf COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/nssf/entrypoint.sh b/nssf/entrypoint.sh index 78cb1df..92ae9e1 100755 --- a/nssf/entrypoint.sh +++ b/nssf/entrypoint.sh @@ -25,7 +25,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]]; then diff --git a/pcf/Dockerfile b/pcf/Dockerfile index 40d39cf..9883d17 100644 --- a/pcf/Dockerfile +++ b/pcf/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/pcf COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/pcf/entrypoint.sh b/pcf/entrypoint.sh index 3a830f8..526c3bc 100755 --- a/pcf/entrypoint.sh +++ b/pcf/entrypoint.sh @@ -25,7 +25,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]]; then diff --git a/smf/Dockerfile b/smf/Dockerfile index e41e096..9113025 100644 --- a/smf/Dockerfile +++ b/smf/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/smf COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/smf/entrypoint.sh b/smf/entrypoint.sh index c3475b0..60feb71 100755 --- a/smf/entrypoint.sh +++ b/smf/entrypoint.sh @@ -38,7 +38,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]] && [[ $uerouting_opt -eq 1 ]] ; then diff --git a/udm/Dockerfile b/udm/Dockerfile index 61625da..2234717 100644 --- a/udm/Dockerfile +++ b/udm/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/udm COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/udm/entrypoint.sh b/udm/entrypoint.sh index d2005f7..90fa52c 100755 --- a/udm/entrypoint.sh +++ b/udm/entrypoint.sh @@ -25,7 +25,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]]; then diff --git a/udr/Dockerfile b/udr/Dockerfile index 87af155..7bff5de 100644 --- a/udr/Dockerfile +++ b/udr/Dockerfile @@ -27,6 +27,7 @@ COPY --from=builder /go/bin/cmd /usr/local/bin/udr COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh ENV ROUTING_SCRIPT="docker-setup" +ENV ONESHOT="true" COPY ./template-script.sh /usr/local/bin/template-script.sh ENV TEMPLATE_SCRIPT="template-script.sh" diff --git a/udr/entrypoint.sh b/udr/entrypoint.sh index 6b84fea..6edb3ec 100755 --- a/udr/entrypoint.sh +++ b/udr/entrypoint.sh @@ -25,7 +25,7 @@ else fi if [ -n "${ROUTING_SCRIPT}" ]; then - "${ROUTING_SCRIPT}" & + "${ROUTING_SCRIPT}" fi if [[ $config_opt -eq 1 ]]; then