diff --git a/Dockerfile b/Dockerfile index 147996daf..c4b81d276 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,5 +44,10 @@ COPY --from=build-app /src/gpu-iris-mpc/target/x86_64-unknown-linux-gnu/release/ COPY --from=build-app /src/gpu-iris-mpc/target/x86_64-unknown-linux-gnu/release/reshare-server /bin/reshare-server COPY --from=build-app /src/gpu-iris-mpc/target/x86_64-unknown-linux-gnu/release/reshare-client /bin/reshare-client + +# Copy your wrapper entrypoint script into the final container +COPY test_entrypoint.sh /test_entrypoint.sh +RUN chmod +x /test_entrypoint.sh + USER 65534 -ENTRYPOINT ["/bin/server"] +ENTRYPOINT ["/test_entrypoint.sh", "/bin/server"] diff --git a/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml b/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml index d26ac4ccb..a35321fd4 100644 --- a/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml +++ b/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml @@ -84,7 +84,7 @@ env: value: "true" - name: SMPC__INIT_DB_SIZE - value: "800000" + value: "8000000" - name: SMPC__MAX_DB_SIZE value: "1000000" diff --git a/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml b/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml index e236057aa..8d0972c4a 100644 --- a/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml +++ b/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml @@ -84,7 +84,7 @@ env: value: "true" - name: SMPC__INIT_DB_SIZE - value: "800000" + value: "8000000" - name: SMPC__MAX_DB_SIZE value: "1000000" diff --git a/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml b/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml index 996e6e4bb..4094ee886 100644 --- a/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml +++ b/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml @@ -84,7 +84,7 @@ env: value: "true" - name: SMPC__INIT_DB_SIZE - value: "800000" + value: "8000000" - name: SMPC__MAX_DB_SIZE value: "1000000" diff --git a/test_entrypoint.sh b/test_entrypoint.sh new file mode 100644 index 000000000..95f950b32 --- /dev/null +++ b/test_entrypoint.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Function that prints the date on exit +on_exit() { + echo "[Container End] $(date) :: Container is stopping..." +} + +# Register the function above to run when the script exits +trap on_exit EXIT + +# Print a timestamp when container starts +echo "[Container Start] $(date) :: Container is starting..." + +# Execute the main process +exec "$@"